:root{
  --p-bg:#070b10;
  --p-panel:#111821;
  --p-panel2:#171f29;
  --p-line:#2a3541;
  --p-text:#f4f6f8;
  --p-muted:#929daa;
  --p-orange:#ff7a12;
  --p-orange2:#ffa34b;
  --p-green:#36cf7a
}
.b147pro-login{
  max-width:600px;
  margin:60px auto;
  padding:35px;
  border:1px solid var(--p-line);
  border-radius:20px;
  color:var(--p-text);
  text-align:center;
  background:var(--p-panel)
}
.b147pro-login a{
  display:inline-flex;
  margin-top:15px;
  padding:12px 25px;
  border-radius:10px;
  color:#1b0b01;
  background:var(--p-orange);
  font-weight:800;
  text-decoration:none
}
.b147pro-shell{
  direction:rtl;
  width:min(1500px,calc(100% - 30px));
  min-height:760px;
  display:grid;
  grid-template-columns:285px 1fr;
  margin:30px auto;
  overflow:hidden;
  border:1px solid var(--p-line);
  border-radius:21px;
  color:var(--p-text);
  background:var(--p-bg);
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  font-family:Vazirmatn,IRANSansX,Tahoma,Arial,sans-serif
}
.b147pro-shell *{box-sizing:border-box}
.b147pro-sidebar{
  padding:22px 17px;
  border-left:1px solid var(--p-line);
  background:#0c1218
}
.b147pro-brand{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:22px
}
.b147pro-brand>span{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:var(--p-orange);
  background:rgba(255,122,18,.12);
  font-weight:900
}
.b147pro-brand div{display:flex;flex-direction:column}
.b147pro-brand small{color:var(--p-muted);font-size:10px}
.b147pro-new{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:10px;
  color:#1a0901;
  background:linear-gradient(135deg,var(--p-orange2),var(--p-orange));
  font:inherit;
  font-weight:800;
  cursor:pointer
}
.b147pro-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:17px 0
}
.b147pro-tabs button{
  min-height:39px;
  border:1px solid var(--p-line);
  border-radius:8px;
  color:#a9b2bb;
  background:#111820;
  font:inherit;
  font-size:12px;
  cursor:pointer
}
.b147pro-tabs button.active{
  color:var(--p-orange);
  border-color:rgba(255,122,18,.5);
  background:rgba(255,122,18,.07)
}
.b147pro-history{
  max-height:590px;
  overflow:auto
}
.b147pro-history-item{
  width:100%;
  display:block;
  margin-bottom:7px;
  padding:12px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:9px;
  color:#aeb6bf;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
  background:transparent;
  font:inherit;
  font-size:12px;
  cursor:pointer
}
.b147pro-history-item:hover,
.b147pro-history-item.active{
  color:#fff;
  border-color:#2e3945;
  background:#151d26
}
.b147pro-loading{
  padding:15px;
  color:var(--p-muted);
  text-align:center;
  font-size:12px
}
.b147pro-main{
  min-width:0;
  display:flex;
  flex-direction:column
}
.b147pro-header{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 23px;
  border-bottom:1px solid var(--p-line);
  background:#0d131a
}
.b147pro-model{position:relative}
.b147pro-model>button{
  min-width:240px;
  min-height:50px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:7px 12px;
  border:1px solid #33404c;
  border-radius:11px;
  color:#fff;
  background:#121a22;
  font:inherit;
  cursor:pointer
}
.b147pro-model>button i{
  margin-right:auto;
  color:var(--p-muted);
  font-style:normal
}
.b147pro-logo{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  border-radius:9px;
  color:#fff;
  background:#293541;
  font-size:11px;
  font-weight:900
}
.b147pro-logo svg{width:24px;height:24px}
.b147pro-logo.openai{background:#159c75}
.b147pro-logo.claude{background:#be6848}
.b147pro-logo.gemini{background:linear-gradient(135deg,#7e8dff,#168cff)}
.b147pro-logo.deepseek{background:#3569e9}
.b147pro-logo.grok{background:#050607}
.b147pro-logo.meta{background:#1674dc}
.b147pro-logo.mistral{background:#f18d19}
.b147pro-logo.qwen{background:#6758df}
.b147pro-logo.cohere{background:#327f68}
.b147pro-logo.perplexity{background:#1d8c8c}
.b147pro-logo.copilot{background:#397ad8}
.b147pro-logo.stability{background:#764ae5}
.b147pro-logo.flux{background:#171717}
.b147pro-logo.midjourney{background:#101010}
.b147pro-logo.runway{background:#8757ff}
.b147pro-logo.luma{background:#4c64df}
.b147pro-logo.elevenlabs{background:#111}
.b147pro-logo.suno{background:#5c46de}
.b147pro-model-menu{
  position:absolute;
  z-index:100;
  top:58px;
  right:0;
  width:340px;
  max-height:430px;
  display:none;
  overflow:auto;
  padding:7px;
  border:1px solid #34404c;
  border-radius:13px;
  background:#111820;
  box-shadow:0 25px 70px rgba(0,0,0,.55)
}
.b147pro-model-menu.open{display:block}
.b147pro-model-option{
  width:100%;
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:10px;
  padding:9px;
  border:0;
  border-radius:9px;
  color:#fff;
  text-align:right;
  background:transparent;
  font:inherit;
  cursor:pointer
}
.b147pro-model-option:hover,
.b147pro-model-option.selected{background:#19232d}
.b147pro-model-option div:last-child{
  display:flex;
  flex-direction:column
}
.b147pro-model-option small{
  color:var(--p-muted);
  font-size:10px
}
.b147pro-memory-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#9ca7b1;
  font-size:12px
}
.b147pro-memory-status span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--p-green);
  box-shadow:0 0 12px rgba(54,207,122,.7)
}
.b147pro-view{
  min-height:680px;
  display:none;
  flex:1
}
.b147pro-view.active{display:flex}
.b147pro-view[data-view="chat"]{
  flex-direction:column
}
.b147pro-messages{
  flex:1;
  max-height:610px;
  overflow:auto;
  padding:28px clamp(20px,6vw,90px)
}
.b147pro-welcome{
  display:grid;
  place-items:center;
  min-height:450px;
  text-align:center
}
.b147pro-welcome-icon{
  width:70px;
  height:70px;
  display:grid;
  place-items:center;
  border-radius:20px;
  color:var(--p-orange);
  background:rgba(255,122,18,.1);
  font-size:35px
}
.b147pro-welcome h2{margin:17px 0 6px}
.b147pro-welcome p{margin:0;color:var(--p-muted)}
.b147pro-message{
  max-width:850px;
  margin:0 auto 18px
}
.b147pro-message.user{display:flex;justify-content:flex-start}
.b147pro-message.assistant{display:flex;justify-content:flex-end}
.b147pro-bubble{
  max-width:85%;
  padding:14px 17px;
  border:1px solid var(--p-line);
  border-radius:15px;
  white-space:pre-wrap;
  line-height:2
}
.b147pro-message.user .b147pro-bubble{
  border-bottom-right-radius:4px;
  color:#fff;
  background:#283543
}
.b147pro-message.assistant .b147pro-bubble{
  border-bottom-left-radius:4px;
  background:#131b24
}
.b147pro-composer{
  display:grid;
  grid-template-columns:1fr 52px;
  gap:10px;
  margin:15px clamp(20px,6vw,90px) 24px;
  padding:9px 10px;
  border:1px solid #34414e;
  border-radius:15px;
  background:#131b24
}
.b147pro-composer textarea{
  width:100%;
  min-height:50px;
  max-height:180px;
  resize:none;
  padding:12px;
  border:0;
  outline:0;
  color:#fff;
  background:transparent;
  font:inherit
}
.b147pro-composer button{
  width:50px;
  height:50px;
  align-self:end;
  border:0;
  border-radius:11px;
  color:#1b0b01;
  background:var(--p-orange);
  font-size:20px;
  cursor:pointer
}
.b147pro-view[data-view="project"]{
  overflow:auto;
  padding:35px
}
.b147pro-project{
  width:min(900px,100%);
  margin:auto
}
.b147pro-project-intro{text-align:center}
.b147pro-project-intro>span{
  width:65px;
  height:65px;
  display:grid;
  place-items:center;
  margin:auto;
  border-radius:18px;
  color:var(--p-orange);
  background:rgba(255,122,18,.1);
  font-size:30px
}
.b147pro-project-intro p{color:var(--p-muted);line-height:2}
.b147pro-project>textarea{
  width:100%;
  padding:17px;
  border:1px solid #35424e;
  border-radius:13px;
  outline:0;
  color:#fff;
  background:#111922;
  font:inherit;
  line-height:2
}
.b147pro-project-start,
.b147pro-project-run{
  min-height:50px;
  margin-top:13px;
  padding:0 22px;
  border:0;
  border-radius:10px;
  color:#190900;
  background:var(--p-orange);
  font:inherit;
  font-weight:800;
  cursor:pointer
}
.b147pro-project-panel{
  margin-top:22px;
  padding:20px;
  border:1px solid var(--p-line);
  border-radius:14px;
  background:#101820
}
.b147pro-progress{
  height:9px;
  overflow:hidden;
  border-radius:99px;
  background:#293541
}
.b147pro-progress span{
  width:0;
  height:100%;
  display:block;
  background:linear-gradient(90deg,var(--p-orange),var(--p-orange2));
  transition:.3s
}
.b147pro-project-status{
  margin:13px 0;
  color:#b6bec6
}
.b147pro-project-panel li{
  margin:7px 0;
  color:#9da7b1
}
.b147pro-project-panel li.done{
  color:#6fd69b;
  text-decoration:line-through
}
.b147pro-project-panel pre{
  max-height:420px;
  overflow:auto;
  padding:17px;
  border-radius:11px;
  color:#d7dde2;
  white-space:pre-wrap;
  background:#080d12;
  font-family:inherit;
  line-height:2
}
@media(max-width:850px){
  .b147pro-shell{grid-template-columns:1fr}
  .b147pro-sidebar{
    border-left:0;
    border-bottom:1px solid var(--p-line)
  }
  .b147pro-history{max-height:150px}
}
@media(max-width:560px){
  .b147pro-shell{width:calc(100% - 14px);margin:7px}
  .b147pro-header{
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .b147pro-model,
  .b147pro-model>button{width:100%}
  .b147pro-model-menu{width:100%}
  .b147pro-messages{padding:20px 12px}
  .b147pro-composer{margin:10px 12px 17px}
  .b147pro-view[data-view="project"]{padding:20px 13px}
}
