

/* final mindmap model list expansion */
body.settings-mode .settings-model-layout{
  grid-template-columns:174px minmax(390px,.72fr) minmax(560px,1.28fr)!important;
}
body.settings-mode .settings-model-options-panel{
  max-width:none!important;
  min-width:560px!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row{
  padding:10px!important;
  overflow:hidden!important;
}
body.settings-mode .model-pill-list{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.settings-mode .model-mindmap-list{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:150px 132px minmax(0,1fr)!important;
  gap:8px!important;
  padding:0!important;
}
body.settings-mode .model-map-col{
  min-height:0!important;
  overflow:auto!important;
  padding:0!important;
}
body.settings-mode .model-map-brands,
body.settings-mode .model-map-types{
  padding-right:4px!important;
}
body.settings-mode .model-map-models{
  padding-left:4px!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type,
body.settings-mode .model-map-model{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%!important;
  border:0!important;
  outline:0!important;
  font-family:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type{
  position:relative!important;
  height:38px!important;
  margin:0 0 6px!important;
  display:grid!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:12px!important;
  color:#4a5568!important;
  background:transparent!important;
}
body.settings-mode .model-map-brand{
  grid-template-columns:8px minmax(0,1fr) auto!important;
  padding:0 9px!important;
}
body.settings-mode .model-map-type{
  grid-template-columns:minmax(0,1fr) auto!important;
  padding:0 10px!important;
}
body.settings-mode .model-map-brand:hover,
body.settings-mode .model-map-type:hover{
  background:#f6f9ff!important;
}
body.settings-mode .model-map-brand.active,
body.settings-mode .model-map-type.active{
  color:#1f4fd7!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--tree-color) 13%,#fff),#f8fbff)!important;
}
body.settings-mode .model-map-brand.active::after,
body.settings-mode .model-map-type.active::after{
  content:""!important;
  position:absolute!important;
  right:-8px!important;
  top:50%!important;
  width:8px!important;
  height:1px!important;
  background:color-mix(in srgb,var(--tree-color) 46%,#c8d5e8)!important;
}
body.settings-mode .model-map-dot{
  width:7px!important;
  height:7px!important;
  border-radius:999px!important;
  background:var(--tree-color)!important;
}
body.settings-mode .model-map-brand span:not(.model-map-dot),
body.settings-mode .model-map-type span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.settings-mode .model-map-brand b,
body.settings-mode .model-map-type b{
  font-size:10px!important;
  font-weight:650!important;
  color:#8a95a6!important;
  background:rgba(255,255,255,.78)!important;
  border-radius:999px!important;
  padding:2px 6px!important;
}
body.settings-mode .model-map-model{
  min-height:34px!important;
  margin:0 0 6px!important;
  padding:7px 11px!important;
  border-radius:11px!important;
  color:#2f3b4c!important;
  background:#f8fbff!important;
  font-size:12px!important;
  font-weight:510!important;
  line-height:1.35!important;
  word-break:break-word!important;
}
body.settings-mode .model-map-model:hover{
  color:#1769ff!important;
  background:#eff6ff!important;
}
@media(max-width:1180px){
  body.settings-mode .settings-model-layout{grid-template-columns:164px minmax(330px,.72fr) minmax(500px,1.28fr)!important;}
  body.settings-mode .settings-model-options-panel{min-width:500px!important;}
  body.settings-mode .model-mindmap-list{grid-template-columns:136px 118px minmax(0,1fr)!important;}
}
@media(max-width:900px){
  body.settings-mode .settings-model-layout{grid-template-columns:1fr!important;}
  body.settings-mode .settings-model-options-panel{min-width:0!important;}
  body.settings-mode .model-mindmap-list{grid-template-columns:1fr!important;overflow:auto!important;}
  body.settings-mode .model-map-brand.active::after,
  body.settings-mode .model-map-type.active::after{display:none!important;}
}


/* final compact provider column spacing */
body.settings-mode .settings-model-list-panel{
  padding:8px!important;
  display:flex!important;
  flex-direction:column!important;
}
body.settings-mode .settings-model-list-panel .settings-add-bottom{
  height:32px!important;
  min-height:32px!important;
  margin:0 0 5px!important;
  border-radius:10px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-list{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  flex:0 1 auto!important;
  height:auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding:0!important;
}
body.settings-mode .settings-model-list-panel .settings-provider{
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:4px 7px!important;
  gap:7px!important;
  border-radius:9px!important;
  grid-template-columns:22px minmax(0,1fr) 32px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-logo{
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-name{
  font-size:12px!important;
  line-height:1.15!important;
}
body.settings-mode .settings-model-list-panel .provider-switch{
  width:32px!important;
  height:19px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch::after{
  width:15px!important;
  height:15px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch.on::after{
  transform:translateX(13px)!important;
}


/* final model settings width and mindmap polish */
body.settings-mode .settings-model-layout{
  grid-template-columns:230px minmax(600px,1.04fr) minmax(640px,1.1fr)!important;
  gap:0!important;
}
body.settings-mode .settings-model-list-panel{
  width:auto!important;
  min-width:0!important;
}
body.settings-mode .settings-model-detail{
  min-width:0!important;
  border-left:1px solid #eef3f8!important;
  border-right:0!important;
}
body.settings-mode .settings-model-options-panel{
  min-width:0!important;
  max-width:none!important;
  border-left:1px solid #eef3f8!important;
}
body.settings-mode .settings-model-list-panel .settings-provider{
  grid-template-columns:22px minmax(0,1fr) 32px!important;
  height:34px!important;
  min-height:34px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-name{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:12px!important;
  letter-spacing:0!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-meta{
  display:none!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row{
  overflow:hidden!important;
}
body.settings-mode .model-pill-list,
body.settings-mode .model-map-col{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.settings-mode .model-mindmap-list{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
  overflow:hidden!important;
}
body.settings-mode .model-map-brands,
body.settings-mode .model-map-types,
body.settings-mode .model-map-models{
  padding:0!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type,
body.settings-mode .model-map-model{
  box-sizing:border-box!important;
  max-width:100%!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type{
  height:36px!important;
  margin:0 0 7px!important;
  border-radius:13px!important;
  background:#f8fbff!important;
  box-shadow:inset 0 0 0 1px rgba(226,235,246,.88)!important;
}
body.settings-mode .model-map-brand.active,
body.settings-mode .model-map-type.active{
  background:linear-gradient(135deg,color-mix(in srgb,var(--tree-color) 14%,#fff),#ffffff 82%)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tree-color) 32%,#dfe8f5),0 6px 14px rgba(32,72,130,.05)!important;
}
body.settings-mode .model-map-brand.active::after,
body.settings-mode .model-map-type.active::after{
  height:1px!important;
  right:-9px!important;
  width:9px!important;
  background:#d8e3f1!important;
}
body.settings-mode .model-map-brand span:not(.model-map-dot),
body.settings-mode .model-map-type span{
  font-size:12px!important;
  font-weight:560!important;
}
body.settings-mode .model-map-brand b,
body.settings-mode .model-map-type b{
  background:rgba(255,255,255,.65)!important;
  color:#98a2b3!important;
  font-weight:600!important;
}
body.settings-mode .model-map-model{
  min-height:36px!important;
  margin:0 0 7px!important;
  border-radius:13px!important;
  background:#f8fbff!important;
  box-shadow:inset 0 0 0 1px rgba(226,235,246,.86)!important;
  color:#344054!important;
  font-size:12px!important;
  font-weight:510!important;
}
body.settings-mode .model-map-model:hover{
  background:linear-gradient(135deg,#f1f7ff,#fff)!important;
  box-shadow:inset 0 0 0 1px #cfe0ff!important;
}
body.settings-mode .settings-model-detail .settings-row{
  grid-template-columns:86px minmax(0,1fr)!important;
}
@media(max-width:1320px){
  body.settings-mode .settings-model-layout{grid-template-columns:220px minmax(520px,1fr) minmax(560px,1.05fr)!important;}
}
@media(max-width:1180px){
  body.settings-mode .settings-model-layout{grid-template-columns:206px minmax(450px,1fr) minmax(500px,1fr)!important;}
  body.settings-mode .settings-model-list-panel .settings-provider-name{font-size:11.5px!important;}
}
@media(max-width:900px){
  body.settings-mode .settings-model-layout{grid-template-columns:1fr!important;}
  body.settings-mode .model-mindmap-list{grid-template-columns:1fr!important;}
  body.settings-mode .settings-model-detail,
  body.settings-mode .settings-model-options-panel{border-left:1px solid #e8eef6!important;}
}


/* final provider detail equal row rhythm */
body.settings-mode .settings-model-list-panel{
  padding:7px!important;
}
body.settings-mode .settings-model-list-panel .settings-add-bottom{
  height:32px!important;
  min-height:32px!important;
  margin:0 0 4px!important;
  border-radius:10px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-list{
  gap:0!important;
  display:flex!important;
  flex-direction:column!important;
}
body.settings-mode .settings-model-list-panel .settings-provider{
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:4px 7px!important;
  gap:7px!important;
  border-radius:9px!important;
  grid-template-columns:21px minmax(0,1fr) 31px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider + .settings-provider{
  margin-top:1px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-logo{
  width:21px!important;
  height:21px!important;
  border-radius:7px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-name{
  font-size:12px!important;
  line-height:1!important;
  font-weight:540!important;
}
body.settings-mode .settings-model-list-panel .provider-switch{
  width:31px!important;
  height:18px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch::after{
  width:14px!important;
  height:14px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch.on::after{
  transform:translateX(13px)!important;
}
body.settings-mode .settings-model-detail .settings-row{
  height:32px!important;
  min-height:32px!important;
  padding:0 14px!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  gap:12px!important;
}
body.settings-mode .settings-model-detail .settings-row label{
  font-size:12px!important;
  line-height:32px!important;
}
body.settings-mode .settings-model-detail .settings-row input,
body.settings-mode .settings-model-detail .settings-row select{
  height:32px!important;
  line-height:32px!important;
  font-size:12.5px!important;
  padding:0!important;
}
body.settings-mode .settings-model-detail .secret-line{
  height:32px!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  gap:8px!important;
}
body.settings-mode .settings-model-detail .fetch-models-btn{
  height:24px!important;
  line-height:24px!important;
  font-size:12px!important;
}
body.settings-mode .settings-model-detail .settings-row-area,
body.settings-mode .settings-model-detail .headers-row{
  min-height:64px!important;
  padding:8px 14px!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  gap:12px!important;
}
body.settings-mode .settings-model-detail .settings-row-area textarea,
body.settings-mode .settings-model-detail .headers-row textarea{
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  font-size:12px!important;
  padding:6px 8px!important;
}


/* final sidebar product polish */
.side{
  height:100vh!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#fbfdff 0%,#f4f7fc 100%)!important;
  border-right:1px solid rgba(218,228,241,.98)!important;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.78)!important;
  padding:0!important;
}
.side-head{
  flex:0 0 auto!important;
  height:78px!important;
  padding:0 22px!important;
  display:flex!important;
  align-items:center!important;
  background:transparent!important;
  border-bottom:0!important;
}
.brand{
  font-size:32px!important;
  font-weight:860!important;
  letter-spacing:.045em!important;
  line-height:1!important;
  color:#1467f4!important;
  text-shadow:none!important;
}
.chat-list{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding:4px 12px 8px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
.chat-list::-webkit-scrollbar{width:0;height:0}
.chat-item{
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
  padding:10px 9px 10px 13px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 32px!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid transparent!important;
  border-radius:15px!important;
  background:transparent!important;
  color:#344054!important;
  box-shadow:none!important;
  transform:none!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease!important;
}
.chat-item:hover{
  background:rgba(255,255,255,.72)!important;
  border-color:rgba(226,235,246,.86)!important;
  color:#263244!important;
  transform:none!important;
}
.chat-item.active{
  background:rgba(255,255,255,.96)!important;
  border-color:rgba(23,105,255,.14)!important;
  color:#1467f4!important;
  box-shadow:0 10px 26px rgba(36,64,118,.07)!important;
}
.chat-title{
  font-size:14px!important;
  font-weight:560!important;
  letter-spacing:0!important;
  color:inherit!important;
}
.chat-meta{
  margin-top:3px!important;
  font-size:11px!important;
  color:#9aa6b5!important;
}
.chat-more{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  color:#a2adbb!important;
  background:transparent!important;
  font-size:19px!important;
}
.chat-item:hover .chat-more,.chat-item.active .chat-more{
  background:#f3f7ff!important;
  color:#1769ff!important;
}
.chat-menu{
  border-radius:14px!important;
  border:1px solid rgba(221,231,243,.96)!important;
  box-shadow:0 18px 40px rgba(15,23,42,.13)!important;
}
.side-foot{
  flex:0 0 auto!important;
  height:auto!important;
  margin-top:auto!important;
  padding:12px 12px 24px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 44px 44px!important;
  gap:8px!important;
  align-items:center!important;
  border-top:0!important;
  background:linear-gradient(180deg,rgba(244,247,252,0) 0%,rgba(244,247,252,.92) 30%,#f4f7fc 100%)!important;
}
.side-foot .new-chat{
  width:100%!important;
  height:44px!important;
  border:0!important;
  border-radius:14px!important;
  background:#1769ff!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:680!important;
  box-shadow:0 10px 24px rgba(23,105,255,.18)!important;
}
.settings-entry,.side-collapse{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  padding:0!important;
  border:1px solid rgba(221,231,243,.92)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.76)!important;
  color:#6b7788!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 8px 22px rgba(31,45,74,.05)!important;
}
.settings-entry:hover,.side-collapse:hover{
  background:#fff!important;
  color:#1769ff!important;
  border-color:rgba(23,105,255,.16)!important;
}
.settings-gear{font-size:22px!important;line-height:1!important;transform:none!important}
.side-collapse{font-size:22px!important;font-weight:500!important;cursor:pointer!important}
.app.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)!important}
.app.sidebar-collapsed .side-head{height:70px!important;padding:0!important;justify-content:center!important}
.app.sidebar-collapsed .brand{font-size:18px!important;letter-spacing:0!important}
.app.sidebar-collapsed .chat-list{padding:4px 8px 8px!important}
.app.sidebar-collapsed .chat-item{grid-template-columns:1fr!important;justify-items:center!important;padding:10px 6px!important;min-height:44px!important}
.app.sidebar-collapsed .chat-title,.app.sidebar-collapsed .chat-meta,.app.sidebar-collapsed .chat-actions{display:none!important}
.app.sidebar-collapsed .side-foot{grid-template-columns:1fr!important;padding:10px 10px 24px!important;gap:8px!important}
.app.sidebar-collapsed .side-foot .new-chat,.app.sidebar-collapsed .settings-entry,.app.sidebar-collapsed .side-collapse{width:44px!important;min-width:44px!important;margin:0 auto!important}
@media(max-width:760px){
  .side{height:132px!important;border-right:0!important;border-bottom:1px solid #e3eaf4!important}
  .side-head{height:52px!important;padding:0 18px!important}
  .brand{font-size:26px!important}
  .chat-list{display:flex!important;flex-direction:row!important;gap:8px!important;overflow-x:auto!important;padding:6px 10px 10px!important}
  .chat-item{min-width:168px!important}
  .side-foot{display:none!important}
}


/* final settings fixed-height frame */
body.settings-mode,
body.settings-mode .app,
body.settings-mode .settings-workspace{
  height:100vh!important;
  min-height:100vh!important;
  overflow:hidden!important;
}
body.settings-mode .settings-workspace{
  display:grid!important;
  grid-template-rows:64px minmax(0,1fr)!important;
  background:#f6f8fc!important;
}
body.settings-mode .settings-top{
  height:64px!important;
  min-height:64px!important;
  flex:0 0 64px!important;
}
body.settings-mode .settings-main{
  height:calc(100vh - 64px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:14px 16px 16px!important;
  box-sizing:border-box!important;
}
body.settings-mode .settings-form.settings-left-right{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
body.settings-mode .settings-nav,
body.settings-mode .settings-content{
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
}
body.settings-mode .settings-content{
  overflow:hidden!important;
}
body.settings-mode .settings-view{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-view.active{
  height:100%!important;
  min-height:0!important;
  display:block!important;
}
body.settings-mode .settings-view[data-settings-panel="models"].active{
  display:block!important;
}
body.settings-mode .settings-model-layout{
  height:100%!important;
  min-height:0!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-list-panel,
body.settings-mode .settings-model-detail,
body.settings-mode .settings-model-options-panel{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-list-panel{
  display:flex!important;
  flex-direction:column!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
}
body.settings-mode .settings-model-detail{
  display:flex!important;
  flex-direction:column!important;
  overflow:auto!important;
}
body.settings-mode .settings-model-detail .advanced-box,
body.settings-mode .settings-model-detail .advanced-box.hidden{
  display:block!important;
  flex:0 0 auto!important;
}
body.settings-mode .settings-model-options-panel{
  display:flex!important;
  flex-direction:column!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row{
  height:100%!important;
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.settings-mode .model-pill-list{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:auto!important;
}
body.settings-mode #fModelOptions{
  flex:0 0 0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-view[data-settings-panel="display"].active,
body.settings-mode .settings-view[data-settings-panel="account"].active{
  display:block!important;
  padding:0!important;
}
body.settings-mode .settings-view[data-settings-panel="display"] .settings-clean-panel,
body.settings-mode .settings-view[data-settings-panel="account"] .settings-clean-panel{
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
}
@media(max-width:900px){
  body.settings-mode,
  body.settings-mode .app,
  body.settings-mode .settings-workspace{
    height:auto!important;
    min-height:100vh!important;
    overflow:auto!important;
  }
  body.settings-mode .settings-main,
  body.settings-mode .settings-form.settings-left-right,
  body.settings-mode .settings-nav,
  body.settings-mode .settings-content,
  body.settings-mode .settings-view,
  body.settings-mode .settings-view.active,
  body.settings-mode .settings-model-layout,
  body.settings-mode .settings-model-list-panel,
  body.settings-mode .settings-model-detail,
  body.settings-mode .settings-model-options-panel{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
}


/* final settings right columns spacing */
body.settings-mode .settings-model-layout{
  grid-template-columns:230px minmax(600px,1.02fr) minmax(620px,1.08fr)!important;
  gap:14px!important;
  background:transparent!important;
}
body.settings-mode .settings-model-list-panel{
  border-right:1px solid rgba(226,234,244,.72)!important;
}
body.settings-mode .settings-model-detail,
body.settings-mode .settings-model-options-panel{
  border-left:1px solid rgba(232,239,248,.68)!important;
  border-right:1px solid rgba(232,239,248,.68)!important;
  border-top:1px solid rgba(232,239,248,.72)!important;
  border-bottom:1px solid rgba(232,239,248,.72)!important;
  box-shadow:none!important;
}
body.settings-mode .settings-model-detail{
  padding-left:0!important;
  padding-right:0!important;
}
body.settings-mode .settings-model-options-panel{
  padding:0!important;
  background:#fff!important;
}
body.settings-mode .settings-model-detail .settings-row{
  min-height:50px!important;
  height:50px!important;
  padding:0 20px!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  gap:16px!important;
  border-bottom:1px solid rgba(237,242,248,.82)!important;
}
body.settings-mode .settings-model-detail .settings-row-area,
body.settings-mode .settings-model-detail .headers-row{
  height:auto!important;
  min-height:108px!important;
  padding:12px 20px!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  gap:16px!important;
}
body.settings-mode .settings-model-detail .advanced-box>.settings-row:last-child,
body.settings-mode .settings-model-detail>.settings-row:last-of-type{
  border-bottom-color:rgba(237,242,248,.82)!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row{
  padding:14px!important;
  background:#fff!important;
}
body.settings-mode .model-mindmap-list{
  gap:12px!important;
}
body.settings-mode .model-map-col{
  gap:8px!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type,
body.settings-mode .model-map-model{
  min-height:38px!important;
  border-color:rgba(226,234,244,.86)!important;
  box-shadow:none!important;
}
body.settings-mode .model-map-brand.active,
body.settings-mode .model-map-type.active{
  border-color:rgba(23,105,255,.22)!important;
  box-shadow:0 6px 16px rgba(23,105,255,.06)!important;
}
@media(max-width:1280px){
  body.settings-mode .settings-model-layout{
    grid-template-columns:218px minmax(520px,1fr) minmax(560px,1fr)!important;
    gap:12px!important;
  }
}
@media(max-width:1120px){
  body.settings-mode .settings-model-layout{
    grid-template-columns:206px minmax(450px,1fr) minmax(500px,1fr)!important;
    gap:10px!important;
  }
}
@media(max-width:900px){
  body.settings-mode .settings-model-layout{grid-template-columns:1fr!important;gap:10px!important;}
  body.settings-mode .settings-model-detail,
  body.settings-mode .settings-model-options-panel{border:1px solid #e8eef6!important;border-radius:16px!important;}
}


/* final headers textarea to bottom */
body.settings-mode .settings-model-detail{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-detail>.settings-row{
  flex:0 0 50px!important;
}
body.settings-mode .settings-model-detail>.advanced-box,
body.settings-mode .settings-model-detail>.advanced-box.hidden{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-detail .advanced-box>.settings-row:not(.headers-row){
  flex:0 0 50px!important;
}
body.settings-mode .settings-model-detail .headers-row{
  flex:1 1 auto!important;
  min-height:160px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:16px!important;
  padding:14px 20px!important;
  border-bottom:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-detail .headers-row label{
  align-self:start!important;
  padding-top:8px!important;
}
body.settings-mode .settings-model-detail .headers-row textarea,
body.settings-mode #fHeaders{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  resize:none!important;
  overflow:auto!important;
  border:1px solid rgba(222,232,245,.95)!important;
  border-radius:12px!important;
  background:#f8fbff!important;
  padding:10px 12px!important;
  line-height:1.55!important;
  color:#2f3a4a!important;
}
@media(max-width:900px){
  body.settings-mode .settings-model-detail>.advanced-box,
  body.settings-mode .settings-model-detail>.advanced-box.hidden{display:block!important;overflow:visible!important;}
  body.settings-mode .settings-model-detail .headers-row{min-height:160px!important;display:grid!important;}
  body.settings-mode .settings-model-detail .headers-row textarea,
  body.settings-mode #fHeaders{height:160px!important;}
}


/* final settings no shrink on model pill click */
body.settings-mode .settings-main{
  height:calc(100vh - 64px)!important;
  min-height:calc(100vh - 64px)!important;
  max-height:calc(100vh - 64px)!important;
  overflow:hidden!important;
}
body.settings-mode .settings-form.settings-left-right,
body.settings-mode .settings-content,
body.settings-mode .settings-view.active,
body.settings-mode .settings-view[data-settings-panel="models"].active,
body.settings-mode .settings-model-layout{
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
body.settings-mode .settings-model-list-panel,
body.settings-mode .settings-model-detail,
body.settings-mode .settings-model-options-panel{
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row,
body.settings-mode .model-pill-list,
body.settings-mode .model-mindmap-list{
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body.settings-mode .model-mindmap-list{
  display:grid!important;
  align-items:stretch!important;
}
body.settings-mode .model-map-col{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:auto!important;
  align-content:start!important;
}
body.settings-mode .model-map-brands,
body.settings-mode .model-map-types,
body.settings-mode .model-map-models{
  padding-bottom:12px!important;
}
body.settings-mode .settings-model-options-panel:empty,
body.settings-mode .model-pill-list:empty{
  min-height:100%!important;
}
@media(max-width:900px){
  body.settings-mode .settings-main,
  body.settings-mode .settings-form.settings-left-right,
  body.settings-mode .settings-content,
  body.settings-mode .settings-view.active,
  body.settings-mode .settings-model-layout,
  body.settings-mode .settings-model-list-panel,
  body.settings-mode .settings-model-detail,
  body.settings-mode .settings-model-options-panel,
  body.settings-mode .settings-model-options-panel .settings-model-list-row,
  body.settings-mode .model-pill-list,
  body.settings-mode .model-mindmap-list{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}


/* final provider column relaxed rhythm */
body.settings-mode .settings-model-list-panel{
  padding:10px 10px 12px!important;
}
body.settings-mode .settings-model-list-panel .settings-add-bottom{
  height:40px!important;
  min-height:40px!important;
  margin:0 0 10px!important;
  border-radius:12px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-list{
  gap:8px!important;
  padding:2px 0 8px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider{
  min-height:46px!important;
  height:46px!important;
  padding:0 10px!important;
  gap:9px!important;
  border-radius:13px!important;
  grid-template-columns:23px minmax(0,1fr) 32px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider + .settings-provider{
  margin-top:0!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-logo{
  width:23px!important;
  height:23px!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-name{
  font-size:12.5px!important;
  line-height:1.25!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-meta{
  margin-top:2px!important;
  font-size:10px!important;
  line-height:1.15!important;
}
body.settings-mode .settings-model-list-panel .provider-switch{
  width:32px!important;
  height:18px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch::after{
  width:14px!important;
  height:14px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch.on::after{
  transform:translateX(14px)!important;
}


/* final docs style settings page */
body.settings-mode,
body.settings-mode .app,
body.settings-mode .settings-workspace{
  background:#fff!important;
  color:#1f2329!important;
}
body.settings-mode .settings-workspace{
  grid-template-rows:54px minmax(0,1fr)!important;
}
body.settings-mode .settings-top{
  height:54px!important;
  min-height:54px!important;
  padding:0 16px!important;
  background:#fff!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:none!important;
}
body.settings-mode .settings-top .top-actions{
  gap:12px!important;
}
body.settings-mode .back-btn{
  width:32px!important;
  height:32px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#4b5563!important;
  font-size:25px!important;
  line-height:32px!important;
}
body.settings-mode .back-btn:hover{
  background:#f3f4f6!important;
  color:#111827!important;
}
body.settings-mode .top-title{
  font-size:16px!important;
  font-weight:680!important;
  color:#111827!important;
}
body.settings-mode #saveConfig{
  height:34px!important;
  border-radius:8px!important;
  padding:0 16px!important;
  background:#1677ff!important;
  font-size:14px!important;
  font-weight:620!important;
  box-shadow:none!important;
}
body.settings-mode .settings-main{
  height:calc(100vh - 54px)!important;
  min-height:calc(100vh - 54px)!important;
  max-height:calc(100vh - 54px)!important;
  padding:0!important;
  background:#fff!important;
  overflow:hidden!important;
}
body.settings-mode .settings-form.settings-left-right{
  display:grid!important;
  grid-template-columns:296px minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.settings-mode .settings-nav{
  width:auto!important;
  height:100%!important;
  padding:12px 0!important;
  background:#fafafa!important;
  border-right:1px solid #d8dee8!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.settings-mode .settings-primary-item{
  position:relative!important;
  width:100%!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0 38px 0 18px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#4b5563!important;
  font-size:14px!important;
  font-weight:500!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.settings-mode .settings-primary-item::after{
  content:'›';
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  color:#8b949e;
  font-size:28px;
  font-weight:300;
  line-height:1;
}
body.settings-mode .settings-primary-item:hover{
  background:#f1f5f9!important;
  color:#111827!important;
}
body.settings-mode .settings-primary-item.active{
  background:transparent!important;
  color:#1677ff!important;
  font-weight:620!important;
}
body.settings-mode .settings-primary-item.active::before{
  content:'';
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:0 2px 2px 0;
  background:#1677ff;
}
body.settings-mode .settings-content{
  height:100%!important;
  padding:0!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-view{
  height:100%!important;
  padding:0!important;
  background:#fff!important;
}
body.settings-mode .settings-model-layout{
  height:100%!important;
  display:grid!important;
  grid-template-columns:254px minmax(560px,760px) minmax(250px,1fr)!important;
  gap:0!important;
  align-items:stretch!important;
  background:#fff!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-list-panel,
body.settings-mode .settings-model-detail,
body.settings-mode .settings-model-options-panel{
  height:100%!important;
  min-height:0!important;
  border-radius:0!important;
  border:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
body.settings-mode .settings-model-list-panel{
  padding:12px 0!important;
  border-right:1px solid #d8dee8!important;
}
body.settings-mode .settings-model-list-panel .settings-add-bottom{
  width:calc(100% - 32px)!important;
  height:34px!important;
  min-height:34px!important;
  margin:0 16px 10px!important;
  border:1px solid #d6e4ff!important;
  border-radius:8px!important;
  background:#f5f9ff!important;
  color:#1677ff!important;
  font-size:13px!important;
  font-weight:620!important;
  box-shadow:none!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-list{
  gap:0!important;
  padding:0!important;
}
body.settings-mode .settings-model-list-panel .settings-provider{
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 16px!important;
  grid-template-columns:22px minmax(0,1fr) 30px!important;
  gap:10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.settings-mode .settings-model-list-panel .settings-provider:hover{
  background:#f5f7fa!important;
}
body.settings-mode .settings-model-list-panel .settings-provider.active{
  background:#eef5ff!important;
  color:#1677ff!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-logo{
  width:20px!important;
  height:20px!important;
  object-fit:contain!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-name{
  font-size:13px!important;
  font-weight:560!important;
  color:inherit!important;
  line-height:1.2!important;
}
body.settings-mode .settings-model-list-panel .settings-provider-meta{
  display:none!important;
}
body.settings-mode .settings-model-list-panel .provider-switch{
  width:30px!important;
  height:17px!important;
  border:0!important;
  background:#e5e7eb!important;
}
body.settings-mode .settings-model-list-panel .provider-switch.on{
  background:#1677ff!important;
}
body.settings-mode .settings-model-list-panel .provider-switch::after{
  width:13px!important;
  height:13px!important;
  top:2px!important;
  left:2px!important;
}
body.settings-mode .settings-model-list-panel .provider-switch.on::after{
  transform:translateX(13px)!important;
}
body.settings-mode .settings-model-detail{
  overflow:auto!important;
  border-right:1px solid #d8dee8!important;
}
body.settings-mode .settings-model-detail .settings-row{
  height:52px!important;
  min-height:52px!important;
  padding:0!important;
  grid-template-columns:174px minmax(0,1fr)!important;
  gap:0!important;
  border-bottom:1px solid #d8dee8!important;
  background:#fff!important;
}
body.settings-mode .settings-model-detail .settings-row label{
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  border-right:1px solid #d8dee8!important;
  background:#f8fafc!important;
  color:#374151!important;
  font-size:13px!important;
  font-weight:660!important;
  text-align:center!important;
}
body.settings-mode .settings-model-detail .settings-row input,
body.settings-mode .settings-model-detail .settings-row select{
  height:51px!important;
  line-height:51px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1f2329!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono',monospace!important;
  font-size:13px!important;
  font-weight:500!important;
  box-shadow:none!important;
}
body.settings-mode .settings-model-detail .secret-line{
  height:51px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 54px!important;
  gap:0!important;
}
body.settings-mode .settings-model-detail .fetch-models-btn{
  width:54px!important;
  height:51px!important;
  border:0!important;
  border-left:1px solid #e5e7eb!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1677ff!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.settings-mode .settings-model-detail .advanced-toggle{
  display:none!important;
}
body.settings-mode .settings-model-detail .advanced-box,
body.settings-mode .settings-model-detail .advanced-box.hidden{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:visible!important;
}
body.settings-mode .settings-model-detail .advanced-box>.settings-row:not(.headers-row){
  flex:0 0 52px!important;
}
body.settings-mode .settings-model-detail .headers-row{
  display:grid!important;
  flex:1 1 auto!important;
  min-height:180px!important;
  height:auto!important;
  grid-template-columns:174px minmax(0,1fr)!important;
  gap:0!important;
  padding:0!important;
  border-bottom:0!important;
  overflow:hidden!important;
}
body.settings-mode .settings-model-detail .headers-row label{
  align-self:stretch!important;
  padding:0 12px!important;
  border-right:1px solid #d8dee8!important;
  border-bottom:0!important;
}
body.settings-mode .settings-model-detail .headers-row textarea,
body.settings-mode #fHeaders{
  height:100%!important;
  min-height:180px!important;
  max-height:none!important;
  resize:none!important;
  padding:12px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1f2329!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono',monospace!important;
  font-size:13px!important;
  line-height:1.6!important;
  box-shadow:none!important;
}
body.settings-mode .settings-model-options-panel{
  padding:16px!important;
  overflow:auto!important;
  color:#4b5563!important;
}
body.settings-mode .settings-model-options-panel .settings-model-list-row{
  padding:0!important;
  border:0!important;
  height:100%!important;
  background:#fff!important;
}
body.settings-mode .field-label-row{
  display:none!important;
}
body.settings-mode .model-pill-list{
  height:100%!important;
  overflow:auto!important;
  padding:0!important;
}
body.settings-mode .model-mindmap-list{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
body.settings-mode .model-map-col{
  display:block!important;
  height:auto!important;
  overflow:visible!important;
}
body.settings-mode .model-map-brand,
body.settings-mode .model-map-type,
body.settings-mode .model-map-model{
  height:32px!important;
  min-height:32px!important;
  margin:0 0 6px!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#4b5563!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:500!important;
  text-align:left!important;
}
body.settings-mode .model-map-brand.active,
body.settings-mode .model-map-type.active,
body.settings-mode .model-map-model:hover{
  background:#f1f5f9!important;
  color:#1677ff!important;
  box-shadow:none!important;
}
body.settings-mode .model-map-dot,
body.settings-mode .model-map-brand b,
body.settings-mode .model-map-type b,
body.settings-mode .model-map-brand.active::after,
body.settings-mode .model-map-type.active::after{
  display:none!important;
}
body.settings-mode .settings-view[data-settings-panel="display"].active,
body.settings-mode .settings-view[data-settings-panel="account"].active{
  padding:0!important;
}
body.settings-mode .settings-view[data-settings-panel="display"] .settings-clean-panel,
body.settings-mode .settings-view[data-settings-panel="account"] .settings-clean-panel{
  width:min(760px,100%)!important;
  height:auto!important;
  min-height:100%!important;
  border:0!important;
  border-right:1px solid #d8dee8!important;
  border-radius:0!important;
  box-shadow:none!important;
}
@media(max-width:1200px){
  body.settings-mode .settings-form.settings-left-right{grid-template-columns:240px minmax(0,1fr)!important;}
  body.settings-mode .settings-model-layout{grid-template-columns:220px minmax(500px,1fr) 240px!important;}
  body.settings-mode .settings-model-detail .settings-row,
  body.settings-mode .settings-model-detail .headers-row{grid-template-columns:142px minmax(0,1fr)!important;}
}
@media(max-width:900px){
  body.settings-mode .settings-form.settings-left-right,
  body.settings-mode .settings-model-layout{grid-template-columns:1fr!important;}
  body.settings-mode .settings-nav,
  body.settings-mode .settings-model-list-panel,
  body.settings-mode .settings-model-detail{border-right:0!important;border-bottom:1px solid #d8dee8!important;}
  body.settings-mode .settings-model-detail .settings-row,
  body.settings-mode .settings-model-detail .headers-row{grid-template-columns:110px minmax(0,1fr)!important;}
}
