
@font-face{font-family:Dana;src:url('assets/fonts/dana-thin.ttf') format('truetype');font-style:normal;font-weight:100;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-extralight.ttf') format('truetype');font-style:normal;font-weight:200;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-light.ttf') format('truetype');font-style:normal;font-weight:300;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-demibold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-extrabold.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}
@font-face{font-family:Dana;src:url('assets/fonts/dana-black.ttf') format('truetype');font-style:normal;font-weight:900;font-display:swap}
:root{font-family:Dana;color:#0a1f44;background:#fff;font-synthesis:none;--purple:#635bff;--line:#f2f2f2;--muted:#8a94a6}
*{box-sizing:border-box}body{margin:0;min-width:320px;height:100vh;overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}.app-shell{height:100vh;display:flex;direction:ltr;background:white}.workspace{position:relative;isolation:isolate;flex:1;min-width:0;display:flex;flex-direction:column;padding:24px 24px 34px;background:radial-gradient(ellipse at 0% 2%,rgba(99,91,255,.075),transparent 30%),radial-gradient(ellipse at 100% 100%,rgba(194,96,255,.07),transparent 30%),#fff;overflow:hidden;direction:rtl}.workspace:before,.workspace:after{content:"";position:absolute;z-index:-1;width:400px;height:400px;border-radius:50%;filter:blur(70px);opacity:.12;pointer-events:none}.workspace:before{top:-300px;left:-170px;background:#8377ff}.workspace:after{bottom:-320px;right:-170px;background:#d281ff}.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;flex:none;direction:ltr}.toolbar{display:flex;align-items:center;gap:8px;direction:ltr}.icon-button,.team-select{height:56px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center}.icon-button{width:56px;color:#8691a4}.icon-button img{width:24px;height:24px;object-fit:contain}.team-select{gap:8px;padding:0 14px;font-size:14px}.chevron{color:#8490a4}.team-glyph{color:#57b96d}.conversation{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.welcome{display:flex;flex-direction:column;align-items:center;text-align:center;transform:translateY(-8px);max-width:850px}.welcome-art{width:min(512px,26.7vw);height:auto;object-fit:contain;margin-bottom:20px}.welcome h1{font-size:clamp(22px,1.67vw,32px);line-height:1.5;margin:0 0 10px;font-weight:800;letter-spacing:-.5px}.brand-word{color:var(--purple)}.welcome p{font-size:clamp(12px,.94vw,18px);line-height:1.9;margin:0}.welcome strong{font-weight:700}.messages{display:none;width:min(820px,100%);height:100%;overflow:auto;padding:28px 12px;flex-direction:column;gap:18px}.messages.active{display:flex}.message{max-width:78%;padding:14px 18px;border-radius:18px;font-size:15px;line-height:1.9;white-space:pre-wrap}.message.user{align-self:flex-start;background:#f4f3ff;border:1px solid #eeedff}.message.bot{align-self:flex-end;background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #162c4c0a}.composer-area{width:min(976px,100%);margin:0 auto;flex:none;display:flex;flex-direction:column;gap:18px}.suggestions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;direction:ltr}.suggestion{height:56px;padding:7px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:center;gap:9px;font-size:13px;box-shadow:0 3px 12px #18284505;transition:.16s}.suggestion:hover,.icon-button:hover,.team-select:hover{border-color:#dedcff;transform:translateY(-1px)}.suggest-icon{height:36px;width:36px;border-radius:10px;display:grid;place-items:center;font-size:18px}.amber{color:#ff9e00;background:#fff8ed}.green{color:#4db757;background:#effaf0}.blue{color:#4aa4f4;background:#eef7ff}.violet{color:#635bff;background:#f4f3ff}.suggest-arrow{font-size:20px;color:#9aa4b5}.composer{height:80px;direction:ltr;background:#fff;border-radius:22px;box-shadow:0 3px 20px #1a274117;display:flex;align-items:center;justify-content:space-between;padding:10px;gap:12px}.composer-tools,.input-side{display:flex;align-items:center;gap:10px}.send-button,.mic-button,.model-button,.attach-button{height:56px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:#fff}.send-button{width:56px;background:var(--purple);color:white;border:0}.send-button img{width:32px;height:32px;filter:brightness(0) invert(1)}.mic-button{width:56px;border:1px solid var(--purple);color:var(--purple)}.mic-button img{width:24px;height:24px}.model-wrap{position:relative}.model-button{border:1px solid var(--line);gap:8px;padding:0 12px;font-size:13px}.model-mark{font-size:21px}.model-menu{display:none;position:absolute;z-index:4;bottom:64px;left:0;width:170px;background:white;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 30px #172a451c}.model-menu.open{display:block}.model-menu button{width:100%;border:0;background:none;text-align:right;border-radius:8px;padding:10px;font-size:13px}.model-menu button:hover{background:#f6f5ff}.input-side{flex:1;min-width:0;justify-content:flex-end;direction:ltr}.input-side textarea{border:0;outline:0;resize:none;min-height:28px;max-height:90px;flex:1;min-width:40px;text-align:right;color:#0a1f44;background:transparent;font-size:15px;line-height:1.8}.input-side textarea::placeholder{color:#8a94a6}.attach-button{width:56px;border:1px solid var(--line);color:#8a94a6;cursor:pointer}.attach-button img{width:24px;height:24px}.file-note{font-size:12px;color:var(--muted);text-align:right;min-height:0}.sidebar{width:clamp(220px,15.42vw,296px);direction:rtl;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;padding:0 16px 16px;z-index:5;transition:transform .22s,width .22s;overflow:hidden}.side-brand{height:80px;flex:none;margin:0 -16px 16px;border-bottom:1px solid var(--line);display:grid;place-items:center}.side-brand img{width:90px;height:26px;object-fit:contain}.new-chat{height:48px;border:0;border-radius:12px;background:var(--purple);color:white;display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;flex:none}.search-box{height:48px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding:0 12px;color:#8a94a6;flex:none}.search-box input{width:100%;border:0;outline:0;text-align:right;font-size:12px}.search-box input::placeholder{color:#9aa4b5}.side-groups{display:flex;flex-direction:column;gap:10px;margin-top:16px;flex:none}.group{border:1px solid var(--line);border-radius:15px;overflow:hidden}.group-title{width:100%;height:42px;border:0;background:#f7f6ff;padding:0 12px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.pinned-group .group-title{background:#fffaf2}.group-icons{color:#635bff;letter-spacing:2px}.pinned-group .group-icons{color:#ff9e00}.group-items{padding:5px 10px;background:#fcfcfd;display:flex;flex-direction:column;gap:2px}.group-items.collapsed{display:none}.side-item{height:39px;width:100%;background:none;border:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 5px;font-size:12px;color:#243654;text-align:right;white-space:nowrap}.side-item span{color:#a7b1c0}.history{overflow:auto;flex:1;min-height:60px;margin-top:18px}.history-group{display:flex;flex-direction:column;margin-bottom:14px}.history-group h2{font-size:12px;font-weight:400;color:#8a94a6;margin:0 0 5px}.history-item{height:35px;border:0;background:transparent;text-align:right;padding:0 6px;border-radius:8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item:hover,.side-item:hover{background:#f7f7fb}.profile{height:48px;flex:none;border:1px solid var(--line);border-radius:13px;background:white;display:flex;align-items:center;gap:9px;padding:5px 8px;margin-top:8px;text-align:right}.avatar{height:32px;width:32px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#edc58d,#596c45);color:white;font-weight:700}.profile-copy{display:flex;flex-direction:column;flex:1;min-width:0}.profile-copy b{font-size:11px;font-weight:500}.profile-copy small{font-size:9px;color:#8a94a6;direction:ltr;text-align:right}.profile-arrow{font-size:18px;color:#9aa4b5}.toast{position:fixed;z-index:10;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#182746;color:white;padding:10px 16px;border-radius:10px;font-size:13px;transition:.2s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.sidebar{width:clamp(220px,20vw,260px)}.workspace{padding:18px 18px 24px}.suggestions{gap:8px}.suggestion{font-size:12px;padding:6px 9px}.composer-area{gap:14px}}
@media(max-width:760px){body{overflow:hidden}.workspace{padding:12px 12px 16px}.sidebar{position:fixed;inset:0 0 0 auto;width:min(320px,85vw);box-shadow:-18px 0 40px #14233b20;transform:translateX(110%)}.sidebar.open{transform:translateX(0)}.topbar{height:52px}.icon-button,.team-select{height:44px;border-radius:13px}.icon-button{width:44px}.toolbar{gap:5px}.team-select{padding:0 9px}.welcome{transform:translateY(-10px)}.welcome-art{width:min(360px,78vw);margin-bottom:10px}.welcome h1{font-size:23px}.welcome p{font-size:13px;max-width:520px}.composer-area{gap:10px}.suggestions{display:grid;grid-template-columns:1fr 1fr;width:100%}.suggestion{height:48px;justify-content:flex-start}.suggest-icon{height:30px;width:30px}.composer{height:auto;min-height:68px;padding:7px;border-radius:18px;gap:7px}.composer-tools{gap:5px}.send-button,.mic-button,.attach-button{height:46px;width:44px;border-radius:13px}.model-button{height:46px;padding:0 8px;gap:5px;font-size:11px}.model-mark{font-size:17px}.input-side{gap:5px}.input-side textarea{font-size:13px}.attach-button{font-size:22px}.file-note{font-size:11px}.messages{padding:14px 2px}}
@media(max-width:420px){.toolbar .icon-button:nth-child(2){display:none}.team-select{font-size:12px}.suggestion{gap:5px;font-size:11px;padding:5px}.suggest-arrow{margin-right:auto}.model-mark{display:none}.composer-tools{gap:4px}.send-button,.mic-button{width:38px}.model-button{padding:0 6px}.input-side textarea::placeholder{font-size:12px}}
@media(min-width:761px){
  .workspace{padding:clamp(14px,1.25vw,24px) clamp(12px,1.25vw,24px) clamp(24px,3.333vw,64px)}
  .topbar{height:clamp(42px,2.917vw,56px)}
  .icon-button,.team-select{height:clamp(42px,2.917vw,56px);border-radius:clamp(11px,.833vw,16px)}
  .icon-button{width:clamp(42px,2.917vw,56px)}
  .team-select{font-size:clamp(12px,.833vw,16px);padding-inline:clamp(10px,.833vw,16px)}
  .welcome{transform:translateY(clamp(-24px,-1.25vw,-10px))}
  .welcome p{max-width:min(100%,35.36vw)}
  .welcome-art{margin-bottom:clamp(34px,3.333vw,64px)}
  .welcome h1{margin-bottom:clamp(7px,.52vw,10px)}
  .welcome p{max-width:min(100%,46vw)}
  .composer-area{gap:clamp(16px,1.667vw,32px)}
  .suggestions{gap:clamp(8px,.833vw,16px)}
  .suggestion{height:clamp(34px,3.333vw,64px);padding:clamp(5px,.417vw,8px) clamp(9px,.833vw,16px);gap:clamp(5px,.417vw,8px);border-radius:clamp(9px,.833vw,16px);font-size:clamp(11px,.833vw,16px)}
  .suggest-icon{height:clamp(22px,2.083vw,40px);width:clamp(22px,2.083vw,40px);border-radius:clamp(6px,.417vw,8px)}
  .suggest-icon img{width:clamp(14px,1.25vw,24px);height:clamp(14px,1.25vw,24px);object-fit:contain}
  .suggest-arrow{font-size:clamp(14px,1.25vw,24px)}
  .composer{height:clamp(58px,4.583vw,88px);padding:clamp(7px,.833vw,16px);gap:clamp(7px,.833vw,16px);border-radius:clamp(16px,1.25vw,24px)}
  .composer-tools,.input-side{gap:clamp(7px,.833vw,16px)}
  .send-button,.mic-button,.model-button,.attach-button{height:clamp(38px,2.917vw,56px);border-radius:clamp(10px,.833vw,16px)}
  .send-button,.mic-button,.attach-button{width:clamp(38px,2.917vw,56px)}
  .send-button img{width:clamp(22px,1.667vw,32px);height:clamp(22px,1.667vw,32px)}
  .mic-button img,.attach-button img{width:clamp(16px,1.25vw,24px);height:clamp(16px,1.25vw,24px)}
  .model-button{font-size:clamp(11px,.833vw,16px);padding-inline:clamp(9px,.833vw,16px);gap:clamp(5px,.417vw,8px)}
  .model-mark{font-size:clamp(16px,1.25vw,24px)}
  .input-side textarea{font-size:clamp(12px,.938vw,18px)}
  .sidebar{width:clamp(160px,15.42vw,296px);padding:0 clamp(10px,.833vw,16px) clamp(18px,1.667vw,32px)}
  .side-brand{height:clamp(54px,4.167vw,80px);margin:0 clamp(-16px,-.833vw,-10px) clamp(10px,.833vw,16px)}
  .side-brand img{width:clamp(60px,4.71vw,90px);height:auto}
  .new-chat{height:clamp(32px,2.5vw,48px);font-size:clamp(10px,.833vw,16px);border-radius:clamp(8px,.625vw,12px)}
  .new-chat img{width:clamp(16px,1.25vw,24px);height:clamp(16px,1.25vw,24px);filter:brightness(0) invert(1)}
  .search-box{height:clamp(32px,2.5vw,48px);margin-top:clamp(10px,.833vw,16px);padding-inline:clamp(8px,.833vw,16px);border-radius:clamp(8px,.625vw,12px)}
  .search-box input{font-size:clamp(9px,.729vw,14px)}
  .search-box img{width:clamp(16px,1.25vw,24px);height:clamp(16px,1.25vw,24px);object-fit:contain}
  .side-groups{gap:clamp(10px,.833vw,16px);margin-top:clamp(10px,.833vw,16px)}
  .group{border-radius:clamp(10px,.833vw,16px)}
  .group-title{height:clamp(32px,2.5vw,48px);padding-inline:clamp(10px,.833vw,16px);font-size:clamp(9px,.729vw,14px)}
  .group-name{display:flex;align-items:center;gap:clamp(4px,.417vw,8px)}
  .group-name img{width:clamp(16px,1.25vw,24px);height:clamp(16px,1.25vw,24px);object-fit:contain}
  .group-items{padding:clamp(8px,.833vw,16px);gap:clamp(4px,.417vw,8px)}
  .side-item{height:clamp(29px,2.292vw,44px);font-size:clamp(9px,.729vw,14px);gap:clamp(5px,.417vw,8px)}
  .side-item img{width:clamp(14px,1.042vw,20px);height:clamp(14px,1.042vw,20px);object-fit:contain}
  .history{margin-top:clamp(12px,.938vw,18px)}
  .history-group{margin-bottom:clamp(9px,.729vw,14px)}
  .history-group h2,.history-item{font-size:clamp(9px,.729vw,14px)}
  .history-group h2{margin-bottom:clamp(3px,.26vw,5px)}
  .history-item{height:clamp(23px,1.823vw,35px);padding-inline:clamp(4px,.313vw,6px)}
  .profile{height:clamp(38px,2.917vw,56px);margin-top:clamp(6px,.417vw,8px);gap:clamp(6px,.469vw,9px);padding:clamp(4px,.26vw,5px) clamp(6px,.417vw,8px);border-radius:clamp(9px,.677vw,13px)}
  .avatar{height:clamp(24px,1.667vw,32px);width:clamp(24px,1.667vw,32px);font-size:clamp(11px,.833vw,16px)}
  .profile-copy b{font-size:clamp(9px,.573vw,11px)}
  .profile-copy small{font-size:clamp(8px,.469vw,9px)}
  .workspace{background:#fff}
  .workspace:before,.workspace:after{width:clamp(230px,25.16vw,483px);height:clamp(230px,25.16vw,483px);filter:blur(clamp(38px,3.65vw,70px));opacity:.22;background-position:center;background-repeat:no-repeat;background-size:100% 100%}
  .workspace:before{top:clamp(-116px,-6.04vw,-53px);left:clamp(-97px,-5.05vw,-44px);background-image:url("assets/glow-top.svg")}
  .workspace:after{right:clamp(-227px,-11.82vw,-104px);bottom:clamp(-125px,-6.51vw,-57px);background-image:url("assets/glow-bottom.svg")}
}
.model-mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}
.model-mark img{width:100%;height:100%;object-fit:contain}
.messages{width:min(976px,100%);padding:24px 0;gap:24px;direction:rtl}
.message{max-width:100%;text-align:right;line-height:1.9}
.message.user{align-self:flex-start;width:fit-content;max-width:min(82%,760px);background:#635bff;border-color:#635bff;color:#fff;border-radius:16px;padding:16px}
.message.bot{align-self:stretch;max-width:100%;background:transparent;border:0;box-shadow:none;padding:0;color:#0a1f44;font-size:16px;line-height:2.1}
.selector-overlay[hidden]{display:none}
.selector-overlay{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:rgba(255,255,255,.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.selector-panel{width:min(706px,calc(100vw - 40px));height:min(860px,79vh);min-height:420px;padding:clamp(12px,.833vw,16px);display:flex;flex-direction:column;gap:clamp(10px,1.25vw,24px);border:1px solid #f2f2f2;border-radius:clamp(12px,.833vw,16px);background:#fff;box-shadow:0 0 24px rgba(10,31,68,.1);direction:rtl;outline:none}
.selector-controls{display:flex;flex-direction:column;gap:clamp(8px,.833vw,16px);flex:none}
.model-search{height:clamp(38px,2.5vw,48px);display:flex;align-items:center;gap:8px;padding:0 16px;border:1px solid #f2f2f2;border-radius:12px;background:#f8f9fb;color:#8a94a6}
.model-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;text-align:right;color:#0a1f44;font-size:clamp(12px,.729vw,14px)}
.model-search input::placeholder{color:#8a94a6}
.model-search img{width:24px;height:24px;flex:none}
.model-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(4px,.417vw,8px);direction:rtl}
.model-filter{min-width:0;height:clamp(38px,2.5vw,48px);display:flex;align-items:center;justify-content:center;gap:clamp(4px,.417vw,8px);padding:0 clamp(5px,.833vw,16px);border:1px solid #635bff;border-radius:12px;background:#fff;color:#635bff;font-size:clamp(10px,.729vw,14px);white-space:nowrap}
.model-filter.active{background:#635bff;color:#fff;font-weight:600}
.filter-glyph{font-size:clamp(14px,1.25vw,24px);line-height:1;flex:none}
.battle-row{width:100%;min-height:clamp(72px,4.79vw,92px);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;border:0;border-bottom:1px solid #f2f2f2;border-radius:12px;background:#fff;text-align:right;direction:ltr;flex:none}
.battle-row:hover,.model-option:hover{background:#fafaff}
.battle-row.is-selected{background:#f5f4ff}
.model-capabilities{width:clamp(72px,8.33vw,160px);flex:none;display:flex;align-items:center;gap:clamp(8px,.833vw,16px);color:#8793a8;font-size:clamp(13px,.833vw,16px)}
.model-capabilities i{font-style:normal;line-height:1}
.battle-copy{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-end;gap:2px;direction:rtl}
.battle-heading,.model-heading{display:flex;align-items:center;gap:8px;min-width:0}
.battle-heading b,.model-heading b{font-family:Dana;font-size:clamp(12px,.833vw,16px);font-weight:600;color:#0a1f44;white-space:nowrap}
.battle-copy small,.model-copy small{display:block;color:#8a94a6;font-size:clamp(10px,.729vw,14px);line-height:1.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.status-chip{height:clamp(22px,1.667vw,32px);display:inline-flex;align-items:center;justify-content:center;padding:0 clamp(8px,.833vw,16px);border-radius:24px;font-size:clamp(10px,.729vw,14px);line-height:1;white-space:nowrap}
.status-chip.purple{color:#635bff;background:#f4f3ff}.status-chip.green{color:#4db757;background:#f0faf1}.status-chip.amber{color:#ff9e00;background:#fff8eb}.status-chip.blue{color:#26a9e0;background:#eefaff}.status-chip.red{color:#f05b55;background:#fff1f0}
.battle-logo,.model-logo{width:clamp(36px,2.5vw,48px);height:clamp(36px,2.5vw,48px);flex:none;display:grid;place-items:center;border-radius:16px;background:#f8f9fb;object-fit:contain;padding:4px}
.battle-logo img{width:100%;height:100%;object-fit:contain}
.model-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:clamp(4px,.417vw,8px);direction:rtl;scrollbar-width:thin;scrollbar-color:#d8dce5 transparent}
.model-option{width:100%;min-height:clamp(48px,3.958vw,76px);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:clamp(6px,.417vw,8px) clamp(8px,.833vw,16px);border:1px solid transparent;border-radius:16px;background:#fff;text-align:right;direction:ltr;flex:none}
.model-option.is-selected{border-color:#d8d5ff;background:#f7f6ff}
.model-option[hidden]{display:none}
.model-details{min-width:0;flex:1;display:flex;align-items:center;gap:clamp(8px,.833vw,16px);direction:ltr}
.model-copy{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-end;gap:2px;direction:rtl}
.model-copy small{font-size:clamp(10px,.729vw,14px)}
.model-logo{padding:6px}
.gemini-logo{font-size:30px;color:#4085f5;background:conic-gradient(from 20deg,#4285f4,#34a853,#fbbc04,#ea4335,#4285f4);background-clip:text;-webkit-text-fill-color:transparent}
.model-option[aria-pressed="true"] .model-heading:after{content:"✓";order:-1;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#635bff;color:#fff;font-size:11px}
@media(max-width:760px){
  .selector-overlay{padding:12px}
  .selector-panel{width:min(520px,100%);height:min(88vh,860px);min-height:0;padding:12px;gap:12px}
  .model-filter{white-space:normal;line-height:1.3}
  .model-capabilities{width:58px;gap:6px}
  .battle-row{padding:8px}
  .model-option{padding:6px 8px}
  .messages{padding:16px 0;gap:18px}
  .message.user{max-width:90%;padding:12px}
  .message.bot{font-size:15px}
}
@media(max-width:420px){
  .selector-panel{width:100%;height:90vh}
  .model-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .model-capabilities{display:none}
  .battle-copy small,.model-copy small{font-size:10px}
  .model-heading{gap:5px}
  .status-chip{padding:0 7px;font-size:9px}
  .model-mark{display:inline-flex;width:18px;height:18px}
}

/* Welcome canvas: four soft corner glows from the Figma reference. */
.workspace{
  background:
    radial-gradient(circle clamp(180px, 24vw, 460px) at 0% 0%, rgba(157, 143, 255, .14) 0%, rgba(157, 143, 255, .07) 34%, transparent 74%),
    radial-gradient(circle clamp(180px, 24vw, 460px) at 100% 0%, rgba(133, 187, 255, .13) 0%, rgba(133, 187, 255, .06) 36%, transparent 74%),
    radial-gradient(circle clamp(180px, 24vw, 460px) at 0% 100%, rgba(126, 218, 174, .12) 0%, rgba(126, 218, 174, .055) 36%, transparent 74%),
    radial-gradient(circle clamp(180px, 24vw, 460px) at 100% 100%, rgba(187, 157, 255, .12) 0%, rgba(187, 157, 255, .055) 36%, transparent 74%),
    #fff;
}
.workspace:before,.workspace:after{opacity:0;background-image:none}
.sidebar{border-left:1px solid #f2f2f2}
.selector-overlay{display:block;padding:0}
.selector-panel{position:fixed;margin:0}
.selector-overlay{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
.selector-overlay::before{content:"";position:fixed;z-index:0;inset:0;background:rgba(255,255,255,.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:auto;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-size:100% 100%,var(--composer-width) var(--composer-height);-webkit-mask-position:0 0,var(--composer-left) var(--composer-top);-webkit-mask-repeat:no-repeat;-webkit-mask-composite:xor;mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-size:100% 100%,var(--composer-width) var(--composer-height);mask-position:0 0,var(--composer-left) var(--composer-top);mask-repeat:no-repeat;mask-composite:exclude}
.selector-panel{z-index:1;pointer-events:auto}

/* Figma-native model selector metrics and iconography. */
.selector-panel{width:min(706px,calc(100vw - 40px));height:min(860px,79vh);padding:16px;gap:24px;border:1px solid #f2f2f2;border-radius:16px;box-shadow:0 0 15px rgba(0,0,0,.07);font-family:Dana}
.selector-controls{gap:16px}
.model-search{height:48px;gap:8px;padding:0 16px;border-radius:12px;direction:ltr;font-family:Dana}
.model-search input{font-family:Dana;font-size:14px;line-height:28px}
.model-search img{width:21.5px;height:21.5px}
.model-filters{display:flex;gap:8px;direction:ltr}
.model-filter{width:162px;min-width:0;flex:1 1 162px;height:48px;gap:8px;padding:0 16px;border-radius:12px;font-family:Dana;font-size:14px;font-weight:500;line-height:28px;direction:ltr}
.model-filter.active{font-weight:600}
.filter-icon{width:24px;height:24px;flex:none;object-fit:contain}
.filter-icon.reasoning-icon{height:23.5px}
.battle-section{flex:none;margin-bottom:-8px}
.battle-row{height:76px;min-height:76px;padding:8px 16px;border:0;border-radius:16px;direction:ltr}
.battle-copy{align-items:flex-end;direction:ltr}
.battle-heading{direction:ltr;justify-content:flex-start;gap:8px}
.battle-heading b,.model-heading b{font-family:Dana;font-size:16px;font-weight:600;line-height:28px}
.battle-copy small{font-family:Dana;font-size:14px;line-height:28px;text-align:right}
.battle-logo{width:48px;height:48px;padding:2px;border-radius:16px}
.battle-logo img{width:32px;height:32px;object-fit:contain}
.selector-divider{height:1px;margin-top:16px;background:#f2f2f2}
.model-capabilities{width:auto;flex:none;gap:16px;direction:ltr}
.model-capabilities img{width:24px;height:24px;flex:none;object-fit:contain}
.model-capabilities img[src*="brain"]{height:23.5px}
.model-list{gap:8px;scrollbar-width:thin;scrollbar-color:#f2f2f2 transparent}
.model-option{height:76px;min-height:76px;padding:8px 16px;border:1px solid transparent;border-radius:16px;direction:ltr}
.model-option.is-selected{border-color:#635bff;background:rgba(99,91,255,.05)}
.model-details{gap:8px;direction:ltr}
.model-copy{align-items:stretch;gap:0;direction:rtl}
.model-heading{height:32px;gap:8px;justify-content:flex-start;direction:rtl}
.model-heading b{direction:ltr;unicode-bidi:isolate;text-align:right}
.model-copy small{font-family:Dana;font-size:14px;line-height:28px;text-align:right;color:#8a94a6}
.model-option[data-model="GPT-4o"] .model-copy small{font-size:16px;color:#0a1f44}
.status-chip{height:32px;padding:0 16px;border-radius:24px;font-family:Dana;font-size:14px;font-weight:500;line-height:28px}
.model-logo{width:48px;height:48px;padding:0;border-radius:0;background:transparent;object-fit:contain}
.model-logo.gemini-logo{padding:8px;border-radius:16px;background:#f8f9fb}
.model-option[aria-pressed="true"] .model-heading:after{content:none}
@media(max-width:760px){
  .selector-panel{padding:12px;gap:12px}
  .model-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .model-filter{width:auto;height:44px;padding:0 8px;font-size:12px}
  .battle-row{height:72px;min-height:72px;padding:8px}
  .model-option{height:auto;min-height:76px;padding:6px 8px}
  .model-capabilities{gap:6px}
  .model-copy small{font-size:12px}
  .model-option[data-model="GPT-4o"] .model-copy small{font-size:13px}
  .status-chip{height:26px;padding:0 8px;font-size:11px}
  .model-heading{gap:5px}
}
@media(max-width:420px){
  .selector-panel{width:100%;height:90vh;padding:10px;gap:10px}
  .model-capabilities{display:none}
  .model-heading b,.battle-heading b{font-size:13px}
  .model-copy small{font-size:10px}
  .model-option[data-model="GPT-4o"] .model-copy small{font-size:11px}
  .model-logo{width:40px;height:40px}
  .model-logo.gemini-logo{padding:6px}
}
.selector-panel{height:min(860px,var(--model-panel-height,79vh))}
.status-chip.purple{color:#635bff;background:rgba(99,91,255,.05)}
.status-chip.green{color:#4db757;background:rgba(77,183,87,.05)}
.status-chip.amber{color:#ff9e00;background:rgba(255,158,0,.05)}
.status-chip.blue{color:#26a9e0;background:rgba(38,169,224,.05)}
.status-chip.red{color:#f05b55;background:rgba(240,91,85,.05)}
.model-list{scrollbar-width:none}
.model-list::-webkit-scrollbar{display:none}
@media(max-width:420px){.selector-panel{height:min(90vh,var(--model-panel-height,90vh))}}

/* Selection colors share the same selected state as the model/mode controls. */
.capability-icon,.model-filter .filter-icon{display:inline-block;flex:none;width:24px;height:24px;background-color:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.capability-icon[aria-label="استدلال و تحلیل"]{height:23.5px}
.model-capabilities{color:#8a94a6}
.model-option.is-selected .model-capabilities,.battle-row.is-selected .model-capabilities{color:#635bff}
.model-filter{color:#635bff}
.model-filter.active{color:#fff}
.battle-row.is-selected{background:rgba(99,91,255,.05);box-shadow:inset 0 0 0 1px #635bff}
.capability-tooltip[hidden]{display:none}
.capability-tooltip{position:fixed;z-index:3;pointer-events:none;padding:6px 10px;border-radius:8px;background:#0a1f44;color:#fff;font-family:Dana;font-size:12px;font-weight:400;line-height:22px;white-space:nowrap;box-shadow:0 3px 12px #0a1f441a;direction:rtl}
#modelButton{gap:8px;padding-inline:16px}
#modelButton b{white-space:nowrap}
#modelMark{width:32px;height:32px;flex:none}
#modelMark img{width:auto;height:auto;max-width:32px;max-height:32px;object-fit:contain}
#modelButton[data-mode="battle"]{border-color:#635bff;color:#635bff}
.battle-view[hidden]{display:none}
.battle-view{display:flex;flex-direction:column;width:min(976px,100%);height:100%;min-height:0;gap:20px;padding:24px 0;direction:rtl}
.battle-model-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;flex:none}
.battle-model-picker{display:flex;align-items:center;gap:8px;min-width:0;padding:12px;border:1px solid #f2f2f2;border-radius:16px;background:#fff;font-size:13px}
.battle-model-picker>span:first-child{color:#8a94a6;white-space:nowrap}
.battle-picker-logo{display:grid;place-items:center;width:32px;height:32px;flex:none}
.battle-picker-logo img,.battle-response header img{max-width:32px;max-height:32px;object-fit:contain}
.battle-model-picker select{width:100%;min-width:0;padding:8px 2px;border:0;outline-color:#635bff;background:transparent;color:#0a1f44;font-family:Dana;font-size:14px;direction:ltr}
.battle-messages{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;gap:24px}
.battle-empty{margin:auto;text-align:center;color:#8a94a6;font-size:14px;line-height:2}
.battle-turn{display:flex;flex-direction:column;gap:16px;flex:none}
.battle-responses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.battle-response{min-width:0;padding:16px;border:1px solid #f2f2f2;border-radius:16px;background:#fff}
.battle-response header{display:flex;align-items:center;gap:8px;font-family:Dana;font-size:14px}
.battle-response p{margin:12px 0 0;font-size:14px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){
  .battle-view{padding:16px 0;gap:12px}
  .battle-model-pickers,.battle-responses{gap:8px}
  .battle-model-picker{flex-wrap:wrap;padding:8px}
  .battle-model-picker select{font-size:12px;flex-basis:100%}
  #modelButton{padding-inline:8px}
  #modelButton b{max-width:120px;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:480px){.battle-responses{grid-template-columns:1fr}.battle-response{padding:12px}#modelButton b{max-width:88px}}
#welcome[hidden],#suggestions[hidden]{display:none}
.workspace:has(.battle-view:not([hidden])){overflow:clip}
.workspace{overflow:clip}

/* Figma sidebar and header details. */
.topbar{position:relative;z-index:4}
.more-icon{width:24px;height:24px;display:grid;place-items:center;transform:rotate(-90deg)}
.more-icon img{width:3.333px;height:16.667px}
.team-select{gap:8px;padding:0 16px;font-family:Dana;font-size:16px;line-height:30px}
.team-select .team-chevron,.team-select .team-icon,.model-chevron{width:24px;height:24px;flex:none;object-fit:contain}
.files-toggle img{width:24px;height:24px}
.group-title{direction:ltr;padding-inline:16px;height:clamp(32px,2.5vw,48px)}
.group-icons{display:flex;align-items:center;gap:8px;letter-spacing:normal}
.group-icons img{display:block;width:24px;height:24px;object-fit:contain}
.group-title[aria-expanded="false"] .group-icons img:first-child{transform:rotate(180deg)}
.group-name{direction:ltr;gap:8px;font-family:Dana;font-size:clamp(9px,.729vw,14px);font-weight:500}
.group-name img{width:24px;height:24px}
.side-item{direction:ltr;justify-content:flex-end;gap:8px;font-family:Dana}
.side-item img{width:20px;height:20px}
.sidebar-search-icon{width:24px;height:24px;flex:none;display:grid;place-items:center}
.sidebar-search-icon img{width:21.5px;height:21.5px}
.profile{height:clamp(44px,2.917vw,56px);padding:8px;gap:8px;border-radius:12px}
.profile .avatar{width:40px;height:40px;flex:none;border-radius:50%;object-fit:cover}
.profile-copy{align-items:flex-start;justify-content:center;gap:0}
.profile-copy b{font-family:Dana;font-size:14px;font-weight:400;line-height:21px;white-space:nowrap}
.profile-copy small{font-family:Dana;font-size:12px;font-weight:400;line-height:18px;color:#53627c;white-space:nowrap}
.profile-arrow{width:24px;height:24px;flex:none;object-fit:contain}

/* Response actions use the original Figma icon silhouettes. */
.bot-response{display:flex;flex-direction:column;align-items:stretch}
.response-actions{display:flex;direction:ltr;align-items:center;justify-content:flex-start;gap:16px;margin-top:16px}
.response-action{width:24px;height:24px;flex:none;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#8a94a6;border-radius:6px}
.response-action:hover,.response-action:focus-visible,.response-action[aria-pressed="true"]{color:#635bff;background:rgba(99,91,255,.07);outline:none}
.action-glyph{display:block;width:24px;height:24px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.action-regenerate .action-glyph{width:17.5px;height:21.5px}
.action-dislike .action-glyph{transform:rotate(180deg)}
.battle-response .response-actions{margin-top:14px}

/* Battle picker: a custom list composed from the existing model system. */
.battle-model-picker{position:relative;flex-wrap:nowrap;overflow:visible;z-index:1}
.battle-model-picker:has(.battle-dropdown:not([hidden])){z-index:6;border-color:#635bff}
.battle-picker-trigger{display:flex;direction:ltr;align-items:center;justify-content:flex-end;gap:8px;flex:1;min-width:0;height:40px;padding:0;border:0;background:transparent;text-align:right}
.battle-picker-trigger:hover .battle-picker-name{color:#635bff}
.battle-picker-name{font-family:Dana;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.battle-picker-chevron{width:24px;height:24px;flex:none;object-fit:contain}
.battle-picker-logo{width:32px;height:32px;flex:none}
.battle-dropdown[hidden]{display:none}
.battle-dropdown{position:absolute;top:calc(100% + 6px);right:0;left:0;max-height:min(320px,55vh);overflow:auto;padding:6px;border:1px solid #f2f2f2;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(10,31,68,.12);direction:rtl}
.battle-model-picker.opens-up .battle-dropdown{top:auto;bottom:calc(100% + 6px)}
.battle-dropdown-option{width:100%;min-height:44px;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:6px 10px;border:1px solid transparent;border-radius:12px;background:#fff;font-family:Dana;font-size:13px;text-align:right;color:#0a1f44;white-space:nowrap}
.battle-dropdown-option img{width:28px;height:28px;flex:none;object-fit:contain;order:-1}
.battle-dropdown-option:hover{background:#fafaff}
.battle-dropdown-option.selected{border-color:#635bff;background:rgba(99,91,255,.05);color:#635bff}

/* Files belong to the current in-memory conversation. */
.files-panel[hidden],.file-note[hidden]{display:none}
.files-panel{position:absolute;z-index:8;top:88px;left:24px;width:min(240px,calc(100vw - 48px));max-height:min(60vh,480px);overflow:auto;display:flex;flex-direction:column;gap:24px;padding:16px;border:1px solid #f2f2f2;border-radius:16px;background:#fff;box-shadow:0 8px 24px #0a1f4412;direction:rtl}
.files-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.files-panel-heading b,.files-section h2{font-family:Dana;font-size:16px;font-weight:500;line-height:28px;color:#0a1f44}
.files-panel-heading button{width:24px;height:24px;padding:0;border:0;background:transparent;color:#8a94a6;font-size:22px;line-height:1}
.files-section h2{margin:0 0 12px}
.files-section>div{display:flex;flex-direction:column;gap:8px}
.files-empty{margin:0;font-size:12px;line-height:1.8;color:#8a94a6}
.files-item{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;column-gap:8px;row-gap:4px;min-width:0;font-size:14px;line-height:28px}
.files-item>img{width:24px;height:24px;border-radius:4px;object-fit:cover}
.files-item>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.files-item-actions{grid-column:2;display:flex;gap:12px;font-size:11px;line-height:1.5}
.files-item-actions a{color:#635bff;text-decoration:none}
.files-item-actions a:hover{text-decoration:underline}
.file-note{align-self:flex-end;display:flex;align-items:center;gap:8px;max-width:100%;min-height:32px;margin-top:-8px;padding:5px 8px;border:1px solid #e9e8ff;border-radius:9px;background:#fafaff;color:#53627c;font-size:12px}
.file-note img{width:18px;height:18px;object-fit:contain}
.file-note span{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-note button{width:18px;height:18px;padding:0;border:0;background:transparent;color:#8a94a6;font-size:18px;line-height:1}
.message.user:has(.message-file){display:flex;flex-direction:column;gap:8px}
.message-file{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;padding:7px 9px;border:1px solid #ffffff66;border-radius:9px;color:inherit;text-decoration:none;font-size:13px;line-height:1.5}
.message-file img{width:28px;height:28px;flex:none;border-radius:5px;object-fit:cover}
.message-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-file:hover{text-decoration:underline}
@media(max-width:760px){.team-select{padding:0 9px;font-size:13px}.team-select .team-chevron,.team-select .team-icon{width:20px;height:20px}.files-panel{top:64px;left:12px}.profile-copy b{font-size:13px}.profile-copy small{font-size:11px}.battle-dropdown{max-height:min(260px,45vh)}}
@media(min-width:761px) and (max-width:1500px){.profile-arrow{display:none}}
@media(max-width:480px){.battle-model-pickers{grid-template-columns:1fr}.battle-model-picker{flex-wrap:nowrap}.battle-picker-name{font-size:12px}.battle-dropdown-option{font-size:12px}.files-toggle{display:flex}.response-actions{gap:12px}}
@media(max-width:420px){#modelButton[data-mode="battle"] .model-mark{display:inline-flex}}

/* Chat file panel follows Figma frame 47:7276 at 24px / 96px. */
.files-panel{top:96px;left:24px;width:240px;min-height:min(416px,calc(100vh - 120px));max-height:calc(100vh - 120px);gap:16px;border:0;box-shadow:none;align-items:stretch}
.files-panel-heading{direction:ltr;min-height:28px;align-items:flex-start}
.files-panel-heading h2{margin:0;font-family:Dana;font-size:16px;font-weight:500;line-height:28px;color:#0a1f44}
.files-panel-heading button{width:24px;height:24px;display:grid;place-items:center;flex:none;color:inherit}
.files-panel-heading button img{width:11.5px;height:5.5px;object-fit:contain}
.files-panel-content{display:flex;flex-direction:column;gap:24px}
.files-panel.is-collapsed{min-height:60px;max-height:60px;overflow:hidden}
.files-panel.is-collapsed .files-panel-content{display:none}
.files-panel.is-collapsed .files-panel-heading button img{transform:rotate(180deg)}
@media(max-width:760px){.files-panel{top:80px;left:12px;min-height:0;max-height:min(416px,calc(100vh - 104px))}}

/* Hinova typography: Dana for Persian, Inter for Latin. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
:root,html,body,button,input,textarea,select{font-family:Dana,sans-serif;font-variant-numeric:normal}
:lang(en),.font-inter,.latin-text{font-family:Inter,Arial,sans-serif!important;font-feature-settings:"kern" 1}

/* Conversation pinning */
.history-entry,.pinned-chat-row{width:100%;display:flex;align-items:center;gap:4px;border-radius:8px}
.history-entry[hidden]{display:none}
.history-entry .history-item,.pinned-chat-row .side-item{flex:1;min-width:0}
.chat-pin-action{width:28px;height:28px;flex:0 0 28px;padding:4px;border:0;border-radius:8px;background:transparent;display:grid;place-items:center;opacity:0;transition:background .16s,opacity .16s}
.chat-pin-action img{width:18px;height:18px;object-fit:contain}
.history-entry:hover .chat-pin-action,.history-entry:focus-within .chat-pin-action,.pinned-chat-row:hover .chat-pin-action,.pinned-chat-row:focus-within .chat-pin-action{opacity:1}
.chat-pin-action:hover{background:#fff5e6}
.chat-pin-action.is-pinned{background:rgba(255,158,0,.08)}
.pinned-chat-row:hover{background:#f7f7fb}
.pinned-chat-row .side-item:hover{background:transparent}
#pinned.is-empty{min-height:8px;padding-block:4px}
:lang(fa),.font-dana{font-family:Dana,sans-serif!important}
