.bq-card-public{margin:0;background:#f7f2fb}
.bq-card-public .bq-card-presentation{padding:clamp(1rem,6vw,3rem) 1rem}
.bq-card-presentation{font-family:Tajawal,system-ui,sans-serif;color:#30203e}
.bq-card-frame{box-sizing:border-box;width:min(100%,32rem);margin-inline:auto;overflow-wrap:anywhere}
.bq-cards{box-sizing:border-box;width:min(100%,42rem);margin-inline:auto;padding:1rem;overflow-wrap:anywhere}
.bq-cards--admin{width:min(100%,74rem)}
.bq-cards h1{font-size:clamp(1.55rem,5vw,2.15rem);margin-block:1rem}
.bq-card-title{font-size:clamp(1.25rem,5.2vw,1.65rem);font-weight:800;line-height:1.35;margin:0 0 .75rem;text-align:center}
.bq-card-surface{background:#fff;color:#30203e;border:1px solid #dfd0ef;border-radius:1rem;padding:clamp(1rem,5vw,1.65rem);margin:0 0 1rem}
.bq-card-surface figcaption{color:#623880;font-weight:800}
.bq-card-surface blockquote,.bq-card-admin-row blockquote{white-space:pre-wrap;line-height:1.75;margin:1rem 0;text-align:start}
.bq-card-surface.bq-card-shared{margin:0;padding:clamp(.85rem,4vw,1.25rem)}
.bq-card-chat-window{border:1px solid #e6d9ec;border-radius:.85rem;background:#f5f0f8;overflow:hidden}
.bq-card-chat-header{display:flex;align-items:center;gap:.6rem;padding:.5rem .75rem;background:#fff;border-block-end:1px solid #e6d9ec}
.bq-card-chat-header strong,.bq-card-chat-header small{display:block;line-height:1.35}
.bq-card-chat-header small{color:#635370;font-size:.75rem}
.bq-card-chat-avatar{display:block;flex:none;border-radius:50%;object-fit:cover}
.bq-card-chat-thread{display:grid;gap:.6rem;padding:.75rem .75rem 1rem}
.bq-card-chat-reply{display:flex;direction:ltr;align-items:flex-start;gap:.6rem}
.bq-card-chat-reply blockquote{position:relative;min-width:0;max-width:min(100%,26rem);margin:0;padding:.55rem .75rem;border-radius:.8rem;background:#eee2f3;color:#30203e;font-size:1.02rem;line-height:1.65;overflow-wrap:anywhere}
.bq-card-chat-reply blockquote::before{content:"";position:absolute;top:.65rem;left:-.25rem;width:.55rem;height:.55rem;background:inherit;transform:rotate(45deg);border-radius:1px}
.bq-card-chat-reply--member{justify-content:flex-end;margin-inline-start:.5rem}
.bq-card-chat-reply--member blockquote{background:#6c346d;color:#fff}
.bq-card-chat-reply--member blockquote::before{left:auto;right:-.23rem}
.bq-card-chat-image{display:block;width:auto;height:auto;max-width:min(100%,16rem);max-height:18rem;object-fit:contain;border-radius:.45rem;margin-block-end:.35rem}
.bq-card-chat-thread .bq-card-author{margin:.45rem 0 0}
.bq-card-shared-footer{display:flex;justify-content:center;align-items:center;margin-block-start:.75rem}
.bq-card-shared-footer .bq-card-button{box-sizing:border-box;font-size:.875rem}
.bq-card-author,.bq-card-meta{font-size:.9rem;color:#5c486c}
.bq-card-form,.bq-card-share,.bq-card-ad,.bq-card-admin-row{display:grid;gap:.7rem}
.bq-card-form{margin-block:1rem}
.bq-card-form label,.bq-card-filter label{display:block}
.bq-card-form p,.bq-card-share p,.bq-card-admin-row p{margin:0}
.bq-card-button{border:1px solid #673789;background:#673789;color:#fff;border-radius:.6rem;padding:.55rem .85rem;min-height:44px;display:inline-flex;align-items:center;justify-content:center;width:fit-content;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}
.bq-card-button--outline{color:#673789;background:#fff;border-color:#d3bedf}
.bq-card-button--secondary{color:#673789;background:#fff;margin-block-start:.8rem}
.bq-card-button:focus-visible,.bq-cards a:focus-visible{outline:2px solid #673789;outline-offset:3px}
.bq-card-controls,.bq-card-filter,.bq-card-pagination{display:flex;gap:.65rem;align-items:end;flex-wrap:wrap}
.bq-card-controls input,.bq-card-filter input,.bq-card-filter select,.bq-card-form input:not([type=checkbox]):not([type=hidden]){box-sizing:border-box;min-height:44px;border:1px solid #a796b5;border-radius:.5rem;padding:.5rem;max-width:100%;font:inherit}
.bq-card-controls input{flex:1 1 12rem;min-width:0}
.bq-card-form input:not([type=checkbox]):not([type=hidden]){display:block;width:100%}
.bq-card-notice{background:#eee3f8;color:#512c6b;border-radius:.5rem;padding:.7rem}
.bq-card-ad{margin-top:1.2rem;border-block-start:1px solid #dfd0ef;padding-top:1rem}
.bq-card-ad p{margin:0}
.bq-card-ad small{color:#5c486c}
.bq-card-ad-link,.bq-card-presentation .bq-card-ad-link{color:#623880;text-decoration:underline}
.bq-card-sample-action{cursor:default}
.bq-card-preview-sample{background:#f7f2fb;padding:1rem}
.bq-card-preview-sample:focus-visible{outline:2px solid #673789;outline-offset:-2px}
.bq-card-share-intro{display:grid;gap:.15rem;background:#eee3f8;border-radius:.8rem;padding:.65rem .85rem;line-height:1.55}
.bq-card-share-intro p{margin:0;color:#39244d}
.bq-card-share-intro .bq-card-share-speaker{font-size:.85rem;font-weight:800;color:#623880}
.bq-card-preview-label{color:#5c486c;font-size:.85rem;font-weight:700;margin:.85rem 0 .4rem}
.bq-card-preview-page .bq-card-preview{border:1px solid #e9dff2;border-radius:1rem;background:#fff;overflow:hidden}
.bq-card-share-form{margin:0;padding:1rem}
.bq-card-share-form .bq-card-button{box-sizing:border-box;width:100%}
.bq-card-share-form .bq-card-button:not(.bq-card-button--outline):hover{background:#55276f}
.bq-card-share-form .bq-card-button:disabled{cursor:wait;opacity:.72}
.bq-card-share-label{display:none}
.bq-card-share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.bq-card-share-options[hidden]{display:none}
@media(max-width:640px),(any-pointer:coarse){
    .bq-card-copy-label{display:none}
    .bq-card-share-label{display:inline}
}
.bq-card-share-form .bq-card-copy-feedback{background:#f5eefb;color:#512c6b;padding:.5rem .65rem;border-radius:.5rem;line-height:1.5}
.bq-card-copy-feedback:empty{display:none}
.bq-card-dialog{box-sizing:border-box;width:min(calc(100% - 1.5rem),34rem);max-width:none;max-height:calc(100vh - 1.5rem);max-height:calc(100dvh - 1.5rem);padding:0;border:1px solid #dfd0ef;border-radius:1rem;background:#fff;color:#30203e;overflow:auto;box-shadow:0 18px 60px rgba(33,17,47,.22)}
.bq-card-dialog[open]{display:flex;flex-direction:column}
.bq-card-dialog--fallback[open]{position:fixed;z-index:10000;inset:50% auto auto 50%;margin:0;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax rgba(33,17,47,.64)}
.bq-card-dialog::backdrop{background:rgba(33,17,47,.64)}
.bq-card-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.45rem 1rem;border-block-end:1px solid #e9dff2}
.bq-card-dialog-header h2{margin:0;font-size:1.15rem;font-weight:800;line-height:1.35}
.bq-card-dialog-header form{margin:0}
.bq-card-dialog-close{min-width:44px;min-height:44px;border:0;border-radius:.5rem;background:#f2e8fa;color:#512c6b;font:inherit;font-size:1.5rem;cursor:pointer}
.bq-card-dialog-close:focus-visible{outline:2px solid #673789;outline-offset:2px}
.bq-card-dialog-content{min-height:0;display:flex;flex-direction:column}
.bq-card-dialog .bq-card-preview{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
.bq-card-dialog .bq-card-preview-sample{overflow:auto;overscroll-behavior:contain}
.bq-card-dialog .bq-card-share-form{border-block-start:1px solid #e9dff2}
.bq-card-dialog [hidden]{display:none!important}
.bq-card-admin-header,.bq-card-admin-meta,.bq-card-admin-actions{display:flex;gap:.6rem 1rem;align-items:center;flex-wrap:wrap}
.bq-card-admin-header{justify-content:space-between;margin-block:.5rem 1rem}
.bq-card-admin-header h1{margin:0}
.bq-card-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:0}
.bq-card-admin-stats>div{display:grid;gap:.2rem;padding:.85rem 1rem;background:#fff;border:1px solid #e9dff2;border-radius:.65rem}
.bq-card-admin-stats dt{font-size:.9rem;color:#5c486c}
.bq-card-admin-stats dd{font-size:1.55rem;font-weight:800;margin:0;color:#30203e}
.bq-card-admin-panel{padding:clamp(.85rem,3vw,1.25rem);margin-block:1rem}
.bq-card-admin-panel h2{font-size:1.15rem;margin:0 0 .8rem}
.bq-card-admin-row{border-block-start:1px solid #e9dff2;padding-block:1rem;color:#30203e}
.bq-card-admin-row:last-of-type{padding-block-end:0}
.bq-card-admin-reply{font-size:1.035rem;font-weight:700;line-height:1.7}
.bq-card-admin-identity{display:flex;align-items:baseline;justify-content:space-between;gap:.35rem 1rem;flex-wrap:wrap}
.bq-card-admin-identity h3{margin:0;font-size:1rem}
.bq-card-admin-conversation{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.bq-card-admin-conversation>div{min-width:0;padding:.65rem .75rem;background:#f8f4fb;border-radius:.55rem}
.bq-card-admin-conversation h4{margin:0 0 .25rem;font-size:.88rem;color:#623880}
.bq-card-admin-conversation p{white-space:pre-wrap;line-height:1.65;text-align:start}
.bq-card-admin-conversation summary{cursor:pointer}
.bq-card-admin-conversation.bq-card-admin-transcript{grid-template-columns:1fr;margin-block-start:.5rem}
.bq-card-admin-meta{font-size:.9rem;color:#5c486c}
.bq-card-admin-meta time{font-variant-numeric:tabular-nums;direction:ltr}
.bq-card-admin-actions{align-items:start;gap:.5rem;margin-block-start:.25rem}
.bq-card-admin-actions form{margin:0}
.bq-card-admin-actions .bq-card-button{box-sizing:border-box}
.bq-card-admin-copy-input{width:min(100%,22rem)}
.bq-card-state{display:inline-flex;border-radius:999px;padding:.2rem .6rem;background:#f2e8fa;color:#583377;font-size:.85rem;font-weight:700}
.bq-card-state[data-active="1"]{background:#e5f3eb;color:#20543c}
.bq-card-settings>summary{font-weight:800;cursor:pointer}
.bq-card-settings .bq-card-form{max-width:34rem}
.bq-card-settings .bq-card-setting-toggle{display:flex;gap:.5rem;align-items:center;min-height:44px;font-weight:700}
.bq-card-settings .bq-card-ad{margin:0;padding-block:.7rem}
.bq-card-admin-empty{margin:0;color:#5c486c;font-size:.95rem}
@media(max-width:640px){
    .bq-card-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bq-card-admin-conversation{grid-template-columns:1fr}
}
.bq-card-filter input,.bq-card-filter select{display:block}
.row--assistant .bq-report-row{align-items:center;flex-wrap:wrap;gap:.375rem;margin-block-start:.1875rem;padding-inline-start:2.625rem}
.row--assistant .bq-report-row> .bq-report-btn,.bq-card-chat-button{display:inline-flex!important;align-items:center;justify-content:center;gap:.3125rem;box-sizing:border-box;flex:0 0 auto;min-width:4.375rem;min-height:1.75rem;margin:0!important;padding:.1875rem .4375rem!important;border:1px solid #cbb5d9!important;border-radius:.5rem!important;background:#fcf8fe!important;color:#5b3571!important;box-shadow:none;font:inherit;font-size:.75rem!important;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}
:root[dir="rtl"] .row--assistant .bq-report-btn{direction:rtl}
.bq-card-chat-button{--bq-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4m-6.8 7 6.8 4'/%3E%3C/svg%3E")}
.row--assistant .bq-report-btn{--bq-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4m0 1c4-4 8 4 14 0v10c-6 4-10-4-14 0'/%3E%3C/svg%3E")}
.bq-card-chat-button::before,.row--assistant .bq-report-btn::before{content:"";flex:none;width:.8125rem;height:.8125rem;background:currentColor;-webkit-mask:var(--bq-action-icon) center/contain no-repeat;mask:var(--bq-action-icon) center/contain no-repeat}
.row--assistant .bq-report-flag{display:none}
.row--assistant .bq-report-btn .bq-report-label{font:inherit}
.row--assistant .bq-report-row> .bq-report-btn:hover,.bq-card-chat-button:hover{background:#f1e6f8!important;border-color:#a581ba!important;box-shadow:none;transform:none}
.bq-card-chat-button:focus-visible,.row--assistant .bq-report-btn:focus-visible{outline:2px solid #673789;outline-offset:-2px}
.bq-card-chat-button:disabled{opacity:.6;cursor:wait}
.bq-card-chat-status{flex-basis:100%;font-size:.8rem;color:#663a82}
.bq-card-chat-status:empty{display:none}
.bq-cards [hidden]{display:none!important}
.bq-card-reply-options{box-sizing:border-box;display:grid;gap:.35rem;width:11.75rem;max-width:calc(100% - 1rem);margin:.25rem .5rem .5rem;padding:.35rem;border:1px solid #e1cde9;border-radius:.75rem;background:#fff;box-shadow:0 5px 15px rgba(33,17,47,.1)}
.bq-card-reply-options button{box-sizing:border-box;width:100%;min-height:44px;padding:.3rem .7rem;border:1px solid #e8d9ed;border-radius:.5rem;background:#f9f3fb;color:#512c6b;text-align:start;font:inherit;font-size:.9rem;font-weight:800;cursor:pointer}
.bq-card-reply-options button:hover{background:#ede1f4}
.bq-card-reply-options button:focus-visible{outline:2px solid #673789;outline-offset:2px}
