@font-face{font-family:"Vazirmatn";src:url("../lib/FONT/Vazirmatn-VariableFont_wght.ttf") format("truetype");font-weight:100 900;font-display:swap}
:root {
  --sidebar-width: 260px;
  --content-max-width: 980px;
  --border-color: #e5e5e5;
  --text-color: #0d0d0d;
  --text-muted: #777777;
  --page-background: #ffffff;
  --surface-background: #ffffff;
  --surface-soft: #f8f8f8;
  --surface-muted: #f1f1f1;
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --primary-soft: #e7f1ff;
  --accent-color: #2c67c5;
  --danger-color: #ba2623;
  --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

.account-panel-caption{display:block;margin-top:3px;color:var(--text-muted);font-size:10px;font-weight:400}.billing-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.billing-summary>div{display:flex;min-height:70px;padding:11px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--surface-soft);flex-direction:column;justify-content:space-between}.billing-summary span{color:var(--text-muted);font-size:10px}.billing-summary strong{color:var(--text-color);font-size:14px}.billing-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:18px 0 10px}.billing-section-title span{color:var(--text-color);font-size:13px;font-weight:700}.billing-section-title small{color:var(--text-muted);font-size:10px}.billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.billing-plan-card{display:flex;min-width:0;padding:13px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--surface-background);flex-direction:column;box-shadow:var(--shadow-sm);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}.billing-plan-card:hover{border-color:var(--primary-color);transform:translateY(-2px);box-shadow:var(--shadow-md)}.billing-plan-card.is-recommended{border:2px solid var(--accent-color);background:linear-gradient(180deg,#f6f9ff 0,#fff 100%)}.billing-plan-card.is-current{border-color:var(--primary-color)}.billing-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.billing-plan-head h4{margin:4px 0 0;color:var(--text-color);font-size:15px;font-weight:750}.billing-plan-head>strong{color:var(--text-color);font-size:11px;text-align:left}.billing-plan-badge{display:inline-block;min-height:16px;color:var(--accent-color);font-size:9px;font-weight:700}.billing-plan-description{min-height:38px;margin:10px 0;color:var(--text-muted);font-size:10px;line-height:1.8}.billing-plan-card ul{display:flex;margin:13px 0 0;padding:0;list-style:none;flex:1;flex-direction:column;gap:8px}.billing-plan-card li{display:flex;align-items:flex-start;gap:6px;color:var(--text-muted);font-size:10px;line-height:1.7}.billing-plan-card li .sprite-icon{width:14px;height:14px;flex:0 0 14px;color:var(--accent-color)}.billing-plan-action{width:100%;min-height:36px;padding:7px 8px;border:0;border-radius:var(--radius-pill);background:var(--primary-color);color:#fff;font-size:10px;font-weight:650;cursor:pointer}.billing-plan-action:hover{background:var(--primary-hover)}.billing-plan-action.secondary{border:1px solid var(--border-color);background:transparent;color:var(--text-color)}.billing-plan-action.secondary:hover{border-color:var(--primary-color);background:var(--primary-soft);color:var(--primary-color)}.billing-plan-action.current,.billing-plan-action:disabled{background:var(--surface-muted);color:var(--text-muted);cursor:not-allowed}.billing-plan-actions{display:flex;flex-direction:column;gap:6px}.billing-loading,.billing-empty{padding:18px;color:var(--text-muted);font-size:11px;text-align:center}.credit-topup-form .input-group{direction:ltr}.credit-topup-form input{text-align:right}.credit-topup-form small{display:block;margin-top:7px;color:var(--text-muted);font-size:10px}.billing-invoices{display:flex;max-height:190px;overflow:auto;border:1px solid var(--border-color);border-radius:var(--radius-md);flex-direction:column}.billing-invoice-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border-color)}.billing-invoice-row:last-child{border-bottom:0}.billing-invoice-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.billing-invoice-row>div:last-child{align-items:flex-start}.billing-invoice-row strong{color:var(--text-color);font-size:10px}.billing-invoice-row small{color:var(--text-muted);font-size:9px}.invoice-status.paid{color:#16803c}.invoice-status.pending{color:#b26b00}.invoice-status.failed{color:var(--danger-color)}
.billing-usage-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.billing-usage-detail>div{display:flex;padding:8px 10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);flex-direction:column;gap:4px}.billing-usage-detail span{color:var(--text-muted);font-size:9px}.billing-usage-detail strong{color:var(--text-color);font-size:10px}.billing-pricing-note{display:flex;align-items:flex-start;gap:7px;padding:10px;border:1px solid #cfe0f8;border-radius:var(--radius-sm);background:#f4f8ff;color:#4e6380;font-size:9px;line-height:1.8}.billing-pricing-note .sprite-icon{width:15px;height:15px;flex:0 0 15px;color:#2c67c5}
.account-modal .modal-dialog{width:100%;max-width:none;height:100%;margin:0}.account-modal .modal-content{height:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}.account-modal .modal-body{position:relative;display:flex;min-height:100%;padding:38px clamp(16px,4vw,60px);overflow:auto;flex-direction:column}.account-modal .account-settings-layout{width:min(100%,1280px);margin:auto;flex:1}.account-modal-close{position:absolute;top:18px;left:22px;z-index:2;padding:10px}.account-modal .account-settings-content{padding-bottom:12px}.account-modal .billing-plans{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:991.98px) {
.billing-plans{grid-template-columns:1fr 1fr}}

@media (max-width:767.98px) {
.billing-summary{grid-template-columns:1fr 1fr}.billing-summary>div:last-child{grid-column:1/-1}.billing-usage-detail{grid-template-columns:1fr}.billing-plans{grid-template-columns:1fr}.billing-plan-card{padding:14px}.billing-plan-description{min-height:auto}.billing-section-title{align-items:flex-start;flex-direction:column;gap:4px}.account-modal .modal-body{padding:54px 12px 18px}.account-modal .account-settings-layout{display:flex;min-height:0;flex-direction:column;gap:12px}.account-modal .account-settings-nav{position:sticky;top:0;z-index:3;display:flex;overflow-x:auto;flex:0 0 auto;flex-direction:row;padding:4px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--surface-background);box-shadow:var(--shadow-sm)}.account-modal .account-nav-item{min-width:125px;min-height:42px;justify-content:center;white-space:nowrap}.account-modal .account-settings-content{min-height:0}.account-modal .account-panel{padding:14px}.account-modal-close{top:12px;left:12px}.account-modal .billing-plans{grid-template-columns:1fr}}

@media (max-width:420px) {
.billing-summary{grid-template-columns:1fr}.billing-summary>div:last-child{grid-column:auto}.credit-topup-form .input-group{display:flex;flex-direction:column;gap:7px}.credit-topup-form .input-group>*{width:100%;border-radius:var(--radius-sm)!important}}

html,body{height:100%;overflow:hidden}
*{box-sizing:border-box;font-family:"Vazirmatn",sans-serif}
body{margin:0;color:var(--text-color);background:#fff}
.chat-layout{display:flex;min-height:100vh;direction:rtl}.chat-main {direction:rtl}

.topbar {height:64px;display:flex;align-items:center;padding:0 18px}





.login-button{border:1px solid #d4d4d4;border-radius:22px;background:#fff;cursor:pointer;font-size:13px;width:100%;height:38px}
.topbar-actions{display:flex;align-items:center;gap:8px}.guest-signup-button,.bot-create-trigger{padding:9px 15px;border:1px solid #171717;border-radius:22px;background:#171717;color:#fff;cursor:pointer;font-size:13px}
.chat-main{display:flex;flex:1;min-width:0;flex-direction:column}.topbar{justify-content:space-between;border-bottom:1px solid var(--border-color)}
.model-selector,.icon-button,.composer-icon{border:0;background:transparent;color:#202123;cursor:pointer}.model-selector{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600}.model-selector i{color:#777;font-size:12px}.icon-button{padding:7px;font-size:19px}
.chat-content{display:flex;flex:1;align-items:center;justify-content:center;padding:30px 20px 80px}.welcome-panel{width:min(100%,770px);margin-top:-60px;text-align:center}.welcome-panel h1{margin:0 0 38px;font-size:clamp(24px,3vw,32px);font-weight:500}
.chat-composer{display:flex;align-items:center;min-height:58px;padding:7px 10px;border:1px solid #d9d9d9;border-radius:30px;box-shadow:0 2px 12px rgba(0,0,0,.06)}.chat-composer input{flex:1;min-width:0;padding:0 10px;border:0;outline:0;color:#222;background:transparent;font-size:14px}.chat-composer input::placeholder{color:#999}.composer-icon{padding:8px;color:#555;font-size:18px}.send-button{width:38px;height:38px;border:0;border-radius:50%;color:#fff;background:#aaa;cursor:pointer}
.chat-footer{padding:7px 16px;color:#777;font-size:11px;text-align:center}

.auth-modal{display:none;position:fixed;inset:0;z-index:100;align-items:center;justify-content:center;padding:20px}.auth-modal.is-open{display:flex}.auth-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.46);backdrop-filter:blur(2px)}
.auth-box{position:relative;width:min(100%,420px);padding:34px 32px 28px;border:1px solid #e8e8e8;border-radius:22px;background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.2);text-align:right}.auth-close{position:absolute;top:17px;left:18px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#666;cursor:pointer}.auth-close:hover{background:#f1f1f1}.auth-step h2{margin:0 0 8px;text-align:center;font-size:24px;font-weight:700}.auth-subtitle{margin:0 0 25px;color:#707070;font-size:13px;line-height:1.9;text-align:center}.auth-step label{display:block;margin:0 0 8px;color:#333;font-size:13px;font-weight:600}.auth-input-wrap{display:flex;align-items:center;gap:9px;height:52px;margin-bottom:16px;padding:0 14px;border:1px solid #d9d9d9;border-radius:13px;background:#fff;transition:border-color .15s,box-shadow .15s}.auth-input-wrap:focus-within{border-color:#999;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.auth-input-wrap input{width:100%;border:0;outline:0;background:transparent;color:#222;font-size:14px}.auth-submit{width:100%;height:50px;margin-top:5px;border:0;border-radius:13px;background:#171717;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.auth-submit:hover{background:#333}.auth-hint{margin:17px 0 0;color:#888;font-size:11px;line-height:1.8;text-align:center}.auth-back{position:absolute;top:22px;right:20px;margin:0;padding:4px 0;border:0;background:transparent;color:#666;font-size:12px;cursor:pointer}.resend-row{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:15px;color:#888;font-size:11px}.resend-code{margin:0;padding:0;border:0;background:transparent;color:#555;font-size:12px;cursor:pointer}.resend-code:disabled{color:#aaa;cursor:not-allowed}.resend-code:not(:disabled):hover,.auth-back:hover{color:#111}

@media (max-width:575.98px) {
.topbar{padding:0 12px}.chat-content{padding-right:14px;padding-left:14px}.auth-modal{align-items:flex-end;padding:0}.auth-box{width:100%;padding:54px 20px 24px;border-radius:22px 22px 0 0}.auth-step h2{font-size:21px}.auth-subtitle{margin-bottom:21px}.auth-input-wrap{height:50px}.auth-submit{height:48px}.auth-close{top:14px;left:14px}.auth-back{top:20px;right:20px}}


.auth-logo{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto 18px}.auth-logo img{display:block;width:48px;height:48px;object-fit:contain}
.auth-message{display:none;margin:0 0 16px;padding:10px 12px;border-radius:10px;background:#fff3f3;color:#b42318;font-size:12px;line-height:1.8;text-align:center}.auth-message.is-visible{display:block}.auth-message.is-success{background:#effaf3;color:#18794e}
.name-field.is-hidden{display:none}
.default-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;color:#fff;background:#8f55b5}.default-avatar .sprite-icon{width:19px;height:19px}.account-logout{color:#b42318}
.account-logout-form{margin-top:8px;padding-top:8px;border-top:1px solid #ededed}.account-logout.account-nav-item{color:#b42318}.account-logout.account-nav-item:hover{background:#fff1f0}
.account-modal .modal-content{border:1px solid #e5e5e5;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.16)}.account-modal .modal-header{border-bottom:1px solid #ededed}.account-modal .modal-title{font-weight:700}.account-profile{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:14px;border:1px solid #ededed;border-radius:13px;background:#fafafa}.account-profile>div{display:flex;flex-direction:column;gap:3px}.account-profile strong{font-size:14px}.account-profile small{color:#777;font-size:11px}.account-avatar{width:44px;height:44px;flex-basis:44px}.account-avatar .sprite-icon{width:23px;height:23px}.account-settings-list{border-top:1px solid #ededed}.account-setting-row{display:flex;align-items:center;justify-content:space-between;min-height:52px;border-bottom:1px solid #ededed;color:#555;font-size:13px}.account-setting-row strong{color:#222;font-size:13px;font-weight:500}.account-setting-row .form-check-input{width:2.35em;height:1.25em;cursor:pointer}
.account-two-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.account-panel{min-width:0;padding:15px;border:1px solid #e5e5e5;border-radius:14px}.account-panel-heading{display:flex;align-items:center;gap:8px;padding-bottom:13px;border-bottom:1px solid #ededed}.account-panel-heading h3{margin:0;font-size:14px;font-weight:700}.account-panel-heading .sprite-icon{width:18px;height:18px;color:#666}.usage-balance{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #ededed;color:#666;font-size:12px}.usage-balance strong{color:#222;font-size:15px}.usage-stat{padding:16px 0;border-bottom:1px solid #ededed;color:#666;font-size:12px}.usage-stat>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.usage-stat strong{color:#222}.usage-stat small{font-size:10px;line-height:1.8}.progress{height:7px;background:#ededed}.progress-bar{background:#8f55b5}.account-modal .btn-close{padding:12px}
@media (max-width:767.98px) {
.account-two-column{grid-template-columns:1fr}.account-modal .modal-dialog{margin:10px}.account-modal .modal-body{padding:14px}}

.account-settings-layout{display:grid;grid-template-columns:155px minmax(0,1fr);gap:16px;direction:rtl}.account-settings-nav{display:flex;flex-direction:column;gap:4px;padding:6px;border-left:1px solid #ededed}.account-nav-item{display:flex;align-items:center;gap:9px;padding:11px 10px;border:0;border-radius:9px;background:transparent;color:#555;font-size:12px;text-align:right;cursor:pointer}.account-nav-item:hover,.account-nav-item.active{background:#f1f1f1;color:#222}.account-nav-item .sprite-icon{width:17px;height:17px}.account-settings-content{min-width:0;display:flex;flex-direction:column;gap:14px}.account-settings-content .account-panel{padding:15px}.account-settings-content .account-panel-heading{padding-bottom:12px}
@media (max-width:767.98px) {
.account-settings-layout{grid-template-columns:1fr;gap:12px}.account-settings-nav{flex-direction:row;border-left:0;border-bottom:1px solid #ededed;padding:0 0 8px}.account-nav-item{flex:1;justify-content:center}.account-settings-content .account-panel{padding:12px}}

.account-settings-nav .account-logout-form{flex:1}.account-settings-nav .account-logout-form .account-nav-item{width:100%}

.message-list{display:flex;width:min(100%,770px);max-height:calc(100vh - 240px);margin:0 auto 18px;overflow:auto;flex-direction:column;gap:20px;text-align:right}.welcome-panel.has-messages{width:min(100%,850px);margin-top:0}.chat-message{display:flex;align-items:flex-start;gap:11px;direction:rtl}.message-avatar{display:flex;width:29px;height:29px;flex:0 0 29px;align-items:center;justify-content:center;border-radius:50%;background:#222;color:#fff;font-size:9px;font-weight:700}.message-user .message-avatar{background:#8f55b5}.message-body{min-width:0;max-width:calc(100% - 45px);line-height:2;font-size:14px}.message-content{overflow-wrap:anywhere}.message-user .message-content{padding:8px 13px;border-radius:15px 15px 3px 15px;background:#f1f1f1}.message-assistant .message-content{padding-top:3px}.message-content pre{max-width:100%;margin:12px 0;padding:13px;overflow:auto;border-radius:10px;background:#1f2937;color:#f8fafc;direction:ltr;text-align:left}.message-content code{padding:2px 5px;border-radius:4px;background:#eee;font-family:ui-monospace,monospace;font-size:12px}.message-content pre code{padding:0;background:transparent;color:inherit}.message-content a{color:#2563eb;text-decoration:underline}.composer-tool{height:34px;padding:0 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#777;font-family:inherit;font-size:11px;cursor:pointer}.composer-tool:hover,.composer-tool.active{border-color:#d8d8d8;background:#f3f3f3;color:#222}.composer-icon.recording{color:#c62828;animation:pulse-recording 1s infinite}.upload-status{min-height:20px;margin-top:8px;color:#777;font-size:11px;text-align:center}.chat-composer.is-loading{opacity:.7;pointer-events:none}
@keyframes pulse-recording{50%{transform:scale(1.12);opacity:.55}}
.message-avatar.user-avatar{overflow:hidden;background:#8f55b5}.message-avatar.assistant-avatar{overflow:hidden;background:#fff;border:1px solid #e5e5e5}.assistant-avatar img{display:block;width:21px;height:21px;object-fit:contain}
.chat-layout{width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden}.chat-main{height:100%;min-height:0;overflow:hidden}.topbar{flex:0 0 64px}.chat-content{min-height:0;overflow:hidden}.message-list{max-height:none;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.chat-message{position:relative}.message-assistant .assistant-loading-timer{position:absolute;top:3px;right:39px;margin:0}.message-assistant .assistant-loading{min-height:25px;padding-right:48px}
.message-list{direction:rtl;padding-left:5px;overflow-y:scroll}.message-list>.chat-message{direction:rtl}.chat-layout.chat-active .welcome-panel{width:100%;max-width:none}.chat-layout.chat-active .message-list{width:100%;max-width:none;padding-left:14px;padding-right:14px}.chat-layout.chat-active .message-body{width:min(100%,1100px);max-width:min(100%,1100px)}.message-list::-webkit-scrollbar{width:10px}.message-list::-webkit-scrollbar-track{background:transparent}.message-list::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:10px;background:#c8c8c8;background-clip:content-box}.message-list:hover::-webkit-scrollbar-thumb{background:#999;background-clip:content-box}.message-content-ready{animation:message-content-appear .22s ease-out}@keyframes message-content-appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.message-copy{display:inline-flex;align-items:center;gap:4px}.message-copy .sprite-icon{width:13px;height:13px}.message-copy span{line-height:1}
.chat-layout.chat-active .chat-content{align-items:stretch;justify-content:flex-start;padding-top:24px;padding-bottom:12px}.chat-layout.chat-active .welcome-panel{display:flex;width:min(100%,850px);height:100%;min-height:0;margin:0 auto;flex-direction:column}.chat-layout.chat-active .message-list{width:100%;max-height:none;min-height:0;flex:1;margin:0 auto 16px;justify-content:flex-start}.chat-layout.chat-active .chat-composer{width:100%;flex:0 0 auto}.chat-layout.chat-active .attachment-tray{width:100%;flex:0 0 auto}.chat-layout.chat-active .upload-status{flex:0 0 auto}.assistant-loading{display:flex;align-items:center;gap:10px;margin-bottom:7px;color:#777;font-size:12px}.assistant-loading-text{animation:assistant-loading-pulse 1.2s ease-in-out infinite}.assistant-loading-timer{min-width:38px;padding:2px 7px;border:1px solid #d9d9d9;border-radius:7px;background:#fafafa;color:#555;font-family:ui-monospace,monospace;font-size:11px;line-height:1.5;text-align:center}@keyframes assistant-loading-pulse{50%{opacity:.45}}
.chat-layout.chat-active .welcome-panel{width:100%;max-width:none}.chat-layout.chat-active .message-list{width:100%;max-width:none}
.chat-layout.chat-active .chat-content{padding:0}.chat-layout.chat-active .welcome-panel{padding:24px 24px 0}.chat-layout.chat-active .message-list{padding-top:0;padding-bottom:18px}.chat-layout.chat-active .chat-footer{display:none}.chat-layout.chat-active .chat-composer{margin-bottom:0}.chat-layout.chat-active .attachment-tray{margin-bottom:0}
.chat-layout.chat-active .message-list{scrollbar-width:thin;scrollbar-color:#8a8a8a transparent}.chat-layout.chat-active .message-list>.chat-message{width:min(100%,980px);margin-right:auto;margin-left:auto}.chat-layout.chat-active .chat-composer{min-height:58px;border-radius:30px;background:#fff;box-shadow:0 2px 16px rgba(0,0,0,.08)}.chat-layout.chat-active .chat-composer input{font-size:14px}.chat-layout.chat-active .attachment-tray{min-height:0}
.chat-layout.chat-active .welcome-panel{padding:0}.chat-layout.chat-active .message-list{padding:24px 14px 18px}.chat-layout.chat-active .chat-composer{width:min(100%,980px);max-width:980px;margin-right:auto;margin-left:auto}.chat-layout.chat-active .attachment-tray,.chat-layout.chat-active .upload-status{width:min(100%,980px);max-width:980px;margin-right:auto;margin-left:auto}.chat-layout.chat-active .message-content{min-width:0;overflow-wrap:anywhere}.chat-layout.chat-active .message-content table{max-width:100%;overflow:hidden}.chat-layout.chat-active .message-content a{overflow-wrap:anywhere;word-break:break-word}
@media (max-width:767.98px) {
.chat-layout.chat-active .message-list{padding:16px 10px 14px}.chat-layout.chat-active .message-list>.chat-message{width:100%}.chat-layout.chat-active .chat-composer{width:calc(100% - 20px);max-width:none;border-radius:24px}.chat-layout.chat-active .attachment-tray,.chat-layout.chat-active .upload-status{width:calc(100% - 20px);max-width:none}.chat-layout.chat-active .message-content table{display:block;overflow-x:auto;white-space:nowrap}.chat-layout.chat-active .message-content pre{max-width:100%;font-size:11px}.chat-layout.chat-active .message-content a{max-width:100%}}

.message-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-bottom:4px;direction:rtl}.message-time{color:#999;font-size:10px;line-height:1.5}.message-copy{padding:2px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#888;font-family:inherit;font-size:10px;line-height:1.5;cursor:pointer}.message-copy:hover,.message-copy.copied{border-color:#ddd;background:#f4f4f4;color:#2563eb}.message-content>p{margin:0 0 10px}.message-content>p:last-child{margin-bottom:0}.message-content h1,.message-content h2,.message-content h3,.message-content h4,.message-content h5,.message-content h6{margin:18px 0 9px;color:#222;font-weight:700;line-height:1.5}.message-content h1{font-size:22px}.message-content h2{font-size:19px}.message-content h3{font-size:17px}.message-content ul,.message-content ol{margin:7px 0 12px;padding-right:24px;line-height:2}.message-content blockquote{margin:10px 0;padding:8px 13px;border-right:3px solid #8f55b5;border-radius:7px;background:#f6f2fa;color:#555}.message-content pre{position:relative;margin:12px 0;padding:15px;overflow:auto;border:1px solid #374151;border-radius:10px;background:#111827;color:#f8fafc;direction:ltr;text-align:left;white-space:pre}.message-content pre:before{content:attr(data-language);position:absolute;top:6px;right:9px;color:#9ca3af;font-size:9px}.message-content table{width:100%;margin:12px 0;border-collapse:collapse;font-size:12px}.message-content th,.message-content td{padding:8px;border:1px solid #e1e1e1;text-align:right}.message-content th{background:#f5f5f5;font-weight:700}.message-content code{padding:2px 5px;border-radius:4px;background:#eee;color:#b42318;font-family:ui-monospace,monospace;font-size:12px}.message-content pre code{padding:0;background:transparent;color:inherit}.message-content a{color:#2563eb;text-decoration:underline}.message-content a:hover{color:#1d4ed8}
@media (max-width:575.98px) {
.composer-tool{padding:0 6px;font-size:10px}.message-list{max-height:calc(100vh - 260px);gap:15px}.message-body{font-size:13px}}

.composer-tool-menu-wrap{position:relative;display:flex;align-items:center;margin-left:2px}.composer-tool-menu-wrap>.composer-icon.active{color:#2563eb}.composer-tool-menu{position:absolute;right:-8px;bottom:52px;width:246px;padding:7px;border:1px solid #dedede;border-radius:13px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.14);z-index:30}.tool-menu-option{display:flex;align-items:center;gap:9px;padding:10px 8px;border-radius:9px;color:#333;cursor:pointer}.tool-menu-option:hover{background:#f4f4f4}.tool-menu-option input{position:absolute;opacity:0;pointer-events:none}.tool-menu-option>span:last-child{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.tool-menu-option strong{font-size:12px;font-weight:600}.tool-menu-option small{color:#888;font-size:10px;line-height:1.6}.tool-menu-check{width:17px;height:17px;flex:0 0 17px;border:1px solid #c8c8c8;border-radius:5px;background:#fff;position:relative}.tool-menu-option input:checked+.tool-menu-check{border-color:#2563eb;background:#2563eb}.tool-menu-option input:checked+.tool-menu-check:after{content:"✓";position:absolute;inset:0;color:#fff;font-size:12px;line-height:16px;text-align:center}.composer-icon.active{background:#eef4ff;border-radius:9px}.composer-icon:has(+ .composer-tool-menu:not([hidden])){color:#2563eb}.chat-composer .composer-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0 1px;padding:0;vertical-align:middle}.chat-composer .composer-tool-menu-wrap+.composer-icon{margin-right:0;margin-left:0}.chat-composer .send-button{position:relative;display:inline-flex;align-items:center;justify-content:center;transition:background .18s ease,color .18s ease,transform .18s ease}.chat-composer .send-button:not(.is-active):not(.is-loading){background:#b8b8b8;color:#fff;cursor:not-allowed}.chat-composer .send-button.is-active{background:#2563eb;color:#fff;cursor:pointer}.chat-composer .send-button.is-active:hover{background:#1d4ed8;transform:scale(1.04)}.chat-composer .send-button.is-loading{background:#2563eb;color:#fff;cursor:wait;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.chat-composer .send-spinner{width:17px;height:17px;border-width:2px}.chat-composer .send-button.is-loading .send-spinner{animation-duration:.7s}

.attachment-tray{display:flex;max-width:min(100%,770px);margin:9px auto 0;overflow:auto;gap:8px}.file-attachment{position:relative;display:flex;min-width:170px;max-width:230px;align-items:center;gap:8px;padding:7px 9px;border:1px solid #dedede;border-radius:11px;background:#fafafa;text-align:right}.attachment-thumb{width:40px;height:40px;flex:0 0 40px;object-fit:cover;border-radius:7px;background:#eee}.attachment-file-icon{display:flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border-radius:7px;background:#e8eefc;color:#2563eb;font-size:23px}.attachment-meta{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.attachment-meta strong{overflow:hidden;color:#333;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.attachment-meta small{color:#888;font-size:10px}.attachment-remove{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#e4e4e4;color:#555;line-height:18px;cursor:pointer}.attachment-remove:hover{background:#d1d1d1;color:#111}.message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.message-attachments .file-attachment{min-width:160px;background:#f8f8f8}.assistant-loading{display:flex;align-items:center;gap:9px;margin-bottom:7px;color:#777;font-size:12px}.assistant-loading .spinner-border{width:15px;height:15px;border-width:2px;color:#2563eb}.assistant-loading-text{animation:assistant-loading-pulse 1.2s ease-in-out infinite}@keyframes assistant-loading-pulse{50%{opacity:.45}}

body {
  color: var(--text-color);
  background: var(--page-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

.chat-layout,
.chat-main,
.chat-content {
  min-height: 0;
}



.chat-main,
.chat-content {
  background: var(--page-background);
}

.topbar {
  flex: 0 0 64px;
  background: var(--surface-background);
  border-color: var(--border-color);
}

.message-list {
  scrollbar-width: thin;
  scrollbar-color: #b7b7b7 transparent;
}







.chat-layout.chat-active .chat-content {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.chat-layout.chat-active .welcome-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.chat-layout.chat-active .message-list {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  padding: 28px 24px 20px;
  margin: 0;
  gap: 28px;
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-layout.chat-active .message-list > .chat-message {
  width: min(100%, var(--content-max-width));
  margin-right: auto;
  margin-left: auto;
}

.chat-layout.chat-active .message-body {
  width: 100%;
  max-width: 100%;
}

.chat-layout.chat-active .chat-composer,
.chat-layout.chat-active .attachment-tray,
.chat-layout.chat-active .upload-status {
  width: min(calc(100% - 48px), var(--content-max-width));
  max-width: var(--content-max-width);
  margin-right: auto;
  margin-left: auto;
}

.chat-layout.chat-active .chat-composer {
  flex: 0 0 auto;
  min-height: 58px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--surface-background);
  box-shadow: var(--shadow-sm);
}

.chat-layout.chat-active .chat-composer:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px #0d6efd26, var(--shadow-sm);
}

.message-user .message-content {
  background: var(--surface-muted);
}

.message-content {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  color: var(--text-color);
}

.message-content a {
  color: var(--accent-color);
}

.message-content blockquote {
  border-right-color: var(--primary-color);
  background: var(--primary-soft);
}

.message-content pre {
  border-color: #303030;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.message-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.message-content th,
.message-content td {
  min-width: 110px;
}

.message-copy:hover,
.message-copy.copied {
  border-color: #0d6efd4d;
  background: var(--primary-soft);
  color: var(--primary-color);
}

.composer-icon.active,
.composer-tool.active {
  border-color: #0d6efd4d;
  background: var(--primary-soft);
  color: var(--primary-color);
}

.chat-composer .send-button.is-active,
.chat-composer .send-button.is-loading {
  background: var(--primary-color);
}

.chat-composer .send-button.is-active:hover,
.chat-composer .send-button.is-loading:hover {
  background: var(--primary-hover);
}

.attachment-tray {
  padding: 0;
}

.file-attachment {
  border-color: var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.attachment-file-icon {
  background: #e8f3fe;
  color: var(--accent-color);
}




@media (max-width: 767.98px) {

  .chat-layout.chat-active .message-list {
    padding: 18px 12px 14px;
    gap: 20px;
  }

  .chat-layout.chat-active .chat-composer,
  .chat-layout.chat-active .attachment-tray,
  .chat-layout.chat-active .upload-status {
    width: calc(100% - 24px);
  }

  .chat-layout.chat-active .message-list > .chat-message {
    width: 100%;
  }
}


@media (max-width: 575.98px) {

  .chat-layout.chat-active .message-list {
    padding: 14px 10px 12px;
  }

  .chat-layout.chat-active .chat-composer {
    min-height: 54px;
  }

  .message-body {
    font-size: 13px;
  }
}


.message-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 14px;
  line-height: 1;
}

.message-avatar.assistant-avatar {
  padding: 0;
  border: 0;
  background: transparent;
}

.message-avatar.assistant-avatar img {
  width: 32px;
  height: 32px;
  padding: 0;
  object-fit: contain;
}

.message-user .message-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.message-user .message-content {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.message-time {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.message-toolbar {
  min-height: 25px;
  margin-bottom: 5px;
}

.message-copy {
  min-width: 58px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.4;
}

.message-copy span {
  display: inline-block;
  min-width: 25px;
  white-space: nowrap;
}

.message-copy.copied {
  min-width: 72px;
  color: var(--primary-color);
}

.upload-status {
  min-height: 24px;
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
  opacity: 1;
  transition: opacity .2s ease, color .2s ease;
}

.attachment-tray {
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.file-attachment {
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  animation: attachment-enter .2s ease both;
}

.file-attachment:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.chat-composer,
.chat-composer .send-button,
.composer-icon,
.composer-tool {
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.chat-composer.is-loading {
  opacity: .78;
}

.chat-composer.is-loading .send-button {
  transform: scale(.96);
}

@keyframes attachment-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {

  .message-time {
    font-size: 12px;
  }

  .message-copy {
    min-height: 28px;
    font-size: 11px;
  }
}


.account-modal .modal-dialog{width:100%;max-width:none;height:100%;margin:0}.account-modal .modal-content{height:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}.account-modal .modal-body{position:relative;display:flex;min-height:100%;padding:38px clamp(16px,4vw,60px);overflow:auto;flex-direction:column}.account-modal .account-settings-layout{width:min(100%,1280px);margin:auto;flex:1}.account-modal-close{position:absolute;top:18px;left:22px;z-index:2;padding:10px}.account-modal .account-settings-content{padding-bottom:12px}
@media (max-width:767.98px) {
.account-modal .modal-body{padding:54px 12px 18px}.account-modal .account-settings-layout{display:flex;min-height:0;flex-direction:column;gap:12px}.account-modal .account-settings-nav{position:sticky;top:0;z-index:3;display:flex;overflow-x:auto;flex:0 0 auto;flex-direction:row;padding:4px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--surface-background);box-shadow:var(--shadow-sm)}.account-modal .account-nav-item{min-width:125px;min-height:42px;justify-content:center;white-space:nowrap}.account-modal .account-settings-content{min-height:0}.account-modal .account-panel{padding:14px}.account-modal-close{top:12px;left:12px}}


.credit-topup-box{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:15px;border:1px solid #cfe0f8;border-radius:var(--radius-md);background:linear-gradient(135deg,#f5f8ff,#fff)}.credit-topup-copy{max-width:52%}.credit-topup-copy strong{display:block;margin-bottom:5px;color:var(--text-color);font-size:13px}.credit-topup-copy p{margin:0;color:var(--text-muted);font-size:11px;line-height:1.9}.credit-topup-form{min-width:320px;flex:1}.credit-topup-form .input-group{direction:rtl}.credit-topup-form .input-group-text{color:var(--text-muted);background:var(--surface-soft)}.credit-topup-form input{direction:ltr;text-align:center}.credit-topup-form small{font-size:11px}.billing-invoice-row{width:100%;border:0;background:transparent;color:inherit;text-align:right;cursor:pointer}.billing-invoice-row:hover{background:var(--primary-soft)}.billing-invoice-row>.sprite-icon{width:15px;height:15px;flex:0 0 15px;color:var(--primary-color)}.billing-invoice-detail{margin-top:12px}.billing-invoice-back{font-size:12px}.invoice-detail-card{margin-top:10px;padding:14px;border:1px solid var(--border-color);border-radius:var(--radius-md);background:var(--surface-soft)}.invoice-detail-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--border-color)}.invoice-detail-head div{display:flex;gap:7px;align-items:center}.invoice-detail-head span:first-child,.invoice-detail-grid span{color:var(--text-muted);font-size:11px}.invoice-detail-head strong{color:var(--text-color);font-size:14px}.invoice-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding-top:13px}.invoice-detail-grid div{display:flex;min-width:0;gap:3px;flex-direction:column}.invoice-detail-grid strong{color:var(--text-color);font-size:11px;overflow-wrap:anywhere}
.account-modal small,.account-modal .account-panel-caption,.account-modal .billing-section-title small{font-size:11px}.account-modal .account-nav-item,.account-modal .account-setting-row,.account-modal .usage-stat,.account-modal .billing-plan-card li{font-size:12px}.account-modal .billing-plan-description,.account-modal .billing-plan-action,.account-modal .billing-plan-head>strong{font-size:11px}.account-modal .billing-invoice-row strong{font-size:11px}.account-modal .billing-invoice-row small{font-size:10px}
@media (max-width:767.98px) {
.credit-topup-box{align-items:stretch;flex-direction:column;gap:12px}.credit-topup-copy{max-width:none}.credit-topup-form{min-width:0}.credit-topup-form .input-group{display:flex;flex-wrap:nowrap}.credit-topup-form .input-group>*{min-width:0}.invoice-detail-grid{grid-template-columns:1fr}.billing-invoice-row{padding:12px 9px}}

.billing-result-page{min-height:100vh;background:var(--page-background);color:var(--text-color)}.billing-result-card{width:min(100%,620px);margin:8vh auto 0;padding:38px 28px;border:1px solid var(--border-color);border-radius:var(--radius-lg);background:var(--surface-background);box-shadow:var(--shadow-md);text-align:center}.billing-result-icon{display:flex;width:64px;height:64px;margin:0 auto 16px;align-items:center;justify-content:center;border-radius:50%;font-size:34px;font-weight:800}.billing-result-icon.success{background:#dcfce7;color:#16803c}.billing-result-icon.failed{background:#fee2e2;color:#b42318}.billing-result-label{color:var(--text-muted);font-size:12px}.billing-result-card h1{margin:10px 0 24px;font-size:20px;line-height:1.8}.billing-result-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:25px}.billing-result-meta div{display:flex;padding:10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);flex-direction:column;gap:4px}.billing-result-meta span{color:var(--text-muted);font-size:10px}.billing-result-meta strong{color:var(--text-color);font-size:11px}.billing-result-button{min-width:220px}@media (max-width:575.98px) {
.billing-result-card{margin-top:4vh;padding:30px 16px}.billing-result-meta{grid-template-columns:1fr}.billing-result-card h1{font-size:17px}}

.chat-footer,
.upload-status,
.message-time,
.attachment-meta small,
.message-copy,
.assistant-loading,
.billing-result-meta span {font-size:12px}.attachment-meta strong {font-size:13px}.chat-footer{line-height:1.4}.upload-status{line-height:1.8}.message-time{line-height:1.8}.message-copy{min-height:28px}
.account-modal .modal-dialog{width:min(1200px,calc(100vw - 48px));max-width:none;height:min(900px,calc(100vh - 48px));height:min(900px,calc(100dvh - 48px));margin:24px auto}.account-modal .modal-content{height:100%;min-height:0;border:1px solid #dfe3ea;border-radius:20px;box-shadow:0 24px 80px rgba(24,39,75,.18);overflow:hidden}.account-modal .modal-body{padding:26px 28px;overflow:auto}.account-modal .account-settings-layout{width:100%;max-width:none;min-height:100%;margin:0;grid-template-columns:185px minmax(0,1fr);gap:22px}.account-modal .account-settings-nav{padding:8px 0 8px 14px;border-left:1px solid #e7eaf0;gap:5px}.account-modal .account-nav-item{min-height:44px;padding:11px 12px;border-radius:11px;color:#566071;font-size:13px}.account-modal .account-nav-item:hover,.account-modal .account-nav-item.active{background:#f2f5fb;color:#315fc5}.account-modal .account-settings-content{gap:18px}.account-modal .account-content-panel{padding:20px;border:1px solid #e3e7ee;border-radius:16px;background:#fff}.account-modal .account-panel-heading{padding-bottom:16px}.account-modal .account-panel-heading h3{font-size:17px}.account-modal .account-panel-caption{font-size:12px}.account-modal .account-setting-row,.account-modal .usage-stat,.account-modal .billing-plan-card li{font-size:13px}.account-modal .billing-plan-card li{line-height:1.9}.account-modal .billing-plan-description,.account-modal .billing-section-title small,.account-modal .billing-pricing-note,.account-modal .credit-topup-copy p{font-size:12px}.account-modal .billing-plan-head h4{font-size:18px}.account-modal .billing-plan-head>strong{font-size:12px}.account-modal .billing-plan-action{min-height:40px;font-size:12px}.account-modal .billing-plan-card{padding:16px;border-color:#e0e5ed;border-radius:16px;box-shadow:0 3px 12px rgba(30,52,89,.06)}.account-modal .billing-plan-card.is-recommended{border-color:#2769d8;box-shadow:0 8px 22px rgba(39,105,216,.12)}.account-modal .billing-plan-card.is-current{border-color:#7b45d6}.account-modal .billing-summary>div{min-height:78px;border-color:#e1e6ee}.account-modal .billing-summary span,.account-modal .billing-usage-detail span{font-size:11px}.account-modal .billing-summary strong{font-size:16px}.account-modal .billing-invoice-row{font-size:13px}.account-modal .billing-invoice-row small{font-size:11px}.account-modal .billing-invoice-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;border-color:#cdd5e1;color:#48627f;font-size:12px}.account-modal .billing-invoice-back .sprite-icon{width:14px;height:14px}.account-modal-close{top:14px;left:18px;opacity:.65}.confirm-modal{display:none;position:fixed;inset:0;z-index:120;align-items:center;justify-content:center;padding:18px}.confirm-modal.is-open{display:flex}.confirm-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(3px)}.confirm-modal-box{position:relative;width:min(100%,410px);padding:28px 26px 22px;border:1px solid #e0e5ed;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.22);text-align:center}.confirm-modal-icon{display:flex;width:48px;height:48px;margin:0 auto 14px;align-items:center;justify-content:center;border-radius:50%;background:#fff1f2;color:#dc3545}.confirm-modal-icon .sprite-icon{width:22px;height:22px}.confirm-modal-box h2{margin:0 0 8px;color:#1f2937;font-size:17px}.confirm-modal-box p{margin:0 0 22px;color:#697586;font-size:13px;line-height:1.9}.confirm-modal-actions{display:flex;justify-content:center;gap:8px}.confirm-modal-actions .btn{min-width:110px;border-radius:9px;font-size:12px}
.account-avatar {overflow:hidden}.account-avatar img {width:100%;height:100%;display:block;object-fit:cover}.profile-image-box{display:flex;align-items:center;gap:16px;margin:16px 0;padding:16px;border:1px solid #d9e3f5;border-radius:14px;background:linear-gradient(135deg,#f6f9ff,#fff)}.profile-image-box>div{min-width:0;flex:1}.profile-image-box strong{display:block;color:var(--text-color);font-size:14px}.profile-image-box p{margin:6px 0 0;color:var(--text-muted);font-size:12px;line-height:1.9}.profile-image-form{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:260px}.profile-image-form .btn{font-size:12px;white-space:nowrap}.profile-image-box>small{width:100%;color:var(--text-muted);font-size:11px}
@media (max-width:767.98px) {
.account-modal .modal-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);margin:8px}.account-modal .modal-content{border-radius:16px}.account-modal .modal-body{padding:48px 12px 16px}.account-modal .account-settings-layout{gap:14px}.account-modal .account-settings-nav{padding:5px;border:1px solid #e1e6ee;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(30,52,89,.06)}.account-modal .account-nav-item{min-width:130px;min-height:44px;font-size:13px}.account-modal .account-content-panel{padding:15px;border-radius:14px}.account-modal .billing-plans{grid-template-columns:1fr}.account-modal .billing-plan-card{padding:16px}.account-modal .billing-summary{grid-template-columns:1fr 1fr}.account-modal .billing-summary>div:last-child{grid-column:1/-1}.account-modal .credit-topup-box{padding:15px}.confirm-modal-box{padding:25px 18px 20px}.confirm-modal-actions .btn{min-width:100px}}

@media (max-width:767.98px) {
.profile-image-box{align-items:stretch;flex-direction:column;gap:12px}.profile-image-form{min-width:0;justify-content:stretch}.profile-image-form .btn{flex:1}.profile-image-box>small{font-size:11px}}

@media (max-width:420px) {
.account-modal .billing-summary{grid-template-columns:1fr}.account-modal .billing-summary>div:last-child{grid-column:auto}.account-modal .billing-plan-head h4{font-size:17px}}

.profile-image-box{flex-wrap:wrap}

/* Bootstrap color normalization: keep all account/chat accents blue. */
.default-avatar,.progress-bar,.message-user .message-avatar,.message-avatar.user-avatar{background:#0d6efd}
.message-content blockquote{border-right-color:#0d6efd;background:#e7f1ff}
.account-modal .btn-primary:focus-visible {box-shadow:0 0 0 3px #0d6efd26,var(--shadow-sm)}
/* Bot management workspace */
.bot-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bot-settings-card{padding:22px;border:1px solid #e5e9f1;border-radius:15px;background:#fff;box-shadow:0 8px 26px rgba(27,42,82,.04)}.bot-settings-card h2{margin:0 0 7px;color:#263249;font-size:16px}.bot-settings-card p{margin:0 0 18px;color:#8b95a6;font-size:11px}.bot-settings-wide{grid-column:1/-1}.bot-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f5;color:#8a94a6;font-size:11px}.bot-meta-row strong{color:#34425b;font-weight:600}.bot-settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:18px;color:#748096;font-size:12px}.bot-settings-footer .business-primary{margin:0}@media (max-width:700px) {
.bot-settings-grid{grid-template-columns:1fr}.bot-settings-wide{grid-column:auto}.bot-settings-footer{align-items:stretch;flex-direction:column}.bot-settings-footer .business-primary{width:100%}}


.bot-file-attach{display:grid;grid-template-columns:1fr auto;gap:9px}.bot-files-list{display:grid;gap:8px;margin-bottom:16px}@media (max-width:700px) {
.bot-file-attach{grid-template-columns:1fr}}

.bot-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.bot-heading-actions a,.bot-heading-actions button{margin:0}.business-danger{border:1px solid #f0c9d0;background:#fff4f5;color:#be4b62;border-radius:10px;padding:8px 12px;font-size:11px}@media (max-width:700px) {
.bot-heading-actions{width:100%}.bot-heading-actions>*{flex:1;text-align:center}}

.channel-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.channel-card{padding:20px;border:1px solid #e5e9f1;border-radius:15px;background:#fff;box-shadow:0 8px 26px rgba(27,42,82,.04)}.channel-card h2{margin:18px 0 6px;color:#263249;font-size:16px}.channel-card p{margin:0 0 18px;color:#8b95a6;font-size:11px}.channel-card-meta{display:flex;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px solid #edf0f5;color:#8b95a6;font-size:10px}@media (max-width:900px) {
.channel-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px) {
.channel-list-grid{grid-template-columns:1fr}}

.channel-card-actions{display:flex;gap:8px;margin-top:16px}.channel-card-actions button{margin:0}.channel-settings-fields{display:grid;gap:12px}.channel-settings-fields label{color:#4d5a70;font-size:12px}.channel-settings-fields input{margin-left:7px}.channel-settings-fields .tool-textarea{min-height:110px;margin-top:4px}
.bot-members-table{display:grid;gap:1px;border:1px solid #e5e9f1;border-radius:14px;overflow:hidden;background:#e5e9f1}.bot-member-row{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr 1.2fr 1.2fr 1.2fr;gap:14px;padding:14px 16px;background:#fff;color:#4d5a70;font-size:11px}.bot-member-head{background:#f1f4f9;color:#263249;font-weight:700}.bot-members-filter{display:grid;grid-template-columns:minmax(220px,1fr) 190px 190px auto auto;gap:10px;margin:18px 0;padding:14px;border:1px solid #e5e9f1;border-radius:16px;background:#fff}.member-actions{display:flex;align-items:center;gap:12px;margin:16px 0;color:#64748b;font-size:12px}.member-check{display:flex;align-items:center;gap:8px}.member-check input{accent-color:#1e6cf0}@media (max-width:700px) {
.bot-members-filter{grid-template-columns:1fr}.bot-member-row{grid-template-columns:1fr 1fr}.bot-member-row span:nth-child(4),.bot-member-row span:nth-child(5),.bot-member-row span:nth-child(6),.bot-member-row span:nth-child(7){grid-column:1/-1}}

.bot-batch-history{display:grid;gap:1px;margin:18px 0;border:1px solid #e5e9f1;border-radius:14px;overflow:hidden;background:#e5e9f1}.bot-batch-history-heading{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;background:#f1f4f9;color:#263249;font-size:12px}.bot-batch-history-heading span{color:#8490a4;font-size:10px}.bot-batch-row{display:grid;grid-template-columns:.45fr .8fr 1fr 1.4fr 1.4fr;gap:12px;padding:11px 16px;background:#fff;color:#59667b;font-size:11px}.bot-batch-row time{color:#8993a5}@media (max-width:700px) {
.bot-batch-row{grid-template-columns:1fr 1fr}.bot-batch-row span:nth-child(3),.bot-batch-row span:nth-child(4),.bot-batch-row time{grid-column:1/-1}}

.site-account-bar{display:flex;align-items:center;gap:10px;margin-top:18px;color:#647089;font-size:.85rem}.site-account-bar button{margin-right:auto}
.channel-hours-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px}.channel-hours-fields .tool-input{direction:ltr;text-align:center}
.channel-broadcast-toolbar{display:flex;justify-content:flex-end;width:min(100%,1220px);margin:-12px auto 18px;padding:0 42px}.channel-select{display:flex;align-items:center;gap:6px;margin-bottom:10px;color:#7a869a;font-size:10px}.channel-select input{accent-color:#526bd7}.broadcast-selected-count{color:#7d899c;font-size:12px}@media (max-width:620px) {
.channel-broadcast-toolbar{padding:0 17px}.channel-broadcast-toolbar .business-primary{width:100%}}

.writer-config-fields{display:grid;gap:7px;margin-top:12px}.writer-config-fields small{color:#8a94a6;font-size:10px}
 .account-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.account-quick-actions .btn{flex:1 1 190px;min-height:40px;border-radius:10px;font-size:12px;font-weight:700}
