/*! Synthenis, Inc. Telif hakki saklidir. */
@media (max-width:768px),(hover:none) and (pointer:coarse){
  .cosmos-composer .composer-intelligence-select{
    width:74px!important;
    max-width:74px!important;
    min-width:74px!important;
    flex:0 0 74px!important;
  }
  .cosmos-composer .composer-intelligence-trigger{
    gap:3px!important;
    padding:0 2px!important;
    min-width:0!important;
  }
  .cosmos-composer .composer-intelligence-trigger .arrow,
  .cosmos-composer .composer-intelligence-trigger .arrow img{
    width:12px!important;
    height:12px!important;
    flex:0 0 12px!important;
  }
}

#marketplaceModal{
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow:hidden;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(.1px);
  -webkit-backdrop-filter:blur(.1px);
}

#marketplaceModal .modal-content{
  width:min(940px,calc(100vw - 48px));
  max-width:min(940px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  margin:0;
}

#marketplaceModal .modal-body{
  min-height:0;
  max-height:none;
}

.marketplace-layout{
  display:block;
  width:100%;
}

.marketplace-content{
  min-width:0;
  width:100%;
  padding:0;
}

.marketplace-panel{
  display:none;
}

.marketplace-panel.active{
  display:block;
}

.marketplace-toolbar{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}

#marketplaceSearchInput{
  width:100%;
  height:42px;
  border:1px solid var(--border);
  border-radius:20px;
  background:rgba(255,255,255,.05);
  color:var(--text-primary);
  padding:0 16px;
  outline:0;
  font:inherit;
}

#marketplaceSearchInput:focus{
  border-color:var(--accent);
  background:rgba(255,255,255,.075);
}

.marketplace-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));
  gap:12px;
}

.marketplace-card,
.marketplace-publisher-card{
  background:rgba(18,18,18,.6);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  transition:border-color .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);
}

.marketplace-card{
  cursor:pointer;
}

.marketplace-card:hover,
.marketplace-publisher-card:hover{
  border-color:rgba(255,255,255,.15);
}

.marketplace-card:active{
  transform:scale(.98);
}

.marketplace-card-header,
.marketplace-publisher-header{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.marketplace-card-title,
.marketplace-publisher-title{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  flex:1;
}

.marketplace-card-title strong,
.marketplace-publisher-title strong{
  color:var(--text-primary);
  font-size:15px;
  line-height:1.25;
}

.marketplace-card-title span,
.marketplace-publisher-title span,
.marketplace-description,
.marketplace-heading p{
  color:var(--text-secondary);
  font-size:12px;
  line-height:1.45;
}

.marketplace-description{
  font-size:13px;
}

.marketplace-app-icon,
.marketplace-detail-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:contain;
  flex:0 0 auto;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

.marketplace-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}

.marketplace-badge{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 9px;
  background:color-mix(in srgb,var(--custom-color,#6366f1) 18%,transparent);
  border:1px solid color-mix(in srgb,var(--custom-color,#6366f1) 42%,transparent);
  color:var(--text-primary);
  font-size:11px;
  line-height:1;
  user-select:none;
  white-space:nowrap;
}

[data-theme=light] .marketplace-badge{
  background:color-mix(in srgb,var(--custom-color,#0072de) 12%,transparent);
  border-color:color-mix(in srgb,var(--custom-color,#0072de) 32%,transparent);
  color:var(--custom-color,#0072de);
}

.marketplace-badge.installed{
  color:#fff;
  background:var(--custom-color,#6366f1);
  border-color:var(--custom-color,#6366f1);
}

.marketplace-open,
.marketplace-action,
.marketplace-install-pill{
  min-height:42px;
  border-radius:40px;
  font:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  user-select:none;
  transition:background .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);
}

.marketplace-open{
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-primary);
  padding:0 16px;
}

.marketplace-open:hover,
.marketplace-action:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
}

.marketplace-open:active,
.marketplace-action:active,
.marketplace-install-pill:active{
  transform:scale(.95);
}

.marketplace-action{
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-primary);
  padding:0 16px;
}

.marketplace-action.danger{
  border-color:rgba(239,68,68,.35);
  color:#ffb4b4;
}

.marketplace-action.danger:hover{
  background:rgba(239,68,68,.13);
  border-color:rgba(239,68,68,.48);
}

.marketplace-action:disabled,
.marketplace-install-pill:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.marketplace-install-pill{
  border:0;
  background:#fff;
  color:#000;
  padding:0 18px;
  white-space:nowrap;
}

.marketplace-install-pill:hover{
  background:rgba(255,255,255,.9);
}

.marketplace-empty{
  color:var(--text-secondary);
  padding:14px 0;
  font-size:13px;
}

.marketplace-heading{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:14px;
}

.marketplace-heading h3{
  margin:0;
  color:var(--text-primary);
  font-size:16px;
}

.marketplace-publishers{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.marketplace-publisher-tools{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.marketplace-publisher-tools span{
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 8px;
  color:var(--text-secondary);
  font-size:11px;
  user-select:none;
}

.marketplace-detail-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(.1px);
  -webkit-backdrop-filter:blur(.1px);
  padding:24px;
  overflow:auto;
}

.marketplace-detail-shell{
  width:min(720px,calc(100vw - 48px));
  min-height:min-content;
  margin:0 auto;
  background:#050505;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:32px;
  position:relative;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
}

.marketplace-detail-close{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  font:inherit;
  font-size:24px;
  line-height:1;
  user-select:none;
  transition:background .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);
}

.marketplace-detail-close:hover{
  background:rgba(255,255,255,.1);
}

.marketplace-detail-close:active{
  transform:scale(.95);
}

.marketplace-detail-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  padding:14px 54px 0 0;
}

.marketplace-detail-hero-top h3{
  margin:22px 0 2px;
  color:#fff;
  font-size:24px;
  line-height:1.1;
}

.marketplace-detail-hero-top p,
.marketplace-detail-description{
  margin:0;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.55;
}

.marketplace-detail-icon{
  width:56px;
  height:56px;
  border-radius:16px;
}

.marketplace-detail-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.marketplace-detail-visual{
  height:186px;
  margin:28px 0 22px;
  border-radius:20px;
  background:
    radial-gradient(circle at 20% 18%,rgba(255,255,255,.62),transparent 28%),
    linear-gradient(135deg,#bce8ff 0%,#54bceb 45%,#3e91ff 66%,#80c68e 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.marketplace-detail-orbit{
  width:82px;
  height:82px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.82);
  box-shadow:0 18px 48px rgba(0,0,0,.12);
}

.marketplace-detail-orbit img{
  width:48px;
  height:48px;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

.marketplace-detail-section{
  margin-top:26px;
}

.marketplace-detail-section h4{
  margin:0 0 14px;
  color:#fff;
  font-size:14px;
  line-height:1.2;
}

.marketplace-app-line{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
}

.marketplace-app-line strong{
  color:#fff;
  font-size:13px;
}

.marketplace-info-table{
  border-top:1px solid rgba(255,255,255,.12);
}

.marketplace-info-row{
  min-height:42px;
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);
  gap:16px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.marketplace-info-row span{
  color:rgba(255,255,255,.72);
  font-size:12px;
}

.marketplace-info-row strong,
.marketplace-info-row a{
  color:#fff;
  font-size:12px;
  text-decoration:none;
}

[data-theme=light] #marketplaceModal .modal-content{
  background:#fff;
  border-color:rgba(15,23,42,.1);
  box-shadow:0 20px 56px rgba(15,23,42,.16);
}

[data-theme=light] #marketplaceModal{
  background:rgba(15,23,42,.42);
}

[data-theme=light] #marketplaceModal .modal-header,
[data-theme=light] #marketplaceModal .modal-body{
  background:#fff;
}

[data-theme=light] #marketplaceModal .modal-header{
  border-bottom-color:rgba(15,23,42,.08);
}

[data-theme=light] #marketplaceSearchInput{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.12);
  color:#0d0d0d;
}

[data-theme=light] #marketplaceSearchInput:focus{
  background:rgba(15,23,42,.06);
  border-color:#0072de;
}

[data-theme=light] .marketplace-card{
  background:rgba(255,255,255,.92);
  border-color:rgba(15,23,42,.1);
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}

[data-theme=light] .marketplace-card:hover{
  border-color:rgba(15,23,42,.18);
}

[data-theme=light] .marketplace-open,
[data-theme=light] .marketplace-action{
  border-color:rgba(15,23,42,.12);
}

[data-theme=light] .marketplace-open:hover,
[data-theme=light] .marketplace-action:hover{
  background:rgba(15,23,42,.06);
  border-color:rgba(15,23,42,.2);
}

[data-theme=light] .marketplace-badge.installed{
  background:var(--custom-color,#0072de);
  border-color:var(--custom-color,#0072de);
  color:#fff;
}

#modelSelectorContainer{
  transform:translateX(8px);
}

[data-theme=light] .marketplace-install-pill{
  background:#0d0d0d;
  color:#fff;
}

[data-theme=light] .marketplace-install-pill:hover{
  background:#262626;
}

[data-theme=light] .marketplace-action.danger{
  color:#b91c1c;
}

[data-theme=light] .marketplace-detail-modal{
  background:rgba(15,23,42,.42);
}

[data-theme=light] .marketplace-detail-shell{
  background:#fff;
  color:#0d0d0d;
  border-color:rgba(15,23,42,.1);
  box-shadow:0 24px 80px rgba(15,23,42,.22);
}

[data-theme=light] .marketplace-detail-close{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.1);
  color:#0d0d0d;
}

[data-theme=light] .marketplace-detail-close:hover{
  background:rgba(15,23,42,.08);
}

[data-theme=light] .marketplace-detail-hero-top h3,
[data-theme=light] .marketplace-detail-section h4,
[data-theme=light] .marketplace-app-line strong,
[data-theme=light] .marketplace-info-row strong,
[data-theme=light] .marketplace-info-row a{
  color:#0d0d0d;
}

[data-theme=light] .marketplace-detail-hero-top p,
[data-theme=light] .marketplace-detail-description,
[data-theme=light] .marketplace-info-row span{
  color:rgba(15,23,42,.68);
}

[data-theme=light] .marketplace-info-table{
  border-top-color:rgba(15,23,42,.12);
}

[data-theme=light] .marketplace-info-row{
  border-bottom-color:rgba(15,23,42,.12);
}

@media (max-width:768px){
  #marketplaceModal .modal-content{
    width:calc(100vw - 48px);
    max-width:calc(100vw - 48px);
  }
  .marketplace-grid{
    grid-template-columns:1fr;
  }
  .marketplace-detail-modal{
    padding:12px;
  }
  .marketplace-detail-shell{
    width:calc(100vw - 24px);
    padding:24px;
    border-radius:22px;
  }
  .marketplace-detail-hero-top{
    flex-direction:column;
    padding-right:46px;
  }
  .marketplace-detail-actions{
    justify-content:flex-start;
  }
  .marketplace-detail-visual{
    height:164px;
  }
  .marketplace-info-row{
    grid-template-columns:1fr;
    gap:4px;
    padding:11px 0;
  }
}

@media (max-width:480px){
  #marketplaceModal .modal-header{
    padding:16px 18px 12px;
  }
  #marketplaceModal .modal-body{
    padding:16px 18px;
  }
  .marketplace-toolbar{
    margin-bottom:12px;
  }
  .marketplace-card{
    padding:13px;
  }
  .marketplace-card-header{
    flex-wrap:wrap;
  }
  .marketplace-badges{
    width:100%;
    justify-content:flex-start;
  }
  .marketplace-detail-shell{
    padding:20px;
  }
}
