@import url("/asi/fonts/darkoza-sans/v1/fonts.css");
:root{color-scheme:dark;--bg:#000;--sidebar:#080808;--panel:#111;--panel-hover:#1a1a1a;--border:#282828;--muted:#919191;--text:#f2f2f2;--accent:#d9d9d9;--blue:#234f89;--radius:18px;font-family:var(--darkoza-font-family,"Darkoza Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif)}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}
body{overflow:hidden;font-size:14px}
button,input,textarea,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{color:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8ab4f8;outline-offset:2px}
button:disabled{opacity:.48;cursor:not-allowed}
[hidden]{display:none!important}
.app-shell{height:100dvh;min-height:520px;width:100%;display:flex;direction:ltr;background:var(--bg);overflow:hidden}
.sidebar{direction:rtl;flex:0 0 clamp(270px,23.5vw,360px);width:clamp(270px,23.5vw,360px);min-width:0;background:var(--sidebar);border-right:1px solid #202020;display:flex;flex-direction:column;gap:15px;padding:14px 12px 10px;overflow:hidden;transition:width .2s ease,flex-basis .2s ease,padding .2s ease}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:0 5px 2px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:18px;font-weight:700;letter-spacing:-.4px}
.brand-mark{display:grid;place-items:center;width:27px;height:27px;color:#eee}
.brand-mark svg{width:25px;height:25px}
.icon-button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#a1a1a1;cursor:pointer}
.icon-button:hover,.composer-icon-button:hover{background:#252525;color:#fff}
.icon-button svg,.side-action svg,.account-link svg,.prompt-icon svg,.composer-icon-button svg,.send-button svg,.project-placeholder svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar-actions{display:grid;gap:5px}
.side-action{display:flex;align-items:center;gap:12px;width:100%;min-height:41px;padding:9px 10px;border:0;border-radius:10px;background:transparent;text-align:right;color:#d2d2d2;cursor:pointer;white-space:nowrap}
.side-action:hover,.project-placeholder:hover,.recent-item:hover{background:#1a1a1a}
.side-action span{flex:1;overflow:hidden;text-overflow:ellipsis}
.side-action svg{flex:0 0 20px;color:#a9a9a9}
.primary-action{border:1px solid #272727;background:#141414}
.primary-action:hover{background:#202020}
.primary-action kbd{font-size:11px;color:#747474;border:1px solid #343434;border-radius:5px;padding:2px 5px;direction:ltr}
.side-nav{display:grid;gap:2px}
.sidebar-section,.recents-section{display:grid;gap:7px;padding:2px 3px 0;min-width:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 7px;color:#929292;font-size:12px;font-weight:600}
.section-heading>a{font-size:19px;line-height:1;color:#9a9a9a;border-radius:6px;padding:2px 5px}
.section-heading>a:hover{background:#222;color:#fff}
.project-placeholder{display:flex;align-items:center;gap:10px;min-height:35px;padding:7px 9px;border-radius:8px;color:#828282;font-size:12px}
.project-placeholder>span:nth-child(2){flex:1}
.project-dot{width:8px;height:8px;border:1px solid #5f5f5f;border-radius:3px}
.project-placeholder svg{width:15px;height:15px;color:#666}
.recents-section{flex:1;min-height:70px;overflow:hidden}
.recent-count{font-size:11px;color:#6e6e6e}
.conversation-list{display:grid;align-content:start;gap:2px;overflow-y:auto;min-height:0}
.recent-item{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#b8b8b8;text-align:right;cursor:pointer}
.recent-item.active{background:#202020;color:#f3f3f3}
.recent-item svg{width:15px;height:15px;flex:0 0 15px;stroke:currentColor;fill:none;stroke-width:1.6}
.recent-item .recent-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:12px}
.recent-item .recent-time{font-size:10px;color:#777}
.empty-recents{margin:0;padding:7px 10px;color:#626262;font-size:12px;line-height:1.8}
.sidebar-footer{border-top:1px solid #202020;padding-top:9px;display:grid;gap:3px}
.account-link{display:flex;align-items:center;gap:10px;padding:8px 7px;border-radius:10px}
.account-link:hover,.footer-link:hover{background:#181818}
.user-avatar{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#a64e13;color:#fff;font-size:13px;font-weight:700}
.account-copy{display:grid;gap:3px;min-width:0;flex:1}
.account-copy strong{font-size:12px;font-weight:600}
.account-copy small{font-size:11px;color:#777}
.account-chevron{width:16px!important;height:16px!important;color:#888}
.footer-link{padding:7px 12px;border-radius:8px;color:#858585;font-size:12px}
.main-area{position:relative;direction:rtl;display:flex;flex-direction:column;flex:1;min-width:0;height:100%;background:#000}
.topbar{height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;direction:rtl;background:rgba(0,0,0,.82);z-index:5}
.topbar-leading,.topbar-actions{display:flex;align-items:center;gap:11px;min-width:0}
.mobile-menu{display:none}
.engine-identity{display:inline-flex;align-items:center;padding:8px 9px;color:#ededed}
.model-name{font-weight:600;font-size:15px}
.engine-status{display:inline-flex;align-items:center;gap:7px;color:#929292;font-size:11px;white-space:nowrap}
.status-dot{width:7px;height:7px;background:#9d8a5e;border-radius:50%;box-shadow:0 0 0 3px #9d8a5e18}
.engine-status.ready .status-dot{background:#4eaf79;box-shadow:0 0 0 3px #4eaf7918}
.engine-status.offline .status-dot{background:#d46b6b;box-shadow:0 0 0 3px #d46b6b18}
.upgrade-link{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border-radius:10px;background:#153b69;color:#f1f6ff;font-size:12px;font-weight:600;white-space:nowrap}
.upgrade-link:hover{background:#1c4a80}
.upgrade-link span{font-size:15px}
.chat-stage{position:relative;display:flex;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#333 transparent;padding:0 24px 20px}
.welcome{width:min(100%,790px);margin:auto;align-self:center;padding:24px 0 30px;text-align:center;direction:rtl}
.welcome-symbol{display:grid;place-items:center;margin:0 auto 21px;width:50px;height:50px;border:1px solid #242424;border-radius:17px;background:#0e0e0e;color:#eee}
.welcome-symbol svg{width:32px;height:32px}
.eyebrow{margin:0 0 11px;color:#999;font-size:12px;letter-spacing:.1px}
.welcome h1{margin:0 0 12px;font-size:clamp(24px,2.8vw,34px);line-height:1.45;letter-spacing:-.5px;font-weight:600;color:#f3f3f3}
.welcome-subtitle{margin:0 auto;color:#8c8c8c;font-size:13px;line-height:1.9;max-width:510px}
.prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:32px auto 0;text-align:right;max-width:680px}
.prompt-card{display:flex;align-items:center;gap:12px;min-height:72px;padding:13px 14px;border:1px solid #242424;border-radius:15px;background:#080808;text-align:right;cursor:pointer;transition:background .15s,border-color .15s;min-width:0}
.prompt-card:hover{background:#151515;border-color:#3a3a3a}
.prompt-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:#191919}
.prompt-icon svg{width:20px;height:20px}
.prompt-icon.violet{color:#c2a1ff;background:#281e37}
.prompt-icon.blue{color:#8dbbff;background:#182637}
.prompt-icon.green{color:#96d4aa;background:#1b2c23}
.prompt-icon.amber{color:#e5c080;background:#302719}
.prompt-card>span:last-child{display:grid;gap:5px;min-width:0}
.prompt-card strong{font-size:12px;font-weight:600;line-height:1.5}
.prompt-card small{font-size:11px;font-weight:400;color:#858585;line-height:1.6}
.message-list{width:min(100%,780px);margin:0 auto;padding:34px 0 28px;align-self:stretch;display:flex;flex-direction:column;gap:25px}
.message{display:grid;grid-template-columns:32px minmax(0,1fr);gap:13px;direction:rtl;align-items:start}
.message-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;font-weight:700;font-size:12px}
.message.user .message-avatar{background:#244e84;color:#fff}
.message.assistant .message-avatar{background:#171717;border:1px solid #2a2a2a;color:#f2f2f2}
.message-content{min-width:0;padding-top:3px}
.message-label{display:flex;align-items:baseline;gap:10px;margin:0 0 9px}
.message-label strong{font-size:13px;font-weight:650}
.message-label span{font-size:10px;color:#777}
.message-text{font-size:14px;line-height:2;color:#e3e3e3;white-space:pre-wrap;overflow-wrap:anywhere}
.message.user .message-text{color:#f3f3f3;background:#1b1b1b;border:1px solid #272727;border-radius:18px;padding:11px 15px;display:inline-block;max-width:100%}
.message.assistant .message-text{padding:0 1px}
.message.error .message-text{color:#f1b7b7}
.message-pending .message-text{color:#929292}
.typing-dots{display:flex;align-items:center;gap:5px;padding:6px 0}
.typing-dots span{width:5px;height:5px;border-radius:50%;background:#9c9c9c;animation:pulse 1.1s infinite ease-in-out}
.typing-dots span:nth-child(2){animation-delay:.16s}.typing-dots span:nth-child(3){animation-delay:.32s}
@keyframes pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.composer-region{position:relative;width:min(100%,900px);margin:0 auto;padding:10px 24px 13px;flex:0 0 auto;direction:rtl}
.composer{display:flex;align-items:flex-end;gap:9px;min-height:59px;padding:8px 10px 8px 9px;border:1px solid #2a2a2a;border-radius:28px;background:#1b1b1b;box-shadow:0 8px 34px #0005;transition:border-color .15s}
.composer:focus-within{border-color:#444}
.composer textarea{flex:1;min-width:0;min-height:40px;max-height:200px;resize:none;outline:0;border:0;background:transparent;color:#f4f4f4;font-size:14px;line-height:1.65;padding:10px 2px 6px;overflow-y:auto}
.composer textarea::placeholder{color:#909090}
.composer-icon-button{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:0;border-radius:50%;background:transparent;color:#b9b9b9;cursor:pointer}
.composer-icon-button svg{width:21px;height:21px}
.voice-button{order:3}
.send-button{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:0;border-radius:50%;background:#e7e7e7;color:#101010;cursor:pointer;order:4}
.send-button:hover{background:#fff}
.send-button svg{width:20px;height:20px;stroke-width:2.1}
.send-button:disabled{background:#393939;color:#777}
.toast{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);max-width:min(92%,520px);padding:11px 16px;border:1px solid #3b3b3b;border-radius:12px;background:#222;color:#eee;box-shadow:0 10px 32px #000a;font-size:12px;line-height:1.8;z-index:30;text-align:center}
.sidebar-backdrop{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (min-width:1200px){.welcome{transform:translateY(-2vh)}}
@media (max-width:900px){.sidebar{flex-basis:280px;width:280px}.topbar{padding:0 16px}.engine-status{display:none}.prompt-grid{gap:8px}.prompt-card{padding:11px}.composer-region{padding-inline:18px}}
@media (max-width:700px){body{font-size:13px}.sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:min(84vw,320px);max-width:320px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:none;flex-basis:auto}.sidebar.mobile-open{transform:translateX(0);box-shadow:16px 0 50px #0008}.sidebar-backdrop{position:fixed;inset:0;z-index:35;background:#000a}.sidebar-backdrop:not([hidden]){display:block}.sidebar-collapse{display:none}.mobile-menu{display:grid}.topbar{height:56px;flex-basis:56px;padding:0 11px;gap:5px}.topbar-leading{gap:4px}.engine-identity{padding:7px}.model-name{font-size:14px}.upgrade-link{padding:8px 9px;font-size:10px}.upgrade-link span{display:none}.chat-stage{padding:0 15px 14px}.welcome{padding:16px 0 22px}.welcome-symbol{margin-bottom:16px}.welcome h1{font-size:25px}.welcome-subtitle{font-size:12px}.prompt-grid{grid-template-columns:minmax(0,1fr);margin-top:23px;gap:8px}.prompt-card{min-height:61px}.message-list{padding-top:22px;gap:22px}.message{grid-template-columns:29px minmax(0,1fr);gap:9px}.message-avatar{width:28px;height:28px}.message-text{font-size:13px}.composer-region{padding:8px 10px max(10px,env(safe-area-inset-bottom))}.composer{min-height:55px;padding:6px;gap:4px}.composer textarea{font-size:13px;min-height:40px;padding-top:9px}.composer-icon-button,.send-button{flex-basis:36px;width:36px;height:36px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media (min-width:701px){.sidebar-collapsed .sidebar{flex-basis:0;width:0;padding-left:0;padding-right:0;border-right:0}.sidebar-collapsed .mobile-menu{display:grid}}

/* Public, visible SEO context inside the scrollable welcome stage. */
.seo-content{max-width:680px;margin:28px auto 18px;padding:20px 0 12px;border-top:1px solid #252525;color:#a8a8a8;text-align:right;direction:rtl;font-size:12px;line-height:1.95}
.seo-content h2{margin:0 0 10px;color:#e8e8e8;font-size:17px;font-weight:600;line-height:1.7}
.seo-content h3{margin:15px 0 6px;color:#d0d0d0;font-size:13px;font-weight:600;line-height:1.7}
.seo-content p{margin:0}
.seo-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin:12px 0}
.seo-links a{color:#d3c6ff;text-decoration:none;border-bottom:1px solid #45405c}
.seo-links a:hover{text-decoration:underline}
@media(max-width:700px){.seo-content{margin-top:24px;padding-top:16px}.seo-content h2{font-size:15px}}


.message-actions{display:flex;align-items:center;gap:8px;margin-top:10px}
.speech-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #333;border-radius:16px;background:#171717;color:#bdbdbd;padding:8px 11px;font-size:11px;line-height:1.35;cursor:pointer}
.speech-button:hover,.speech-button.speaking{border-color:#666;color:#f2f2f2;background:#222}
.voice-button.listening{background:#402020;color:#ffb1b1;box-shadow:0 0 0 3px #40202055}
.composer-icon-button:focus-visible,.speech-button:focus-visible{outline:2px solid #aaa;outline-offset:2px}

.message-actions{flex-wrap:wrap}
.speech-audio-wrap{flex:1 1 100%;width:100%;max-width:360px;margin-top:4px}
.speech-audio{display:block;width:100%;max-width:360px;height:38px}

.about-details{max-width:680px;margin:25px auto 12px;color:#777;text-align:right;direction:rtl;font-size:11px;line-height:1.9}
.about-details summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none;color:#777;padding:6px 0}
.about-details summary::-webkit-details-marker{display:none}
.about-details summary::after{content:"+";margin-right:8px;color:#8e8e8e;font-size:14px}
.about-details[open] summary::after{content:"−"}
.about-details p{margin:5px 0 0;color:#777}
@media(max-width:700px){.about-details{margin-top:18px}}

.integrated-tools-wrap{position:relative;display:flex;align-items:center}
.integrated-tools-launcher{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:7px 11px;border:1px solid #292929;border-radius:10px;background:#111;color:#e5e5e5;font-size:12px;cursor:pointer}
.integrated-tools-launcher:hover,.integrated-tools-launcher[aria-expanded="true"]{background:#1b1b1b;border-color:#454545}
.integrated-tools-launcher svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.launcher-chevron{color:#858585;font-size:15px;line-height:1}
.integrated-tools-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:40;width:min(310px,calc(100vw - 24px));max-height:min(72vh,560px);overflow:auto;padding:9px;border:1px solid #303030;border-radius:15px;background:#111;box-shadow:0 18px 55px #000b;display:grid;gap:3px}
.integrated-tools-menu>p{margin:3px 9px 7px;color:#777;font-size:10px}
.integrated-tools-search{width:100%;min-height:38px;padding:8px 10px;border:1px solid #303030;border-radius:9px;background:#090909;color:#eee;font:inherit;font-size:12px;outline:none}
.integrated-tools-search::placeholder{color:#777}
.integrated-tools-search:focus-visible{border-color:#777;outline:2px solid #777;outline-offset:2px}
.integrated-tools-menu>button[hidden],.integrated-tools-empty[hidden]{display:none}
.integrated-tools-empty{margin:8px 9px;padding:9px;border:1px dashed #303030;border-radius:8px;color:#999;text-align:center;font-size:11px}
.integrated-tools-menu>button{display:grid;gap:3px;width:100%;padding:10px 11px;border:0;border-radius:9px;background:transparent;text-align:right;cursor:pointer}
.integrated-tools-menu>button:hover{background:#202020}
.integrated-tools-menu strong{font-size:12px;font-weight:600;color:#ededed}
.integrated-tools-menu small{font-size:10px;color:#858585}
.integrated-workspace{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;background:#080808;min-width:0;min-height:0}
.integrated-workspace-header{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border-bottom:1px solid #262626;background:#0b0b0b;direction:rtl}
.integrated-workspace-heading{display:grid;gap:2px;min-width:0}
.integrated-workspace-heading strong{font-size:13px;color:#eee}
.integrated-workspace-heading small{font-size:10px;color:#777}
.integrated-close{min-height:32px;padding:6px 12px;border:1px solid #333;border-radius:9px;background:#171717;color:#ccc;font-size:11px;cursor:pointer}
.integrated-close:hover{background:#242424;color:#fff}
.integrated-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#080808}
#integrated-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#080808}
.music-studio-pane{flex:1;min-height:0;min-width:0;overflow:auto;padding:clamp(12px,2.4vw,30px);direction:rtl;background:#080808}
.music-studio-pane .music-studio{width:100%;max-width:1080px;margin:0 auto 20px}
@media(max-width:700px){
 .integrated-tools-launcher{min-height:33px;padding:6px 9px;font-size:11px}
 .integrated-tools-launcher svg{width:15px;height:15px}
 .integrated-workspace-header{height:50px;flex-basis:50px;padding:0 10px}
 .integrated-workspace-heading strong{font-size:12px}
 .integrated-workspace-heading small{font-size:9px}
 .integrated-close{font-size:10px;padding:6px 9px}
}

/* Darkoza Sans — unified typography tokens for the monochrome interface. */
:root{font-synthesis:none;font-optical-sizing:auto;text-rendering:optimizeLegibility}
body,button,input,select,textarea{font-family:var(--darkoza-font-family,"Darkoza Sans",Inter,system-ui,sans-serif);font-kerning:normal;font-variant-ligatures:common-ligatures contextual;font-feature-settings:"kern" 1,"liga" 1,"calt" 1}
.brand-name{font-weight:700;letter-spacing:-.035em}
.welcome h1{font-weight:650;letter-spacing:-.035em}

/* Arabic-script headings keep natural tracking and joining. */
html:lang(fa) .welcome h1,
html:lang(ar) .welcome h1 { letter-spacing: 0; }


/* Visible, fixed-price service offer for payment-gateway review. */
.public-offer{max-width:680px;margin:24px auto 14px;padding:18px 20px;border:1px solid #36313f;border-radius:16px;background:linear-gradient(145deg,#111 0%,#0b0b0b 100%);text-align:right;direction:rtl}
.public-offer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.public-offer-kicker,.public-offer-period{font-size:11px;color:#d4c4ff}
.public-offer-period{padding:2px 9px;border:1px solid #393344;border-radius:99px}
.public-offer h2{margin:0 0 7px;color:#f0f0f0;font-size:17px;font-weight:650;line-height:1.6}
.public-offer>p{margin:0;color:#aaa;font-size:12px;line-height:1.85}
.public-offer-price{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:13px 0;padding:10px 12px;border:1px solid #2d2d2d;border-radius:11px;background:#090909}
.public-offer-price span{font-size:11px;color:#888}
.public-offer-price strong{font-size:19px;color:#fff;font-weight:700;font-variant-numeric:tabular-nums}
.public-offer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px;margin:10px 0 12px;padding:0 18px 0 0;color:#c4c4c4;font-size:11px;line-height:1.9}
.public-offer-links{display:flex;flex-wrap:wrap;gap:9px 16px;margin:8px 0}
.public-offer-links a{font-size:11px;color:#d6caff;text-underline-offset:3px}
.public-offer .public-offer-note{margin-top:10px;padding-top:9px;border-top:1px solid #282828;color:#929292;font-size:10px}
@media(max-width:700px){.public-offer{margin:18px 0 10px;padding:15px}.public-offer-list{grid-template-columns:1fr;gap:2px}.public-offer-price strong{font-size:17px}}

/* Shared multi-file composer: all file parsing remains in the user's browser. */
.attachment-strip{width:min(100%,900px);margin:0 auto 7px;padding:8px 12px;border:1px solid #292929;border-radius:14px;background:#101010;direction:rtl}
.attachment-strip[hidden]{display:none}
.attachment-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
.attachment-chip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;width:min(100%,560px);min-width:0;padding:7px 9px;border:1px solid #333;border-radius:12px;background:#181818;color:#d5d5d5;font-size:10px;line-height:1.6}
.attachment-chip-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;grid-column:1/-1;min-width:0}
.attachment-chip-name{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attachment-chip-preview{grid-column:1/-1;min-width:0}
.attachment-chip-preview summary{width:max-content;max-width:100%;cursor:pointer;color:#aaa;font-size:10px;line-height:1.8}
.attachment-chip-preview textarea{display:block;width:100%;min-height:70px;max-height:180px;margin-top:5px;padding:8px;border:1px solid #333;border-radius:8px;background:#101010;color:#ddd;font:inherit;font-size:11px;line-height:1.8;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.attachment-chip-remove{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;padding:0;border:0;border-radius:50%;background:#303030;color:#ddd;font-size:14px;line-height:1;cursor:pointer}
.attachment-chip-remove:hover{background:#494949;color:#fff}
.attachment-status{margin:6px 2px 0;color:#777;font-size:10px;line-height:1.75}
.attach-button{order:2}
.attach-button:hover{background:#292929;color:#fff}
.attach-button:disabled,.attachment-chip-remove:disabled{opacity:.45;cursor:not-allowed}
.message-sources{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0;padding:8px 10px;border:1px solid #292929;border-radius:11px;background:#101010}
.message-sources-heading{flex-basis:100%;font-size:10px;color:#868686}
.message-source-item{font-size:10px;color:#bdbdbd;display:flex;flex-direction:column;gap:3px;max-width:100%}
.message-source-item a{color:#c8baff;text-underline-offset:3px;overflow-wrap:anywhere}
.message-source-detail{font-size:9px;line-height:1.55;color:#818181;overflow-wrap:anywhere}
.message-source-item:not(:last-child)::after{content:" · ";color:#555}
@media(max-width:700px){
 .attachment-strip{padding:7px 9px;margin-bottom:5px}
 .attachment-chip{font-size:9px}
 .attachment-status{font-size:9px}
 .message-sources{gap:5px;padding:7px 8px}
}
.attach-button{order:0}
.web-search-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  flex:0 0 56px;min-width:56px;height:39px;padding:0 9px;order:1;
  border:1px solid #343434;border-radius:999px;background:#171717;color:#c1c1c1;
  font:inherit;font-size:11px;cursor:pointer;white-space:nowrap;
}
.web-search-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.web-search-toggle:hover{background:#252525;color:#fff}
.web-search-toggle[aria-pressed="true"]{border-color:#66845f;background:#20301f;color:#d4efc7}
.web-search-toggle:disabled{opacity:.4;cursor:not-allowed}
.web-search-toggle:focus-visible,.personal-memory-toggle:focus-visible{outline:2px solid #aaa;outline-offset:2px}
.personal-memory-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 68px;min-width:68px;height:39px;padding:0 9px;order:2;border:1px solid #343434;border-radius:999px;background:#171717;color:#c1c1c1;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
.personal-memory-toggle:hover{background:#252525;color:#fff}
.personal-memory-toggle[aria-pressed="true"]{border-color:#66845f;background:#20301f;color:#d4efc7}
.personal-memory-toggle:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:700px){.web-search-toggle{flex-basis:44px;min-width:44px;height:36px;padding:0 7px;font-size:10px}.personal-memory-toggle{flex-basis:58px;min-width:58px;height:36px;padding:0 7px;font-size:10px}}

/* Full-page file intake overlay: pointer-events stay transparent so the window drop handler receives the event. */
.global-drop-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.78);backdrop-filter:blur(7px);pointer-events:none}
.global-drop-overlay[hidden]{display:none}
.global-drop-card{width:min(540px,100%);padding:30px 24px;border:1px dashed #666;border-radius:20px;background:#111;text-align:center;box-shadow:0 24px 70px #000c}
.global-drop-card strong{display:block;color:#f2f2f2;font-size:20px;font-weight:600;line-height:1.6}
.global-drop-card small{display:block;margin-top:9px;color:#999;font-size:12px;line-height:1.9}
@media (max-width:700px){.global-drop-card{padding:25px 18px}.global-drop-card strong{font-size:18px}.global-drop-card small{font-size:11px}}


/* One-tap, privacy-preserving feedback attached to completed assistant replies. */
.darkoza-feedback{flex:1 1 100%;width:100%;max-width:620px;margin-top:7px;padding-top:9px;border-top:1px solid #242424;color:#909090;direction:inherit;font-size:12px;line-height:1.8}
.feedback-prompt{margin:0 0 8px;color:#d0d0d0;font-size:12px;line-height:1.8}
.feedback-quick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.feedback-choice{min-height:44px;padding:8px 12px;border:1px solid #454545;border-radius:10px;background:#111;color:#e2e2e2;font-size:12px;cursor:pointer;touch-action:manipulation}
.feedback-choice:hover:not(:disabled){border-color:#686868;background:#1a1a1a}
.feedback-choice:focus-visible,.feedback-submit:focus-visible{outline:2px solid #9b9b9b;outline-offset:2px}
.feedback-choice:disabled,.feedback-submit:disabled{opacity:.5;cursor:wait}
.feedback-more{margin-top:4px}
.feedback-more>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;color:#b8b8b8;padding:6px 0;font-size:11px;touch-action:manipulation}
.feedback-more>summary::-webkit-details-marker{display:none}
.feedback-more>summary::after{content:"+";margin-right:7px;color:#777;font-size:13px}
.feedback-more[open]>summary::after{content:"−"}
.feedback-intro,.feedback-privacy,.feedback-status{margin:7px 0;color:#999;font-size:11px;line-height:1.85}
.darkoza-feedback-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
.feedback-field{display:grid;gap:4px;min-width:0;color:#aaa;font-size:10px}
.feedback-field select{width:100%;min-width:0;min-height:44px;border:1px solid #454545;border-radius:9px;background:#111;color:#eee;padding:8px 10px;font-size:12px}
.feedback-submit{grid-column:1/-1;justify-self:start;min-height:44px;border:1px solid #4b4b4b;border-radius:16px;background:#1b1b1b;color:#eee;padding:8px 14px;font-size:12px;cursor:pointer;touch-action:manipulation}
.feedback-submit:hover:not(:disabled){border-color:#666;background:#222}
.feedback-status[data-state="success"]{color:#b3c9a8}
.feedback-status[data-state="error"]{color:#d5a9a9}
.feedback-status[data-state="pending"]{color:#aaa}
.feedback-recovery{margin:9px 0 2px;padding-top:8px;border-top:1px dashed #303030}
.feedback-recovery-title{margin:0 0 7px;color:#bdbdbd;font-size:11px;line-height:1.8;text-align:start}
.feedback-recovery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.feedback-recovery-choice{min-width:0;min-height:44px;padding:9px 10px;border:1px solid #454545;border-radius:10px;background:#111;color:#e2e2e2;font-size:12px;line-height:1.6;text-align:start;cursor:pointer;white-space:normal;touch-action:manipulation}
.feedback-recovery-choice:hover{border-color:#686868;background:#1a1a1a}
.feedback-recovery-choice:focus-visible{outline:2px solid #9b9b9b;outline-offset:2px}
.feedback-recovery-choice:disabled{opacity:.52;cursor:default}
.feedback-recovery-send{justify-self:start;min-height:44px;margin-top:8px;padding:8px 14px;border:1px solid #566c58;border-radius:10px;background:#182019;color:#e3eee3;font-size:12px;cursor:pointer;touch-action:manipulation}
.feedback-recovery-send:hover:not(:disabled){border-color:#708572;background:#202b22}
.feedback-recovery-send:focus-visible{outline:2px solid #a4b7a4;outline-offset:2px}
.feedback-recovery-send:disabled{opacity:.45;cursor:default}
@media(max-width:700px){.feedback-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.feedback-choice{min-height:44px;padding:8px 6px;font-size:12px}.darkoza-feedback-form{grid-template-columns:minmax(0,1fr)}.feedback-submit{grid-column:auto;width:100%}.darkoza-feedback{max-width:100%}}

/* User-owned device participation: transparent scope, explicit opt-in, and one-command exit. */
.node-network{max-width:680px;margin:22px auto 14px;padding:17px 19px;border:1px solid #303030;border-radius:16px;background:#0c0c0c;text-align:right;direction:rtl}
.node-network-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.node-network-kicker,.node-network-platform{font-size:10px;color:#bdbdbd}
.node-network-platform{padding:3px 9px;border:1px solid #343434;border-radius:999px;white-space:nowrap}
.node-network h2{margin:0 0 7px;color:#eee;font-size:15px;font-weight:650;line-height:1.7}
.node-network>p{margin:0;color:#999;font-size:11px;line-height:1.9}
.node-network-details{margin-top:10px;border-top:1px solid #252525;padding-top:8px}
.node-network-details>summary{display:inline-flex;align-items:center;gap:7px;color:#d0d0d0;font-size:11px;line-height:1.8;cursor:pointer;list-style:none}
.node-network-details>summary::-webkit-details-marker{display:none}
.node-network-details>summary::after{content:"+";color:#888;font-size:14px}
.node-network-details[open]>summary::after{content:"−"}
.node-network-body{display:grid;gap:10px;margin-top:10px}
.node-network-facts{display:grid;gap:6px;margin:0;padding:0 18px 0 0;color:#aaa;font-size:10px;line-height:1.9}
.node-network-facts strong{color:#ddd;font-weight:600}
.node-network-note,.node-network-footnote,.node-command-status{margin:0;color:#888;font-size:10px;line-height:1.9}
.node-network-note a{color:#d2c5ef;text-underline-offset:3px}
.node-command-block{display:grid;gap:7px;min-width:0;padding:11px 12px;border:1px solid #282828;border-radius:12px;background:#090909}
.node-command-block>strong{color:#ddd;font-size:10px;font-weight:600;line-height:1.7}
.node-command-code{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;text-align:left;direction:ltr;color:#d2d2d2;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.8}
.node-consent{display:flex;align-items:flex-start;gap:8px;color:#aaa;font-size:10px;line-height:1.8;cursor:pointer}
.node-consent input{flex:0 0 auto;margin-top:4px;accent-color:#bcbcbc}
.node-command-button{justify-self:start;min-height:30px;padding:6px 12px;border:1px solid #414141;border-radius:9px;background:#191919;color:#ddd;font-size:10px;cursor:pointer}
.node-command-button:hover:not(:disabled){background:#242424;border-color:#666}
.node-command-button:disabled{opacity:.38;cursor:not-allowed}
.node-command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.node-disconnect-block{border-color:#3a3030}
.node-command-status[data-state="success"]{color:#b9c8ad}
.node-command-status[data-state="error"]{color:#d5aaaa}
.node-network-footnote{padding-top:8px;border-top:1px solid #252525;color:#777}
@media(max-width:700px){.node-network{margin:18px 0 10px;padding:14px}.node-network h2{font-size:14px}.node-command-grid{grid-template-columns:minmax(0,1fr)}.node-command-code{font-size:9px}}


/* Optional voluntary support disclosure; deliberately no checkout or data collection until payment gates pass. */
.support-note{max-width:680px;margin:14px auto 16px;padding:14px 18px;border:1px solid #303030;border-radius:15px;background:#0c0c0c;text-align:right;direction:rtl}
.support-note-top{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:8px}
.support-note-kicker{font-size:11px;color:#c9c0de}
.support-note-status{padding:3px 9px;border:1px solid #45403b;border-radius:999px;color:#c7ad8c;font-size:10px}
.support-note h2{margin:0 0 7px;color:#eee;font-size:15px;font-weight:650;line-height:1.7}
.support-note>p{margin:0;color:#aaa;font-size:11px;line-height:1.9}
.support-note-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 14px;margin:9px 0 10px;padding:0 17px 0 0;color:#bbb;font-size:10px;line-height:1.9}
.support-note-details{padding-top:8px;border-top:1px solid #252525}
.support-note-details>summary{display:inline-flex;align-items:center;gap:7px;color:#d0d0d0;font-size:10px;line-height:1.8;cursor:pointer;list-style:none}
.support-note-details>summary::-webkit-details-marker{display:none}
.support-note-details>summary::after{content:"+";color:#888;font-size:14px}
.support-note-details[open]>summary::after{content:"−"}
.support-note-details-body{display:grid;gap:5px;margin-top:8px}
.support-note-details-body p,.support-note-footnote{margin:0;color:#888;font-size:10px;line-height:1.9}
.support-note .support-note-footnote{margin-top:9px;padding-top:8px;border-top:1px solid #252525;color:#a68b70}
@media(max-width:700px){.support-note{margin:14px 0 10px;padding:13px}.support-note-list{grid-template-columns:1fr;gap:2px}}


/* Live registry status is read-only and does not identify the visitor or device. */
.node-network-status{display:flex;align-items:center;gap:7px;margin:9px 0 0!important;color:#888!important;font-size:10px!important;line-height:1.8}
.node-network-status::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#777}
.node-network-status[data-state="ok"]::before{background:#7caf79}
.node-network-status[data-state="unavailable"]::before{background:#c59a5c}


/* Explicit target-language control for on-demand response translation. */
.translation-language-wrap{display:flex;align-items:center;min-width:0;max-width:170px}
#translation-language{width:clamp(92px,12vw,155px);min-width:0;min-height:35px;padding:7px 10px;border:1px solid #292929;border-radius:10px;background:#111;color:#eee;font-size:11px;text-align:start}
#translation-language::placeholder{color:#888}
#translation-language:focus{border-color:#666}
.message-text{unicode-bidi:plaintext;overflow-wrap:anywhere}
@media(max-width:700px){.translation-language-wrap{max-width:112px}#translation-language{width:104px;min-height:32px;padding:6px 7px;font-size:10px}.topbar{gap:6px;padding:0 8px}.topbar-actions{gap:6px}.engine-status{font-size:9px;gap:4px}}



/* Official, externally verifiable Enamad trust seal. */
.enamad-trust{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:10px 8px 6px;border-top:1px solid #202020;direction:rtl;min-width:0}
.enamad-trust-link{display:grid;place-items:center;flex:0 0 72px;width:72px;min-height:80px;border-radius:9px;background:#fff;overflow:hidden}
.enamad-trust-link img{display:block;width:72px;height:auto;max-height:80px;object-fit:contain}
.enamad-trust>span{min-width:0;color:#929292;font-size:10px;line-height:1.85}
.enamad-trust-link:focus-visible{outline:2px solid #8ab4f8;outline-offset:3px}

/* Voluntary support campaign — same-origin public UI */
.support-campaign{max-width:760px;padding:17px 18px}
.support-campaign .support-note-status[data-state="ready"]{color:#a7d7b5;border-color:#355b42}
.support-campaign .support-note-status[data-state="error"]{color:#e2a2a2;border-color:#684040}
.support-campaign-recipient{margin:7px 0 0!important;color:#c5c5c5!important}
.support-campaign-recipient strong{color:#eee}
.support-campaign-progress{margin:13px 0;padding:10px 12px;border:1px solid #292929;border-radius:11px;background:#090909}
.support-campaign-progress-label{display:flex;justify-content:space-between;gap:12px;color:#aaa;font-size:10px;line-height:1.9}
.support-campaign-progress-label strong{color:#eee;font-variant-numeric:tabular-nums}
.support-campaign-progress-track{height:8px;margin:6px 0;overflow:hidden;border-radius:99px;background:#252525}
.support-campaign-progress-track span{display:block;width:0;height:100%;border-radius:99px;background:#9a8db4;transition:width .25s ease}
.support-campaign-progress>small{display:block;margin-top:3px;color:#888;font-size:10px}
.support-campaign-checkout{display:grid;gap:9px;margin:12px 0}
.support-campaign-amounts{display:flex;gap:7px;flex-wrap:wrap}
.support-campaign-amounts button{min-height:37px;padding:7px 12px;border:1px solid #3b3b3b;border-radius:9px;background:#111;color:#ccc;font-size:11px;cursor:pointer}
.support-campaign-amounts button.is-selected{border-color:#a99ac5;background:#1d1825;color:#fff}
.support-campaign-custom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#aaa;font-size:11px}
.support-campaign-custom input{min-width:150px;min-height:37px;flex:1;padding:7px 10px;border:1px solid #383838;border-radius:9px;background:#090909;color:#eee;font:inherit}
.support-campaign-agreement{display:flex;align-items:flex-start;gap:8px;color:#aaa;font-size:10px;line-height:1.9}
.support-campaign-agreement input{margin-top:5px;accent-color:#a99ac5}
.support-campaign-submit{min-height:42px;padding:9px 14px;border:1px solid #9b8db5;border-radius:10px;background:#b2a4ce;color:#111;font-size:12px;font-weight:700;cursor:pointer}
.support-campaign-submit:disabled{border-color:#303030;background:#222;color:#777;cursor:not-allowed}
.support-campaign-message{margin:0!important;color:#aaa!important;font-size:10px!important}
.support-campaign-refresh{justify-self:start;padding:3px 0;border:0;background:transparent;color:#b6a7d0;font-size:10px;text-decoration:underline;cursor:pointer}
.support-campaign .support-note-details-body a{color:#c9b9e6;text-decoration:underline;text-underline-offset:3px}
.support-campaign .support-note-details-body strong{color:#eee}
@media(max-width:700px){.support-campaign{padding:13px}.support-campaign-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.support-campaign-amounts button{padding:7px 4px;font-size:10px}}

/* CSP-safe progress widths; no inline style attributes */
#support-campaign-progressfill[data-percent="0"]{width:0%}
#support-campaign-progressfill[data-percent="1"]{width:1%}
#support-campaign-progressfill[data-percent="2"]{width:2%}
#support-campaign-progressfill[data-percent="3"]{width:3%}
#support-campaign-progressfill[data-percent="4"]{width:4%}
#support-campaign-progressfill[data-percent="5"]{width:5%}
#support-campaign-progressfill[data-percent="6"]{width:6%}
#support-campaign-progressfill[data-percent="7"]{width:7%}
#support-campaign-progressfill[data-percent="8"]{width:8%}
#support-campaign-progressfill[data-percent="9"]{width:9%}
#support-campaign-progressfill[data-percent="10"]{width:10%}
#support-campaign-progressfill[data-percent="11"]{width:11%}
#support-campaign-progressfill[data-percent="12"]{width:12%}
#support-campaign-progressfill[data-percent="13"]{width:13%}
#support-campaign-progressfill[data-percent="14"]{width:14%}
#support-campaign-progressfill[data-percent="15"]{width:15%}
#support-campaign-progressfill[data-percent="16"]{width:16%}
#support-campaign-progressfill[data-percent="17"]{width:17%}
#support-campaign-progressfill[data-percent="18"]{width:18%}
#support-campaign-progressfill[data-percent="19"]{width:19%}
#support-campaign-progressfill[data-percent="20"]{width:20%}
#support-campaign-progressfill[data-percent="21"]{width:21%}
#support-campaign-progressfill[data-percent="22"]{width:22%}
#support-campaign-progressfill[data-percent="23"]{width:23%}
#support-campaign-progressfill[data-percent="24"]{width:24%}
#support-campaign-progressfill[data-percent="25"]{width:25%}
#support-campaign-progressfill[data-percent="26"]{width:26%}
#support-campaign-progressfill[data-percent="27"]{width:27%}
#support-campaign-progressfill[data-percent="28"]{width:28%}
#support-campaign-progressfill[data-percent="29"]{width:29%}
#support-campaign-progressfill[data-percent="30"]{width:30%}
#support-campaign-progressfill[data-percent="31"]{width:31%}
#support-campaign-progressfill[data-percent="32"]{width:32%}
#support-campaign-progressfill[data-percent="33"]{width:33%}
#support-campaign-progressfill[data-percent="34"]{width:34%}
#support-campaign-progressfill[data-percent="35"]{width:35%}
#support-campaign-progressfill[data-percent="36"]{width:36%}
#support-campaign-progressfill[data-percent="37"]{width:37%}
#support-campaign-progressfill[data-percent="38"]{width:38%}
#support-campaign-progressfill[data-percent="39"]{width:39%}
#support-campaign-progressfill[data-percent="40"]{width:40%}
#support-campaign-progressfill[data-percent="41"]{width:41%}
#support-campaign-progressfill[data-percent="42"]{width:42%}
#support-campaign-progressfill[data-percent="43"]{width:43%}
#support-campaign-progressfill[data-percent="44"]{width:44%}
#support-campaign-progressfill[data-percent="45"]{width:45%}
#support-campaign-progressfill[data-percent="46"]{width:46%}
#support-campaign-progressfill[data-percent="47"]{width:47%}
#support-campaign-progressfill[data-percent="48"]{width:48%}
#support-campaign-progressfill[data-percent="49"]{width:49%}
#support-campaign-progressfill[data-percent="50"]{width:50%}
#support-campaign-progressfill[data-percent="51"]{width:51%}
#support-campaign-progressfill[data-percent="52"]{width:52%}
#support-campaign-progressfill[data-percent="53"]{width:53%}
#support-campaign-progressfill[data-percent="54"]{width:54%}
#support-campaign-progressfill[data-percent="55"]{width:55%}
#support-campaign-progressfill[data-percent="56"]{width:56%}
#support-campaign-progressfill[data-percent="57"]{width:57%}
#support-campaign-progressfill[data-percent="58"]{width:58%}
#support-campaign-progressfill[data-percent="59"]{width:59%}
#support-campaign-progressfill[data-percent="60"]{width:60%}
#support-campaign-progressfill[data-percent="61"]{width:61%}
#support-campaign-progressfill[data-percent="62"]{width:62%}
#support-campaign-progressfill[data-percent="63"]{width:63%}
#support-campaign-progressfill[data-percent="64"]{width:64%}
#support-campaign-progressfill[data-percent="65"]{width:65%}
#support-campaign-progressfill[data-percent="66"]{width:66%}
#support-campaign-progressfill[data-percent="67"]{width:67%}
#support-campaign-progressfill[data-percent="68"]{width:68%}
#support-campaign-progressfill[data-percent="69"]{width:69%}
#support-campaign-progressfill[data-percent="70"]{width:70%}
#support-campaign-progressfill[data-percent="71"]{width:71%}
#support-campaign-progressfill[data-percent="72"]{width:72%}
#support-campaign-progressfill[data-percent="73"]{width:73%}
#support-campaign-progressfill[data-percent="74"]{width:74%}
#support-campaign-progressfill[data-percent="75"]{width:75%}
#support-campaign-progressfill[data-percent="76"]{width:76%}
#support-campaign-progressfill[data-percent="77"]{width:77%}
#support-campaign-progressfill[data-percent="78"]{width:78%}
#support-campaign-progressfill[data-percent="79"]{width:79%}
#support-campaign-progressfill[data-percent="80"]{width:80%}
#support-campaign-progressfill[data-percent="81"]{width:81%}
#support-campaign-progressfill[data-percent="82"]{width:82%}
#support-campaign-progressfill[data-percent="83"]{width:83%}
#support-campaign-progressfill[data-percent="84"]{width:84%}
#support-campaign-progressfill[data-percent="85"]{width:85%}
#support-campaign-progressfill[data-percent="86"]{width:86%}
#support-campaign-progressfill[data-percent="87"]{width:87%}
#support-campaign-progressfill[data-percent="88"]{width:88%}
#support-campaign-progressfill[data-percent="89"]{width:89%}
#support-campaign-progressfill[data-percent="90"]{width:90%}
#support-campaign-progressfill[data-percent="91"]{width:91%}
#support-campaign-progressfill[data-percent="92"]{width:92%}
#support-campaign-progressfill[data-percent="93"]{width:93%}
#support-campaign-progressfill[data-percent="94"]{width:94%}
#support-campaign-progressfill[data-percent="95"]{width:95%}
#support-campaign-progressfill[data-percent="96"]{width:96%}
#support-campaign-progressfill[data-percent="97"]{width:97%}
#support-campaign-progressfill[data-percent="98"]{width:98%}
#support-campaign-progressfill[data-percent="99"]{width:99%}
#support-campaign-progressfill[data-percent="100"]{width:100%}
.support-campaign-contact a{color:#c9b9e6;text-decoration:underline;text-underline-offset:3px}

/* Native accessible progress element; no CSP-blocked inline width updates */
.enamad-trust-link img{cursor:pointer}
.support-campaign-progress-track progress{display:block;width:100%;height:8px;margin:6px 0;border:0;border-radius:99px;overflow:hidden;appearance:none;background:#252525;color:#9a8db4}
.support-campaign-progress-track progress::-webkit-progress-bar{background:#252525;border-radius:99px}
.support-campaign-progress-track progress::-webkit-progress-value{background:#9a8db4;border-radius:99px}
.support-campaign-progress-track progress::-moz-progress-bar{background:#9a8db4;border-radius:99px}

.node-account-pair{margin-top:12px;border-color:#51466a;background:#100f13}
.node-account-pair-status{margin:9px 0;color:#b9b0c8;font-size:10px;line-height:1.9}
.node-account-auth-link{margin:5px 0!important}
.node-account-auth-link a{color:#d2c5ef;text-underline-offset:3px}
#node-account-pair-result{display:grid;gap:8px;margin-top:12px}
#node-account-pair-result[hidden]{display:none}
.node-account-owned-list{display:grid;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #29252f;color:#aaa;font-size:10px}
.node-owned-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid #302d36;border-radius:8px}
.node-owned-row span{overflow-wrap:anywhere}
.node-owned-revoke{flex:0 0 auto;padding:5px 9px;color:#d7aaa5;border-color:#65423f}
@media(max-width:700px){.node-owned-row{align-items:flex-start;flex-direction:column}.node-owned-revoke{align-self:flex-start}}


/* First-session hierarchy: useful actions first, optional detail progressively disclosed. */

.oersi-assessment-entry{width:min(100%,680px);margin:12px auto 0;text-align:right;direction:rtl}
.oersi-assessment-card{width:100%;min-height:76px;background:#0b100d;border-color:#2b3b31;justify-content:space-between;gap:12px}
.oersi-assessment-card:hover{background:#101812;border-color:#405a48}
.oersi-assessment-card .oersi-assessment-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:8px 11px;border:1px solid #34483a;border-radius:10px;color:#d2e0d5;font-size:11px;line-height:1.5;white-space:nowrap}
.oersi-assessment-card:focus-visible{outline:2px solid #a6c8ad;outline-offset:3px}
@media (max-width:700px){.oersi-assessment-entry{margin-top:10px}.oersi-assessment-card{align-items:center;gap:9px;padding:10px}.oersi-assessment-card .oersi-assessment-action{padding:7px 8px;font-size:10px}.oersi-assessment-card small{line-height:1.7}}
html[dir="ltr"] .oersi-assessment-entry{text-align:left;direction:ltr}
html[dir="ltr"] .oersi-assessment-card .oersi-assessment-action{margin-inline-start:auto}

.welcome-start{max-width:680px;margin:22px auto 0;text-align:right;direction:rtl}
.welcome-start h2{margin:0 0 5px;color:#e8e8e8;font-size:13px;font-weight:650;line-height:1.8}
.welcome-start p{margin:0;color:#858585;font-size:11px;line-height:1.9}
.welcome-start + .prompt-grid{margin-top:13px}
.welcome-extras,.welcome-disclosure{display:block;width:min(100%,680px);margin:11px auto 0;border:1px solid #282828;border-radius:14px;background:#090909;text-align:right;direction:rtl;overflow:hidden}
.welcome-extras>summary,.welcome-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:45px;padding:10px 14px;list-style:none;cursor:pointer;color:#dedede;font-size:12px;line-height:1.8}
.welcome-extras>summary::-webkit-details-marker,.welcome-disclosure>summary::-webkit-details-marker{display:none}
.welcome-extras>summary::after,.welcome-disclosure>summary::after{content:"+";margin-inline-start:auto;color:#999;font-size:16px;line-height:1}
.welcome-extras[open]>summary::after,.welcome-disclosure[open]>summary::after{content:"−"}
.welcome-extras>summary small,.welcome-disclosure>summary small{color:#888;font-size:10px;font-weight:400;line-height:1.7}
.welcome-extras>summary:hover,.welcome-disclosure>summary:hover{background:#111}
.welcome-extras>summary:focus-visible,.welcome-disclosure>summary:focus-visible{outline:2px solid #8ab4f8;outline-offset:-3px}
.welcome-extras .prompt-grid{margin:11px auto 13px;padding:0 12px}
.welcome-extras>.node-network{width:calc(100% - 24px);margin:10px auto 13px}
.welcome-disclosure>.public-offer,.welcome-disclosure>.support-campaign{width:100%;max-width:none;margin:0;border-radius:0}
.welcome-disclosure>.public-offer{border:0;border-top:1px solid #282828}
.welcome-disclosure>.support-campaign{border:0;border-top:1px solid #282828}
@media(max-width:700px){
  .welcome-start{margin-top:17px}
  .welcome-start h2{font-size:12px}
  .welcome-start p{font-size:10px}
  .welcome-extras>summary,.welcome-disclosure>summary{align-items:flex-start;flex-wrap:wrap;min-height:44px;padding:10px 12px;gap:4px 9px}
  .welcome-extras>summary small,.welcome-disclosure>summary small{font-size:9px}
  .welcome-extras .prompt-grid{padding:0 9px}
  .welcome-extras>.node-network{width:calc(100% - 18px)}
}


/* Multilingual content; Persian shell remains RTL and unchanged. */
#message-input{unicode-bidi:plaintext;text-align:start}
.message-text{unicode-bidi:plaintext;text-align:start;overflow-wrap:anywhere}
#message-input:lang(ja),.message-text:lang(ja){font-family:"Darkoza Sans CJK JP","Darkoza Sans",Inter,system-ui,sans-serif}
#message-input:lang(ko),.message-text:lang(ko){font-family:"Darkoza Sans CJK KR","Darkoza Sans",Inter,system-ui,sans-serif}
#message-input:lang(zh-Hans),#message-input:lang(zh-CN),#message-input:lang(zh-SG),.message-text:lang(zh-Hans),.message-text:lang(zh-CN),.message-text:lang(zh-SG){font-family:"Darkoza Sans CJK SC","Darkoza Sans",Inter,system-ui,sans-serif}
#message-input:lang(zh-Hant),#message-input:lang(zh-TW),#message-input:lang(zh-HK),#message-input:lang(zh-MO),.message-text:lang(zh-Hant),.message-text:lang(zh-TW),.message-text:lang(zh-HK),.message-text:lang(zh-MO){font-family:"Darkoza Sans CJK TC","Darkoza Sans",Inter,system-ui,sans-serif}


/* Prompt-first project build results: same-chat delivery without navigation. */
.code-project-result{display:grid;gap:9px;margin:12px 0 4px;padding:13px;border:1px solid #37313f;border-radius:12px;background:#101014;direction:rtl;text-align:right}
.code-project-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.code-project-heading strong{font-size:12px;color:#eee}
.code-project-status{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:10px}
.code-project-status.passed{border:1px solid #315745;background:#14271d;color:#b2e4c3}
.code-project-status.review{border:1px solid #705331;background:#2b2012;color:#f0d0a0}
.code-project-summary{margin:0;color:#c9c9cf;font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.code-project-tests,.code-project-boundary,.code-project-unavailable{color:#999;font-size:10px;line-height:1.8}
.code-project-files{display:grid;gap:5px;margin:0;padding:8px 22px 8px 0;border-top:1px solid #29252f;border-bottom:1px solid #29252f;color:#d5d5da;font-size:11px}
.code-project-files li{padding-inline-start:3px}
.code-project-files li span{overflow-wrap:anywhere}
.code-project-files li small{margin-inline-start:8px;color:#888;font-size:9px;white-space:nowrap}
.code-project-download{justify-self:start;min-height:37px;padding:7px 13px;border:1px solid #66558a;border-radius:9px;background:#211b2c;color:#eee;font:inherit;font-size:11px;cursor:pointer}
.code-project-download:hover{background:#2c233b;border-color:#8b78b5}
.code-project-download:focus-visible{outline:2px solid #b9a7e5;outline-offset:2px}
@media(max-width:700px){.code-project-result{padding:11px}.code-project-heading{align-items:flex-start}.code-project-download{width:100%;justify-self:stretch}}


/* Automatic first-step artifact delivered inside the same assistant turn. */
.first-step-artifact{display:grid;gap:8px;margin:12px 0 4px;padding:13px;border:1px solid #34313a;border-radius:12px;background:#101013;direction:rtl;text-align:right}
.first-step-artifact>strong{font-size:12px;color:#e8e8eb}
.first-step-artifact-content{color:#d0d0d5;font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}
.first-step-artifact>small{color:#93939b;font-size:10px;line-height:1.8}
@media(max-width:700px){.first-step-artifact{padding:11px}.first-step-artifact-content{font-size:10px}}


/* Full interface localization: preserve the native Persian shell and mirror layout for English. */
.ui-language-wrap{display:flex;align-items:center;flex:0 0 auto}
#ui-language-select{width:86px;min-height:34px;padding:6px 8px;border:1px solid #303030;border-radius:9px;background:#111;color:#ddd;font-size:11px;cursor:pointer}
#ui-language-select:focus-visible{outline:2px solid #aaa;outline-offset:2px}
html[dir="ltr"] .sidebar{direction:ltr;border-right:0;border-left:1px solid #202020}
html[dir="ltr"] .main-area,
html[dir="ltr"] .topbar,
html[dir="ltr"] .welcome,
html[dir="ltr"] .composer-region,
html[dir="ltr"] .composer,
html[dir="ltr"] .integrated-workspace-header{direction:ltr}
html[dir="ltr"] .side-action,
html[dir="ltr"] .recent-item,
html[dir="ltr"] .section-heading,
html[dir="ltr"] .prompt-grid,
html[dir="ltr"] .prompt-card,
html[dir="ltr"] .welcome-start,
html[dir="ltr"] .welcome-extras,
html[dir="ltr"] .welcome-disclosure,
html[dir="ltr"] .node-network,
html[dir="ltr"] .public-offer,
html[dir="ltr"] .support-campaign,
html[dir="ltr"] .about-details,
html[dir="ltr"] .music-studio,
html[dir="ltr"] .music-controls,
html[dir="ltr"] .music-projects,
html[dir="ltr"] .music-library,
html[dir="ltr"] .attachment-strip{direction:ltr;text-align:left}
html[dir="ltr"] .side-action,
html[dir="ltr"] .recent-item,
html[dir="ltr"] .section-heading,
html[dir="ltr"] .integrated-workspace-header,
html[dir="ltr"] .welcome-extras>summary,
html[dir="ltr"] .welcome-disclosure>summary{ text-align:left }
html[dir="ltr"] .node-owned-revoke{margin-left:auto;margin-right:0}
html[dir="ltr"] .enamad-trust{direction:ltr;text-align:left}
html[dir="ltr"] .integrated-tools-menu{direction:ltr;text-align:left}
html[dir="ltr"] .integrated-tools-menu button{text-align:left}
html[dir="ltr"] .composer textarea{text-align:left}
html[dir="ltr"] .composer-region{direction:ltr}
html[dir="ltr"] .message{direction:ltr}
html[dir="ltr"] .message-text{text-align:left}
@media(max-width:700px){
  .ui-language-wrap{max-width:82px}
  #ui-language-select{width:78px;min-height:32px;padding:5px 5px;font-size:10px}
  .topbar-actions{gap:5px}
}

/* Canonical Darkoza mission mark — restrained, language-independent brand copy. */
.mission-strapline {
  max-width: 42rem;
  margin: 0 auto 12px;
  color: #858585;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .075em;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .mission-strapline {
    max-width: calc(100% - 8px);
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: .035em;
    line-height: 1.7;
  }
}

html[dir="ltr"] .chat-sync-dialog-form{direction:ltr;text-align:left}
html[dir="ltr"] .chat-sync-import{direction:ltr}
html[dir="ltr"] .chat-sync-privacy ul{padding:0 0 0 18px}

/* Private cross-device chat sync controls. */
.chat-sync-dialog{width:min(100% - 24px,560px);max-width:560px;max-height:min(90dvh,780px);padding:0;border:1px solid #37333d;border-radius:18px;background:#101014;color:#ededf0;box-shadow:0 24px 90px #000d;overflow:auto}
.chat-sync-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}
.chat-sync-dialog-form{display:grid;gap:14px;padding:20px;direction:rtl;text-align:right}
.chat-sync-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2c2931;padding-bottom:12px}
.chat-sync-dialog-heading>div{display:grid;gap:4px}
.chat-sync-dialog-heading strong{font-size:15px;font-weight:650;color:#f1f1f3}
.chat-sync-dialog-heading small{font-size:11px;color:#89858f}
.chat-sync-close{font-size:22px;line-height:1}
.chat-sync-description{margin:0;color:#c6c3cb;font-size:12px;line-height:1.9}
.chat-sync-status{padding:10px 12px;border:1px solid #34313a;border-radius:10px;background:#18171c;color:#d8d5de;font-size:11px;line-height:1.8}
.chat-sync-status.is-error{border-color:#6a3e40;color:#efb8b8;background:#241719}
.chat-sync-setting{display:grid;gap:7px;color:#d5d2d9;font-size:12px}
.chat-sync-setting select{min-height:39px;width:100%;padding:7px 10px;border:1px solid #3b3742;border-radius:9px;background:#17161b;color:#eee}
.chat-sync-import{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #3a3542;border-radius:10px;background:#17151b;cursor:pointer}
.chat-sync-import input{flex:0 0 17px;width:17px;height:17px;margin:3px 0 0;accent-color:#aa92de}
.chat-sync-import>span{display:grid;gap:5px}
.chat-sync-import strong{font-size:12px;color:#eee}
.chat-sync-import small{font-size:10px;color:#a6a1ad;line-height:1.8}
.chat-sync-privacy{padding:11px;border:1px solid #2f2d34;border-radius:10px;background:#141317}
.chat-sync-privacy>strong{font-size:11px;color:#e4e1e7}
.chat-sync-privacy ul{display:grid;gap:6px;margin:8px 0 0;padding:0 18px 0 0;color:#aaa6b0;font-size:10px;line-height:1.8}
.chat-sync-count{color:#aaa6b0;font-size:10px;line-height:1.7}
.chat-sync-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chat-sync-actions button{min-height:39px;padding:8px 10px;border:1px solid #3a3740;border-radius:9px;background:#19181d;color:#ddd;font-size:11px;cursor:pointer}
.chat-sync-actions button:hover:not(:disabled){background:#242129;border-color:#5a5364}
.chat-sync-actions .chat-sync-primary{border-color:#64537f;background:#2a2236;color:#f1eaff}
.chat-sync-actions .chat-sync-danger{border-color:#694043;color:#e7b9b9}
.chat-sync-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.chat-sync-dialog-form{padding:15px}.chat-sync-actions{grid-template-columns:1fr}.chat-sync-dialog{border-radius:14px}}
html[dir="ltr"] .chat-sync-dialog-form{direction:ltr;text-align:left}
html[dir="ltr"] .chat-sync-import{direction:ltr}
html[dir="ltr"] .chat-sync-privacy ul{padding:0 0 0 18px}

/* DARKOZA_WORKSPACE_CONTINUITY_STATUS_V1 */
.continuity-status{display:flex;align-items:flex-start;gap:10px;width:min(calc(100% - 32px),900px);margin:10px auto 0;padding:10px 14px;border:1px solid rgba(222,169,91,.34);border-radius:11px;background:rgba(79,54,21,.24);color:#f4dfbd;direction:rtl;line-height:1.75}
.continuity-status[hidden]{display:none!important}
.continuity-status-mark{flex:0 0 8px;width:8px;height:8px;margin-top:7px;border-radius:50%;background:#e2ad63;box-shadow:0 0 0 4px rgba(226,173,99,.12)}
.continuity-status-copy{min-width:0}
.continuity-status-copy strong{display:block;margin-bottom:1px;color:#f6e6cb;font-size:11px;font-weight:650}
.continuity-status-copy p{margin:0;color:#e1cba8;font-size:10px}
.continuity-status[data-state="unknown"]{border-color:rgba(223,132,132,.38);background:rgba(82,34,39,.25);color:#f4d4d4}
.continuity-status[data-state="unknown"] .continuity-status-mark{background:#df8585;box-shadow:0 0 0 4px rgba(223,133,133,.12)}
@media(max-width:700px){.continuity-status{width:calc(100% - 22px);margin-top:8px;padding:9px 11px}.continuity-status-copy p{font-size:10px}}

/* Voice capture controls v1: visible, cancellable, and accessible recording state. */
.voice-status{display:flex;align-items:center;justify-content:center;gap:12px;min-height:28px;padding:4px 8px;color:#d8d8d8;font-size:12px;line-height:1.5}
.voice-status[hidden],.voice-cancel-button[hidden]{display:none}
.voice-status.recording{color:#ffb1b1}
.voice-cancel-button{order:4;color:#ffb1b1}
.voice-cancel-button:hover{background:#402020;color:#fff}
.voice-button.listening{background:#402020;color:#ffb1b1;box-shadow:0 0 0 3px #40202055}
@media(prefers-reduced-motion:no-preference){.voice-button.listening{animation:voice-pulse 1.6s ease-in-out infinite}@keyframes voice-pulse{50%{box-shadow:0 0 0 6px #40202022}}}

.speech-button:disabled{cursor:wait;opacity:.68}

/* Guest-first-chat disclosure: preserve the auth-first security boundary while
   telling visitors what Send will do before they submit a first message. */
.composer-auth-note{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;width:min(100%,900px);margin:0 auto 3px;padding:0 14px;color:#aaa;font-size:11px;line-height:1.55;text-align:center;direction:rtl}
.composer-auth-note[hidden]{display:none!important}
.composer-auth-link{flex:0 0 auto;color:#eee;text-decoration:underline;text-decoration-color:#777;text-underline-offset:3px;white-space:nowrap}
.composer-auth-link:hover{color:#fff;text-decoration-color:#fff}
html[lang^="en"] .composer-auth-copy-fa,html[lang^="en"] .composer-auth-link-fa{display:none}
html:not([lang^="en"]) .composer-auth-copy-en,html:not([lang^="en"]) .composer-auth-link-en{display:none}
html[dir="ltr"] .composer-auth-note{direction:ltr}
@media(max-width:700px){.composer-auth-note{gap:3px 6px;margin-bottom:2px;padding:0 10px;font-size:10px;line-height:1.45}}

/* DARKOZA hands-free voice conversation: one tap starts the voice turn loop. */
.live-voice-button{color:#c7c7c7;flex:0 0 39px;width:39px;height:39px}
.live-voice-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.live-voice-button.active{color:#ffb1b1;background:#402020;box-shadow:0 0 0 3px #40202055}
.live-voice-button:focus-visible{outline:2px solid #aaa;outline-offset:2px}
.voice-status.live-mode{min-height:30px}


/* DARKOZA_COMPACT_DENSITY_V1 — denser layout without shrinking readable text or touch targets. */
@media (min-width: 701px) {
  .sidebar { flex-basis: clamp(248px,21vw,320px); width:clamp(248px,21vw,320px); gap:11px; padding:11px 10px 9px; }
  .sidebar-actions { gap:3px; }
  .side-action { min-height:38px; padding:7px 9px; gap:10px; }
  .sidebar-section,.recents-section { gap:5px; }
  .topbar { height:52px; flex-basis:52px; padding-inline:16px; gap:10px; }
  .topbar-leading,.topbar-actions { gap:8px; }
  .chat-stage { padding:0 20px 14px; }
  .welcome { padding:16px 0 20px; }
  .welcome-symbol { width:44px; height:44px; margin-bottom:14px; border-radius:14px; }
  .welcome-symbol svg { width:28px; height:28px; }
  .eyebrow { margin-bottom:7px; }
  .welcome h1 { margin-bottom:8px; }
  .prompt-grid { gap:8px; margin-top:20px; }
  .prompt-card { min-height:62px; padding:10px 12px; gap:10px; border-radius:12px; }
  .prompt-icon { flex-basis:32px; width:32px; height:32px; border-radius:10px; }
  .prompt-card>span:last-child { gap:3px; }
  .message-list { padding-top:24px; padding-bottom:20px; gap:18px; }
  .message { gap:10px; }
  .message-label { margin-bottom:6px; }
  .composer-region { padding:8px 20px 10px; }
  .composer { min-height:54px; }
  .integrated-tools-menu { max-height:min(76vh,620px); padding:7px; gap:2px; }
  .integrated-tools-menu>button { padding:8px 10px; }
}
@media (max-width:700px) {
  .topbar { height:52px; flex-basis:52px; }
  .welcome { padding:10px 0 16px; }
  .welcome-symbol { width:42px; height:42px; margin-bottom:11px; }
  .welcome h1 { margin-bottom:6px; }
  .prompt-grid { margin-top:16px; gap:6px; }
  .prompt-card { min-height:56px; padding:9px 10px; gap:9px; }
  .prompt-icon { flex-basis:32px; width:32px; height:32px; }
  .message-list { padding-top:16px; padding-bottom:16px; gap:16px; }
  .composer-region { padding-top:6px; }
}


/* DARKOZA_COMPACT_WORKSPACE_DENSITY_V2 — retain legibility and touch sizes. */
@media (min-width:701px) {
  .topbar-leading { display:none; }
}
@media (max-width:700px) {
  .topbar { padding-inline:9px; gap:5px; }
  .topbar-leading { flex:0 0 auto; gap:3px; }
  .engine-identity { padding:5px; }
  .topbar-actions { flex:0 1 auto; gap:5px; }
  .integrated-tools-launcher { min-height:32px; padding:6px 8px; gap:5px; }
  .integrated-tools-launcher svg { width:15px; height:15px; }
  .ui-language-wrap { max-width:76px; }
  #ui-language-select { width:72px; min-height:31px; padding:4px 5px; font-size:10px; }
  .chat-stage { padding:0 12px 10px; }
  .welcome { margin:0 auto; align-self:stretch; padding:9px 0 12px; }
  .welcome-symbol { width:40px; height:40px; border-radius:13px; margin-bottom:9px; }
  .welcome-symbol svg { width:26px; height:26px; }
  .eyebrow { margin-bottom:5px; font-size:11px; }
  .welcome h1 { margin-bottom:6px; font-size:23px; line-height:1.35; }
  .mission-strapline { margin-bottom:7px; font-size:9px; line-height:1.55; }
  .welcome-subtitle { max-width:38rem; font-size:11.5px; line-height:1.55; }
  .welcome-start { margin-top:12px; }
  .welcome-start h2 { margin-bottom:2px; font-size:12px; line-height:1.5; }
  .welcome-start p { font-size:10.5px; line-height:1.5; }
  .welcome-start + .prompt-grid { margin-top:9px; }
  .prompt-grid { gap:6px; }
  .prompt-card { min-height:56px; padding:8px 10px; gap:9px; border-radius:12px; }
  .prompt-icon { flex:0 0 30px; width:30px; height:30px; border-radius:9px; }
  .prompt-icon svg { width:17px; height:17px; }
  .prompt-card>span:last-child { gap:2px; }
  .prompt-card strong { font-size:12px; line-height:1.35; }
  .prompt-card small { font-size:10.5px; line-height:1.35; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .oersi-assessment-entry { margin-top:8px; }
  .oersi-assessment-card { min-height:62px; gap:8px; padding:8px; }
  .oersi-assessment-card .oersi-assessment-action { padding:6px 8px; font-size:10px; }
  .welcome-extras,.welcome-disclosure { margin-top:8px; border-radius:11px; }
  .welcome-extras>summary,.welcome-disclosure>summary { min-height:40px; padding:8px 10px; gap:3px 7px; font-size:12px; }
  .welcome-extras>summary small,.welcome-disclosure>summary small { font-size:10px; }
}
.integrated-tools-preferences { margin:1px 0 4px; border-bottom:1px solid #292929; }
.integrated-tools-preferences>summary { display:flex; align-items:center; gap:8px; min-height:34px; padding:7px 9px; list-style:none; cursor:pointer; color:#d5d5d5; font-size:11px; }
.integrated-tools-preferences>summary::-webkit-details-marker { display:none; }
.integrated-tools-preferences>summary::after { content:"+"; margin-inline-start:auto; color:#888; font-size:15px; }
.integrated-tools-preferences[open]>summary::after { content:"−"; }
.integrated-tools-preferences>summary small { color:#777; font-size:9px; }
.integrated-tools-preferences>summary:focus-visible { outline:2px solid #8ab4f8; outline-offset:-2px; }
.integrated-tools-preferences .translation-language-wrap { width:100%; max-width:none; padding:0 8px 9px; }
.integrated-tools-preferences #translation-language { width:100%; min-height:34px; padding:7px 9px; font-size:11px; }
html[dir="ltr"] .integrated-tools-preferences>summary { text-align:left; }

/* DARKOZA_DESKTOP_SIDEBAR_REOPEN_V1 — keep collapsed navigation reachable. */
@media (min-width:701px) {
  .sidebar-collapsed .topbar-leading { display:flex; flex:0 0 auto; min-width:36px; }
  .sidebar-collapsed .topbar-leading .engine-identity { display:none; }
}

.darkoza-inline-card{margin:15px 0;padding:14px;border:1px solid #303030;border-radius:15px;background:#0b0b0b;color:#eee;direction:rtl;text-align:start;max-width:100%;overflow:hidden}
.darkoza-inline-title{margin:0 0 7px;font-size:14px;font-weight:650;color:#f5f5f5}
.darkoza-inline-description{margin:7px 0;color:#9a9a9a;font-size:11px;line-height:1.8}
.darkoza-inline-card-body{margin:0;color:#d6d6d6;line-height:1.9;white-space:pre-wrap}
.darkoza-inline-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2}
.darkoza-inline-actions,.darkoza-inline-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin-top:10px}
.darkoza-inline-action{min-height:38px;padding:8px 12px;border:1px solid #3b3b3b;border-radius:10px;background:#191919;color:#f0f0f0;font:inherit;font-size:12px;cursor:pointer}
.darkoza-inline-action:hover{background:#242424;border-color:#555}
.darkoza-inline-metric{display:grid;gap:5px;min-width:0;padding:10px;border:1px solid #262626;border-radius:11px;background:#111}
.darkoza-inline-metric-label,.darkoza-inline-metric-note{color:#969696;font-size:10px;line-height:1.6}
.darkoza-inline-metric-value{font-size:21px;font-weight:650;direction:auto;unicode-bidi:plaintext}
.darkoza-inline-form{display:grid;gap:10px;margin-top:10px}
.darkoza-inline-field{display:grid;gap:5px;color:#c9c9c9;font-size:11px}
.darkoza-inline-field input,.darkoza-inline-field textarea,.darkoza-inline-field select{width:100%;min-height:37px;padding:8px;border:1px solid #393939;border-radius:8px;background:#111;color:#eee;font:inherit;font-size:12px}
.darkoza-inline-field textarea{resize:vertical;min-height:75px}
.darkoza-inline-table-wrap{max-width:100%;overflow-x:auto}
.darkoza-inline-table{width:100%;border-collapse:collapse;font-size:11px}
.darkoza-inline-table th,.darkoza-inline-table td{padding:8px;border-bottom:1px solid #292929;text-align:start;vertical-align:top}
.darkoza-inline-table th{color:#aaa;font-weight:600}
.darkoza-inline-checklist{display:grid;gap:8px;margin-top:8px}
.darkoza-inline-check{display:flex;align-items:flex-start;gap:9px;color:#d0d0d0;font-size:12px}
.darkoza-inline-check input{margin-top:3px;accent-color:#aaa}
.darkoza-inline-link{display:inline-block;margin-top:10px;color:#d7d7d7;text-decoration:underline;text-underline-offset:3px;font-size:12px}
@media(max-width:700px){.darkoza-inline-card{padding:11px}.darkoza-inline-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* DARKOZA_COMPOSER_TOUCH_TARGETS_V1 — preserve usable 44px targets at mobile widths. */
.composer > .composer-icon-button,
.composer > .send-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

html[lang^="en"] #live-voice-privacy-hint .live-voice-privacy-fa,
html:not([lang^="en"]) #live-voice-privacy-hint .live-voice-privacy-en {
  display: none;
}


/* Cloud sync: compact primary state, advanced data controls kept explicit. */
.chat-sync-launcher { gap: 9px; }
.chat-sync-launcher-label { flex: 1 1 auto; min-width: 0; }
.chat-sync-state {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #111;
  color: #aaa;
  font-size: 10px;
  line-height: 1.55;
}
.chat-sync-state[data-state="on"] { border-color: #444; background: #1a1a1a; color: #eee; }
.chat-sync-state[data-state="loading"] { color: #999; }
.chat-sync-state[data-state="guest"],
.chat-sync-state[data-state="off"] { color: #888; }
.chat-sync-dialog {
  width: min(calc(100% - 24px), 480px);
  max-width: 480px;
  max-height: min(88dvh, 680px);
  padding: 0;
  border: 1px solid #303030;
  border-radius: 16px;
  background: #080808;
  color: #f2f2f2;
  box-shadow: 0 24px 80px #000d;
  overflow: auto;
}
.chat-sync-dialog::backdrop { background: #000c; backdrop-filter: blur(3px); }
.chat-sync-dialog-form { display: grid; gap: 12px; padding: 18px; direction: rtl; text-align: right; }
.chat-sync-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #282828;
}
.chat-sync-dialog-heading > div { display: grid; gap: 3px; }
.chat-sync-dialog-heading strong { color: #f2f2f2; font-size: 15px; font-weight: 650; }
.chat-sync-dialog-heading small { color: #888; font-size: 10px; }
.chat-sync-description { margin: 0; color: #aaa; font-size: 11px; line-height: 1.8; }
.chat-sync-status {
  padding: 9px 11px;
  border: 1px solid #303030;
  border-radius: 10px;
  background: #111;
  color: #e4e4e4;
  font-size: 11px;
  line-height: 1.8;
}
.chat-sync-status.is-error { border-color: #593838; background: #171010; color: #e6b8b8; }
.chat-sync-count { color: #999; font-size: 10px; line-height: 1.7; }
.chat-sync-primary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.chat-sync-primary-actions button,
.chat-sync-actions button {
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid #373737;
  border-radius: 9px;
  background: #151515;
  color: #ddd;
  font-size: 11px;
  cursor: pointer;
}
.chat-sync-primary-actions button:hover:not(:disabled),
.chat-sync-actions button:hover:not(:disabled) { background: #222; border-color: #555; color: #fff; }
.chat-sync-primary-actions .chat-sync-primary {
  border-color: #ededed;
  background: #ededed;
  color: #080808;
  font-weight: 650;
}
.chat-sync-primary-actions .chat-sync-primary:hover:not(:disabled) { background: #fff; border-color: #fff; color: #000; }
.chat-sync-primary-actions button:disabled,
.chat-sync-actions button:disabled { opacity: .45; cursor: not-allowed; }
.chat-sync-advanced { border-top: 1px solid #282828; padding-top: 9px; }
.chat-sync-advanced > summary,
.chat-sync-privacy > summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  cursor: pointer;
  list-style: none;
  color: #bcbcbc;
  font-size: 11px;
}
.chat-sync-advanced > summary::-webkit-details-marker,
.chat-sync-privacy > summary::-webkit-details-marker { display: none; }
.chat-sync-advanced > summary::after,
.chat-sync-privacy > summary::after { content: "+"; margin-inline-start: auto; color: #888; font-size: 15px; }
.chat-sync-advanced[open] > summary::after,
.chat-sync-privacy[open] > summary::after { content: "−"; }
.chat-sync-advanced-content { display: grid; gap: 11px; padding-top: 8px; }
.chat-sync-setting { display: grid; gap: 6px; color: #c9c9c9; font-size: 11px; }
.chat-sync-setting select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #343434;
  border-radius: 9px;
  background: #111;
  color: #eee;
}
.chat-sync-import {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 10px;
  background: #0d0d0d;
  cursor: pointer;
}
.chat-sync-import input { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #aaa; }
.chat-sync-import > span { display: grid; gap: 4px; }
.chat-sync-import strong { color: #ddd; font-size: 11px; }
.chat-sync-import small { color: #909090; font-size: 10px; line-height: 1.75; }
.chat-sync-privacy { border: 1px solid #2a2a2a; border-radius: 10px; padding: 2px 10px; background: #0b0b0b; }
.chat-sync-privacy > summary { color: #aaa; }
.chat-sync-privacy ul {
  display: grid;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 0 18px 0 0;
  color: #999;
  font-size: 10px;
  line-height: 1.8;
}
.chat-sync-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.chat-sync-actions .chat-sync-danger { border-color: #4c3333; color: #d7b0b0; background: #160f0f; }
.chat-sync-actions .chat-sync-danger:hover:not(:disabled) { border-color: #704747; background: #201313; color: #f0caca; }
.chat-sync-dialog button:focus-visible,
.chat-sync-dialog select:focus-visible,
.chat-sync-dialog input:focus-visible,
.chat-sync-advanced > summary:focus-visible,
.chat-sync-privacy > summary:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}
html[dir="ltr"] .chat-sync-dialog-form { direction: ltr; text-align: left; }
html[dir="ltr"] .chat-sync-import { direction: ltr; }
html[dir="ltr"] .chat-sync-privacy ul { padding: 0 0 0 18px; }
@media (max-width:600px) {
  .chat-sync-dialog-form { gap: 10px; padding: 15px; }
  .chat-sync-primary-actions { grid-template-columns: 1fr; }
  .chat-sync-actions { grid-template-columns: 1fr; }
  .chat-sync-dialog { border-radius: 14px; }
}



/* DARKOZA_MONOCHROME_SYSTEM_V1 — one graphite surface language across first-party modules. */
:root {
  --bg: #000;
  --sidebar: #080808;
  --panel: #111;
  --panel-hover: #1a1a1a;
  --border: #282828;
  --border-strong: #383838;
  --muted: #919191;
  --text: #f2f2f2;
  --accent: #d9d9d9;
  --surface-0: #000;
  --surface-1: #080808;
  --surface-2: #111;
  --surface-3: #1a1a1a;
  --surface-border: #282828;
  --surface-text: #f2f2f2;
  --surface-muted: #919191;
  --blue: #888;
  --mint: #bdbdbd;
  --music-accent: #bdbdbd;
  --music-border: #282828;
  --music-muted: #919191;
}
.integrated-workspace,
.integrated-workspace-header,
.integrated-tools-menu,
.music-studio,
.music-project-library,
.node-network,
.support-note,
.public-offer,
.capability-card,
.mirror-lab,
.workspace,
.goal-tracker,
.goal-card,
.darkoza-inline-card,
.first-step-artifact,
.code-project-result,
.attachment-strip,
.message-sources {
  background: var(--surface-1);
  border-color: var(--surface-border);
  color: var(--surface-text);
}
.integrated-workspace-header,
.workspace-header {
  background: var(--surface-1);
  border-color: var(--surface-border);
}
.integrated-tools-menu,
.integrated-tools-launcher,
#ui-language-select,
.integrated-tools-search,
.music-field select,
.music-project-name input,
.music-project-select select,
.feedback-field select,
.goal-review-field select,
.darkoza-inline-field input,
.darkoza-inline-field textarea,
.darkoza-inline-field select {
  background: var(--surface-2);
  border-color: var(--surface-border);
  color: var(--surface-text);
}
.music-action,
.music-action.primary,
.node-command-button,
.goal-save-button,
.goal-clear-button,
.goal-remove-button,
.feedback-submit,
.darkoza-inline-action,
.code-project-download {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--surface-text);
  box-shadow: none;
}
.music-action:hover:not(:disabled),
.node-command-button:hover:not(:disabled),
.goal-save-button:hover,
.feedback-submit:hover:not(:disabled),
.darkoza-inline-action:hover,
.code-project-download:hover {
  border-color: #555;
  background: var(--surface-3);
  color: #fff;
}
.music-studio,
.node-network,
.support-note,
.public-offer,
.capability-card,
.mirror-lab,
.goal-tracker,
.goal-card,
.first-step-artifact,
.code-project-result,
.darkoza-inline-card {
  box-shadow: none;
}
.music-field,
.music-studio-intro,
.music-summary,
.music-privacy,
.music-project-count,
.music-library-status,
.node-network > p,
.support-note > p,
.public-offer > p {
  color: var(--surface-muted);
}
.send-button {
  background: #f0f0f0;
  color: #080808;
  border: 1px solid #f0f0f0;
  box-shadow: none;
}
.send-button:hover:not(:disabled) {
  background: #fff;
  color: #000;
}
.upgrade-link {
  background: #171717;
  border: 1px solid #303030;
  color: #ededed;
}
.upgrade-link:hover {
  background: #242424;
  border-color: #4a4a4a;
}

/* Keep keyboard focus and utility accents neutral; preserve only meaningful error/recording states. */
.integrated-tools-preferences > summary:focus-visible,
#ui-language-select:focus-visible,
.music-field select:focus-visible,
.music-action:focus-visible {
  outline-color: #aaa;
}


/* PROMPT_ONLY_WORKSPACE_SHELL_V1 — no product catalogue or suggestion cards on the chat landing screen. */
.integrated-tools-wrap[hidden],
#integrated-tools[hidden],
#integrated-tools-menu[hidden],
#node-network-pane[hidden] {
  display: none !important;
}

/* Prompt-driven read-only browser missions stay inside the main conversation. */
.browser-agent-chat-card{margin-top:14px;padding:15px;border:1px solid #363636;border-radius:14px;background:linear-gradient(145deg,#141414,#0d0d0d);display:grid;gap:10px;min-width:0;overflow:hidden}
.browser-agent-chat-title{font-size:13px;color:#f0f0f0}
.browser-agent-chat-status{margin:0;color:#d3d3d3;font-size:12px;line-height:1.9}
.browser-agent-chat-objective{margin:0;color:#e5e5e5;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.browser-agent-chat-note{margin:0;color:#999;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.browser-agent-chat-steps{margin:0;padding-inline-start:22px;display:grid;gap:8px}
.browser-agent-chat-steps li{color:#ddd;font-size:12px;line-height:1.8}
.browser-agent-chat-steps small{display:block;direction:ltr;text-align:start;color:#888;font-size:10px;overflow-wrap:anywhere}
.browser-agent-chat-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #292929}
.browser-agent-chat-approve,.browser-agent-chat-cancel{border:1px solid #555;border-radius:9px;padding:8px 12px;background:#202020;color:#eee;font:inherit;font-size:12px;cursor:pointer}
.browser-agent-chat-approve{background:#e5e5e5;color:#111;border-color:#e5e5e5;font-weight:650}
.browser-agent-chat-approve:hover{background:#fff}
.browser-agent-chat-cancel{background:transparent;color:#aaa}
.browser-agent-chat-url,.browser-agent-chat-links a{color:#c5c5c5;font-size:11px;direction:ltr;text-align:left;overflow-wrap:anywhere}
.browser-agent-chat-screenshot{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border:1px solid #303030;border-radius:10px;background:#080808}
.browser-agent-chat-headings{margin:0;padding-inline-start:20px;color:#ddd;font-size:11px;line-height:1.8}
.browser-agent-chat-text{max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#090909;border:1px solid #292929;border-radius:10px;padding:12px;color:#bbb;font:11px/1.9 inherit}
.browser-agent-chat-links{display:grid;gap:6px;padding:8px 0}
@media(max-width:700px){.browser-agent-chat-card{padding:11px}.browser-agent-chat-actions>*{flex:1 1 auto}.browser-agent-chat-steps small{font-size:9px}}


/* Homepage trust seal: centered in the primary welcome surface, not hidden in navigation. */
.enamad-home{justify-content:center;width:max-content;max-width:100%;margin:26px auto 0;padding:14px 18px;border:1px solid #242424;border-radius:14px;background:#080808;gap:14px;text-align:right}
.enamad-home .enamad-trust-link{flex-basis:64px;width:64px;min-height:72px;border-radius:8px}
.enamad-home .enamad-trust-link img{width:64px;max-height:72px}
.enamad-home>span{max-width:210px;color:#aaa;font-size:11px;line-height:1.9}
@media(max-width:600px){.enamad-home{margin-top:20px;padding:10px 12px;gap:10px}.enamad-home .enamad-trust-link{flex-basis:58px;width:58px;min-height:66px}.enamad-home .enamad-trust-link img{width:58px;max-height:66px}.enamad-home>span{max-width:190px;font-size:10px}}

.home-discovery {
  width: min(100%, 700px);
  margin: 24px auto 0;
  border: 1px solid #292929;
  border-radius: 17px;
  background: linear-gradient(145deg, #0d0d0d, #080808 72%);
  text-align: right;
  overflow: hidden;
}
.home-discovery-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  direction: rtl;
  transition: background .16s ease, border-color .16s ease;
}
.home-discovery-summary::-webkit-details-marker { display: none; }
.home-discovery-summary:hover { background: #141414; }
.home-discovery-summary:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: -3px;
}
.home-discovery-mark {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border: 1px solid #373737;
  border-radius: 13px;
  background: #171717;
  color: #e6e6e6;
}
.home-discovery-mark svg { width: 22px; height: 22px; }
.home-discovery-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.home-discovery-copy strong { color: #eee; font-size: 12px; font-weight: 650; }
.home-discovery-copy small { color: #929292; font-size: 10px; line-height: 1.7; }
.home-discovery-action {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #393939;
  border-radius: 9px;
  color: #d6d6d6;
  font-size: 10px;
  white-space: nowrap;
}
.home-discovery-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #999;
  font-size: 18px;
  line-height: 1;
  transition: transform .16s ease;
}
.home-discovery[open] .home-discovery-summary::after { content: "−"; }
.home-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 13px 12px;
}
.home-discovery-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 70px;
  padding: 11px;
  border: 1px solid #292929;
  border-radius: 13px;
  background: #101010;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.home-discovery-card:hover {
  border-color: #4a4a4a;
  background: #171717;
  transform: translateY(-1px);
}
.home-discovery-card:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}
.home-discovery-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: #dedede;
  background: #202020;
}
.home-discovery-card-icon svg { width: 19px; height: 19px; }
.home-discovery-asi { background: #222; color: #e4e4e4; }
.home-discovery-market { background: #242424; color: #d9d9d9; }
.home-discovery-music { background: #252525; color: #ededed; }
.home-discovery-network { background: #202725; color: #d7e2dc; }
.home-discovery-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.home-discovery-card-copy strong {
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 630;
  line-height: 1.55;
}
.home-discovery-card-copy small {
  color: #8d8d8d;
  font-size: 9px;
  line-height: 1.7;
}
.home-discovery-arrow {
  flex: 0 0 auto;
  color: #777;
  font-size: 14px;
  direction: ltr;
}
.home-discovery-note {
  margin: 0;
  padding: 0 15px 12px;
  color: #777;
  font-size: 9px;
  line-height: 1.8;
}
.enamad-home { margin-top: 17px; }
@media (max-width: 700px) {
  .welcome { padding: 14px 0 20px; }
  .welcome-symbol { width: 51px; height: 51px; margin-bottom: 13px; }
  .welcome h1 { font-size: clamp(25px, 7vw, 31px); }
  .welcome-subtitle { max-width: 420px; font-size: 11px; line-height: 1.85; }
  .home-discovery { margin-top: 17px; border-radius: 14px; }
  .home-discovery-summary { min-height: 66px; padding: 10px; gap: 9px; }
  .home-discovery-mark { flex-basis: 34px; width: 34px; height: 34px; border-radius: 11px; }
  .home-discovery-copy strong { font-size: 11px; }
  .home-discovery-copy small { font-size: 9px; }
  .home-discovery-action { padding: 6px 7px; font-size: 9px; }
  .home-discovery-grid { gap: 7px; padding: 0 9px 9px; }
  .home-discovery-card { min-height: 66px; gap: 8px; padding: 9px; }
  .home-discovery-card-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .home-discovery-card-copy strong { font-size: 10px; }
  .home-discovery-card-copy small { font-size: 8px; }
  .home-discovery-note { padding: 0 10px 10px; font-size: 8px; }
  .enamad-home { margin-top: 15px; }
}
@media (max-width: 420px) {
  .home-discovery-grid { grid-template-columns: minmax(0, 1fr); }
  .home-discovery-card { min-height: 58px; }
  .home-discovery-card-copy small { font-size: 9px; }
  .home-discovery-action { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-discovery-summary, .home-discovery-card { transition: none; }
}

html[dir="ltr"] .home-discovery,
html[dir="ltr"] .home-discovery-summary,
html[dir="ltr"] .home-discovery-card {
  direction: ltr;
  text-align: left;
}
html[dir="ltr"] .home-discovery-note { text-align: left; }
html[dir="ltr"] .home-discovery-card-copy { text-align: left; }




/* POSSIBILITY_LAUNCHPAD_V1 — low-friction paths from intent to a verified action. */
.possibility-launchpad{width:min(100%,680px);margin:17px auto 0;text-align:start;direction:rtl}
.possibility-intro{margin:0 auto 12px;text-align:center}
.possibility-lead{margin:0 0 4px;color:#e7e7e7;font-size:13px;font-weight:650;line-height:1.7}
.possibility-description{max-width:560px;margin:0 auto;color:#929292;font-size:11px;line-height:1.85}
.possibility-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.possibility-card{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:10px 12px;border:1px solid #292929;border-radius:13px;background:linear-gradient(145deg,#111 0%,#090909 100%);color:#ededed;text-align:start;direction:rtl;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.possibility-card:hover{background:#171717;border-color:#505050;transform:translateY(-1px)}
.possibility-card:focus-visible{outline:2px solid #b7b7b7;outline-offset:3px}
.possibility-index{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #303030;border-radius:9px;background:#171717;color:#aaa;font-size:10px;font-variant-numeric:tabular-nums}
.possibility-card-copy{display:grid;gap:2px;min-width:0}
.possibility-card-copy strong{color:#e8e8e8;font-size:11.5px;font-weight:650;line-height:1.6}
.possibility-card-copy small{color:#858585;font-size:10px;font-weight:400;line-height:1.55}
.possibility-arrow{margin-inline-start:auto;align-self:center;color:#777;font-size:14px;line-height:1}
.possibility-note{margin:9px auto 0;color:#858585;font-size:10.5px;line-height:1.7;text-align:center}
.possibility-en{display:none!important}
html[data-ui-language="fa"] .possibility-en{display:none!important}
html[data-ui-language="en"] .possibility-en{display:inline!important}
html[data-ui-language="en"] .possibility-fa{display:none!important}
html[dir="ltr"] .possibility-launchpad{direction:ltr}
html[dir="ltr"] .possibility-card{direction:ltr}
@media(max-width:700px){
  .possibility-launchpad{margin-top:12px}
  .possibility-intro{margin-bottom:9px}
  .possibility-lead{font-size:12px}
  .possibility-description{font-size:10px;line-height:1.65}
  .possibility-grid{gap:6px}
  .possibility-card{min-height:58px;padding:8px 9px;gap:7px;border-radius:11px}
  .possibility-index{flex-basis:26px;width:26px;height:26px;border-radius:8px;font-size:9px}
  .possibility-card-copy strong{font-size:10.5px}
  .possibility-card-copy small{font-size:9px}
  .possibility-arrow{font-size:12px}
  .possibility-note{margin-top:7px;font-size:10px}
}
@media(max-width:350px){.possibility-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.possibility-card{transition:none}.possibility-card:hover{transform:none}}




/* SEARCHABLE_SERVICE_DIRECTORY_V1 — verified first-party service destinations. */
.home-discovery-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 26px);
  margin: 0 13px 11px;
}
.home-discovery-search-icon {
  position: absolute;
  inset-inline-start: 12px;
  color: #858585;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.home-discovery-search-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #303030;
  border-radius: 11px;
  outline: none;
  background: #101010;
  color: #eee;
  font: inherit;
  font-size: 11px;
  text-align: start;
  direction: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.home-discovery-search-wrap input::placeholder { color: #777; opacity: 1; }
.home-discovery-search-wrap input:focus {
  border-color: #777;
  background: #141414;
  box-shadow: 0 0 0 2px #ffffff0a;
}
.home-discovery-results {
  margin: -2px 14px 10px;
  color: #aaa;
  font-size: 10px;
  line-height: 1.7;
  text-align: start;
}
.home-discovery-no-result-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin: 0 14px 12px; padding: 9px 12px;
  border: 1px solid #454545; border-radius: 10px; background: #171717;
  color: #e4e4e4; font: inherit; font-size: 10px; line-height: 1.6;
  text-align: center; cursor: pointer;
}
.home-discovery-no-result-action:hover { background: #202020; border-color: #666; }
.home-discovery-no-result-action:focus-visible { outline: 2px solid #aaa; outline-offset: 2px; }
.home-discovery-no-result-action[hidden] { display: none !important; }
html[dir="ltr"] .home-discovery-no-result-action { direction: ltr; }
.home-discovery-directory {
  display: grid;
  gap: 12px;
  padding: 0 13px 12px;
}
.home-discovery-group { min-width: 0; }
.home-discovery-group-title {
  margin: 0 2px 7px;
  color: #898989;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.6;
}
.home-discovery-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.home-discovery-card[hidden] { display: none !important; }
.home-discovery-generic { background: #202020; color: #dedede; }
.home-discovery-card-symbol {
  display: inline-grid;
  place-items: center;
  max-width: 30px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.home-discovery-note { text-align: start; }
html[dir="ltr"] .home-discovery-search-wrap,
html[dir="ltr"] .home-discovery-directory,
html[dir="ltr"] .home-discovery-group-title,
html[dir="ltr"] .home-discovery-results { direction: ltr; text-align: left; }
@media (max-width: 700px) {
  .home-discovery-search-wrap { width: calc(100% - 18px); margin: 0 9px 9px; }
  .home-discovery-search-wrap input { min-height: 40px; font-size: 10px; }
  .home-discovery-no-result-action { width: calc(100% - 18px); margin: 0 9px 10px; }
  .home-discovery-directory { gap: 10px; padding: 0 9px 9px; }
  .home-discovery-cards { gap: 7px; }
  .home-discovery-group-title { margin-bottom: 6px; font-size: 8.5px; }
  .home-discovery-card { min-height: 60px; gap: 7px; padding: 8px; }
  .home-discovery-card-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .home-discovery-card-copy strong { font-size: 9.5px; }
  .home-discovery-card-copy small { font-size: 8px; }
}
@media (max-width: 420px) {
  .home-discovery-cards { grid-template-columns: minmax(0, 1fr); }
  .home-discovery-card { min-height: 54px; }
  .home-discovery-card-copy small { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-discovery-search-wrap input { transition: none; }
}



/* LIVE_CAPABILITY_TRANSPARENCY_V1 — API-backed capability evidence and explicit permission boundaries. */
.verified-capabilities{width:min(100%,680px);margin:9px auto 0;border:1px solid #292929;border-radius:13px;background:#090909;text-align:start;direction:rtl;overflow:hidden}
.verified-capabilities-summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 13px;list-style:none;cursor:pointer;color:#dedede}
.verified-capabilities-summary::-webkit-details-marker{display:none}
.verified-capabilities-summary::after{content:"+";margin-inline-start:auto;color:#999;font-size:16px;line-height:1}
.verified-capabilities[open]>.verified-capabilities-summary::after{content:"−"}
.verified-capabilities-summary:focus-visible{outline:2px solid #aaa;outline-offset:-3px}
.verified-capabilities-copy{display:grid;gap:2px;min-width:0}
.verified-capabilities-copy strong{font-size:11.5px;font-weight:650;line-height:1.6;color:#e7e7e7}
.verified-capabilities-copy small{font-size:9.5px;color:#858585;line-height:1.5}
.verified-capabilities-open{margin-inline-start:auto;white-space:nowrap;font-size:10px;color:#aaa}
.verified-capabilities-body{padding:0 13px 12px}
.verified-capabilities-status{margin:0 0 9px;padding:8px 10px;border:1px solid #252525;border-radius:9px;background:#101010;color:#a7a7a7;font-size:10px;line-height:1.7}
.verified-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.verified-capability-card{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:9px 10px;border:1px solid #262626;border-radius:10px;background:#0d0d0d}
.verified-capability-card-copy{display:grid;gap:3px;min-width:0}
.verified-capability-card-copy strong{font-size:10.5px;font-weight:650;color:#e1e1e1;line-height:1.55}
.verified-capability-card-copy small{font-size:9px;color:#858585;line-height:1.55}
.verified-capability-state{flex:0 0 auto;white-space:nowrap;padding:4px 6px;border:1px solid #333;border-radius:7px;color:#aaa;font-size:8.5px;line-height:1.4}
.verified-capability-card[data-active="true"] .verified-capability-state{border-color:#3b4b40;color:#c1d2c6;background:#131a15}
.verified-capability-boundaries{display:grid;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #242424}
.verified-capability-boundary-heading{display:grid;gap:2px;margin:0}
.verified-capability-boundary-heading strong{font-size:10.5px;color:#ddd}
.verified-capability-boundary-heading small{font-size:9px;color:#777}
.verified-capability-boundary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin:0;padding:0;list-style:none}
.verified-capability-boundary-list li{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;padding:5px 0;border-bottom:1px solid #1e1e1e;color:#aaa;font-size:9px;line-height:1.5}
.verified-capability-boundary-list li>span:first-child{color:#c5c5c5}
.verified-capability-boundary-list [data-boundary-state="off"]{color:#9aa99f}
.verified-capability-boundary-list [data-boundary-state="on"]{color:#d0a7a7}
.verified-capability-boundary-list [data-boundary-state="limited"]{color:#c5b995;white-space:normal;text-align:end}
.verified-capability-auth,.verified-capability-search-note{margin:3px 0 0;color:#858585;font-size:9px;line-height:1.7}
.verified-capabilities [hidden]{display:none!important}
html[dir="ltr"] .verified-capabilities,
html[dir="ltr"] .verified-capabilities-summary{direction:ltr}
html[dir="ltr"] .verified-capabilities-summary{text-align:left}
@media(max-width:700px){
  .verified-capabilities{margin-top:8px;border-radius:11px}
  .verified-capabilities-summary{min-height:44px;padding:8px 10px;gap:7px}
  .verified-capabilities-copy strong{font-size:10.5px}
  .verified-capabilities-copy small{font-size:9px}
  .verified-capabilities-open{font-size:9px}
  .verified-capabilities-body{padding:0 9px 10px}
  .verified-capabilities-status{font-size:9px;padding:7px 8px}
  .verified-capability-grid{gap:6px}
  .verified-capability-card{padding:8px;gap:5px}
  .verified-capability-card-copy strong{font-size:9.5px}
  .verified-capability-card-copy small{font-size:8px}
  .verified-capability-state{padding:3px 4px;font-size:7.5px}
  .verified-capability-boundary-list{grid-template-columns:1fr;gap:2px}
  .verified-capability-boundary-list li{font-size:8.5px}
}
@media(max-width:360px){.verified-capability-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.verified-capabilities-summary{transition:none}}

.local-export-menu{position:relative;display:inline-flex;align-items:center;z-index:8}
.local-export-menu>summary{list-style:none}
.local-export-menu>summary::-webkit-details-marker{display:none}
.local-export-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px;border:1px solid #303030;border-radius:9px;background:#111;color:#d6d6d6;font-size:11px;cursor:pointer;white-space:nowrap}
.local-export-trigger:hover,.local-export-menu[open]>.local-export-trigger{background:#202020;border-color:#555;color:#fff}
.local-export-popover{position:absolute;top:calc(100% + 9px);inset-inline-end:0;width:min(310px,calc(100vw - 28px));display:grid;gap:9px;padding:13px;border:1px solid #383838;border-radius:13px;background:#111;box-shadow:0 16px 45px #000d;z-index:20;text-align:start}
.local-export-popover p,.local-export-popover small{margin:0;color:#999;font-size:10px;line-height:1.8}
.local-export-popover button{width:100%;min-height:39px;padding:9px 11px;border:1px solid #383838;border-radius:9px;background:#1a1a1a;color:#e5e5e5;text-align:start;font-size:11px;cursor:pointer}
.local-export-popover button:hover:not(:disabled){background:#262626;border-color:#666}
.local-export-popover button:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:600px){.local-export-trigger{min-width:36px;padding:7px}.local-export-popover{inset-inline-end:-36px}}

/* Direct keyboard-accessible entry to the public robotics simulator. */
.possibility-card-link{color:inherit;text-decoration:none}
.possibility-card-link:hover{color:#ededed}

/* MISSION_BRIEF_BUILDER_V1 — turn ambitious goals into a user-reviewed execution brief. */
.mission-brief-builder{margin:12px 0 0;border:1px solid #303030;border-radius:14px;background:linear-gradient(145deg,#111 0%,#090909 100%);text-align:start;overflow:hidden;}
.mission-brief-summary{display:flex;align-items:center;gap:11px;min-height:66px;padding:11px 13px;cursor:pointer;list-style:none;}
.mission-brief-summary::-webkit-details-marker{display:none;}
.mission-brief-summary:focus-visible{outline:2px solid #b7b7b7;outline-offset:-3px;border-radius:12px;}
.mission-brief-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #395146;border-radius:10px;background:#15231b;color:#9cdbb2;font-size:17px;}
.mission-brief-summary-copy{display:grid;gap:3px;min-width:0;}
.mission-brief-summary-copy strong{color:#ededed;font-size:11.5px;font-weight:650;line-height:1.6;}
.mission-brief-summary-copy small{color:#888;font-size:9.5px;line-height:1.65;}
.mission-brief-open{margin-inline-start:auto;flex:0 0 auto;padding:6px 10px;border:1px solid #343434;border-radius:9px;color:#bbb;font-size:10px;}
.mission-brief-builder[open] .mission-brief-open{color:#a8d8b9;border-color:#395146;}
.mission-brief-body{padding:0 13px 14px;border-top:1px solid #242424;}
.mission-brief-intro{margin:11px 0;color:#929292;font-size:10px;line-height:1.8;}
.mission-brief-form{display:grid;gap:10px;}
.mission-brief-field{display:grid;gap:6px;min-width:0;color:#c9c9c9;font-size:10px;line-height:1.6;}
.mission-brief-field input,.mission-brief-field textarea{width:100%;min-width:0;border:1px solid #343434;border-radius:9px;background:#080808;color:#f2f2f2;padding:10px 11px;font:inherit;font-size:11px;line-height:1.7;outline:none;}
.mission-brief-field textarea{resize:vertical;min-height:60px;}
.mission-brief-field input:focus,.mission-brief-field textarea:focus{border-color:#777;box-shadow:0 0 0 3px #ffffff0d;}
.mission-brief-field input::placeholder,.mission-brief-field textarea::placeholder{color:#686868;}
.mission-brief-optional-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.mission-brief-submit-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;}
.mission-brief-submit{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:9px 13px;border:1px solid #48634f;border-radius:10px;background:#17241c;color:#d9f1df;font:inherit;font-size:10px;font-weight:650;cursor:pointer;}
.mission-brief-submit:hover{background:#203429;border-color:#6e9b79;}
.mission-brief-submit:focus-visible{outline:2px solid #a9d9b6;outline-offset:3px;}
.mission-brief-start{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:9px 13px;border:1px solid #526d86;border-radius:10px;background:#15212c;color:#dcecff;font:inherit;font-size:10px;font-weight:700;cursor:pointer;}
.mission-brief-start:hover{background:#1d3040;border-color:#7d9fbe;}
.mission-brief-start:focus-visible{outline:2px solid #b7d7f3;outline-offset:3px;}
.mission-brief-start:disabled{opacity:.55;cursor:not-allowed;}
.mission-brief-start[hidden]{display:none;}
.mission-brief-hint{color:#777;font-size:9px;line-height:1.7;}
.mission-brief-status{min-height:1.4em;margin:0;color:#9bcdaa;font-size:10px;line-height:1.7;}
html[dir="ltr"] .mission-brief-builder,html[dir="ltr"] .mission-brief-summary{direction:ltr;text-align:left;}
@media(max-width:560px){.mission-brief-summary{min-height:60px;padding:10px;gap:8px;}.mission-brief-summary-copy strong{font-size:10.5px;}.mission-brief-summary-copy small{font-size:9px;}.mission-brief-optional-grid{grid-template-columns:1fr;gap:8px;}.mission-brief-submit,.mission-brief-start{width:100%;}.mission-brief-submit-row{align-items:stretch;}}
@media(prefers-reduced-motion:reduce){.mission-brief-submit{transition:none;}}

/* LOCAL EXPORT LANGUAGE CONTRACT: exactly one locale at a time. */
.local-export-fa{display:inline!important}
.local-export-en{display:none!important}
html[data-ui-language="fa"] .local-export-fa{display:inline!important}
html[data-ui-language="fa"] .local-export-en{display:none!important}
html[data-ui-language="en"] .local-export-fa{display:none!important}
html[data-ui-language="en"] .local-export-en{display:inline!important}
.local-export-title{display:block;color:#e7e7e7;font-size:11px;font-weight:650;line-height:1.7}
.local-export-trigger:focus-visible,.local-export-popover button:focus-visible{outline:2px solid #b7b7b7;outline-offset:3px}

/* Retry guidance for attachment-selection changes. */
.message-retry-note{margin:8px 0 0;color:#b8b8b8;font-size:12px;line-height:1.65}

/* Scoped response audit: factual limits remain explicit and visually subordinate. */
.message-proof-audit{display:grid;gap:4px;margin:9px 0 2px;padding:8px 10px;border:1px solid #292929;border-radius:9px;background:#101010;text-align:start}
.message-proof-audit-heading{color:#c9c9c9;font-size:10px;font-weight:650;line-height:1.5}
.message-proof-audit-state{justify-self:start;color:#bcbcbc;font-size:9px;line-height:1.55}
.message-proof-audit-state[data-state="warning"]{color:#d5b38a}
.message-proof-audit-state[data-state="partial_or_unavailable"],.message-proof-audit-state[data-state="skipped_partial"]{color:#b8b8b8}
.message-proof-audit-detail,.message-proof-audit-caveat{color:#858585;font-size:9px;line-height:1.65;overflow-wrap:anywhere}
.message-proof-audit-caveat{color:#737373}
html[dir="ltr"] .message-proof-audit{text-align:left}


/* DARKOZA_SOLUTION_PIPELINE_RECEIPT_V1 — concise, truthful request trace. */
.message-solution-pipeline{margin:9px 0 2px;border:1px solid #292929;border-radius:10px;background:#101010;text-align:start;overflow:hidden}
.message-solution-pipeline>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 11px;cursor:pointer;list-style-position:inside}
.message-solution-pipeline>summary:focus-visible{outline:2px solid #9c9c9c;outline-offset:-3px;border-radius:9px}
.message-solution-pipeline-heading{color:#c9c9c9;font-size:10px;font-weight:650;line-height:1.5}
.message-solution-pipeline-quality{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border:1px solid #333;border-radius:999px;color:#bcbcbc;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.message-solution-pipeline-quality[data-state="warning"]{border-color:#594832;color:#d5b38a}
.message-solution-pipeline-quality[data-state="limited"]{border-color:#3a4941;color:#a9c6b4}
.message-solution-pipeline-quality[data-state="unavailable"]{color:#adadad}
.message-solution-pipeline-route{margin:0;padding:0 11px 6px;color:#8d8d8d;font-size:9px;line-height:1.6}
.message-solution-pipeline-stages{display:grid;gap:5px;margin:0;padding:8px 26px 8px 11px;border-top:1px solid #252525;list-style:decimal}
html[dir="ltr"] .message-solution-pipeline-stages{padding:8px 11px 8px 26px}
.message-solution-pipeline-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;color:#bdbdbd;font-size:9px;line-height:1.6}
.message-solution-pipeline-stage-name{min-width:0;overflow-wrap:anywhere}
.message-solution-pipeline-stage-status{color:#969696;text-align:end}
.message-solution-pipeline-stage[data-state="passed"] .message-solution-pipeline-stage-status{color:#a9c6b4}
.message-solution-pipeline-stage[data-state="warning"] .message-solution-pipeline-stage-status{color:#d5b38a}
.message-solution-pipeline-stage[data-state="unavailable"] .message-solution-pipeline-stage-status{color:#aaa}
.message-solution-pipeline-stage-detail{grid-column:1/-1;color:#777;font-size:8.5px;overflow-wrap:anywhere}
.message-solution-pipeline-caveat{display:block;padding:7px 11px;border-top:1px solid #252525;color:#777;font-size:8.5px;line-height:1.7;overflow-wrap:anywhere}
html[dir="ltr"] .message-solution-pipeline{text-align:left}
@media(max-width:520px){.message-solution-pipeline>summary{align-items:flex-start;flex-direction:column;gap:5px}.message-solution-pipeline-quality{white-space:normal}}
/* END DARKOZA_SOLUTION_PIPELINE_RECEIPT_V1 */

/* NONBLOCKING_SEND_QUEUE_V1 — persisted text queue feedback. */
.composer-queue-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;width:min(100%,900px);margin:0 auto 5px;padding:7px 12px;border:1px solid #303030;border-radius:11px;background:#111;color:#bcbcbc;font-size:10px;line-height:1.6;direction:rtl}
.composer-queue-status[hidden]{display:none!important}
.composer-queue-copy{min-width:0}
.composer-queue-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.composer-queue-actions button{min-height:32px;padding:5px 9px;border:1px solid #444;border-radius:8px;background:#1b1b1b;color:#ddd;font:inherit;cursor:pointer}
.composer-queue-actions button:hover{background:#292929;border-color:#666}
.composer-queue-status[data-processing="true"]{border-color:#454545}
html[dir="ltr"] .composer-queue-status{direction:ltr}
@media(max-width:700px){.composer-queue-status{margin-bottom:4px;padding:6px 9px;font-size:9px}.composer-queue-actions{width:100%}.composer-queue-actions button{flex:1}}

/* Request-scoped image attachment preview. */
.attachment-image-preview{display:block;max-width:min(100%,420px);max-height:280px;object-fit:contain;border-radius:10px;margin-block:8px;background:var(--surface-secondary,transparent)}

/* Persistent multilingual response preference: local-model output, no external translation provider. */
.response-language-settings{position:relative;display:flex;align-items:center;flex:0 0 auto}
.response-language-trigger{display:flex;align-items:center;gap:4px;min-height:34px;padding:6px 8px;border:1px solid #303030;border-radius:9px;background:#111;color:#ddd;font-size:11px;cursor:pointer;white-space:nowrap;list-style:none}
.response-language-trigger::-webkit-details-marker{display:none}
.response-language-popover{position:absolute;z-index:1000;inset-inline-end:0;top:calc(100% + 8px);display:grid;gap:8px;width:min(290px,calc(100vw - 24px));padding:12px;border:1px solid #333;border-radius:12px;background:#111;box-shadow:0 12px 36px #000b}
.response-language-popover label{font-size:11px;color:#ddd}
.response-language-popover select,.response-language-popover input{width:100%;min-height:36px;padding:7px 9px;border:1px solid #383838;border-radius:8px;background:#181818;color:#eee;font-size:12px}
.response-language-popover small{font-size:10px;line-height:1.55;color:#aaa}
.response-language-trigger:focus-visible,.response-language-popover select:focus-visible,.response-language-popover input:focus-visible{outline:2px solid #aaa;outline-offset:2px}
@media(max-width:700px){.response-language-trigger{min-height:32px;padding:5px 6px;font-size:10px}.response-language-popover{inset-inline-end:-40px}}

/* International locale selector remains compact while exposing the complete language catalogue. */
#ui-language-select{width:96px}
@media(max-width:700px){#ui-language-select{width:84px}}


/* Guest-first value preview: show useful, clearly-labeled examples before the account gate. */
.first-value-preview{margin:14px auto 16px;padding:14px 15px;width:min(100%,680px);border:1px solid #303030;border-radius:15px;background:#0c0c0c;text-align:start;direction:rtl}
.first-value-preview-heading{text-align:center;margin:0 auto 10px}
.first-value-kicker{display:inline-block;margin-bottom:5px;color:#c7c7c7;font-size:9px;letter-spacing:.06em}
.first-value-preview-heading h2{margin:0 0 4px;color:#f0f0f0;font-size:14px;font-weight:650;line-height:1.55}
.first-value-preview-heading p{max-width:560px;margin:0 auto;color:#929292;font-size:10px;line-height:1.7}
.first-value-examples{display:grid;gap:6px}
.first-value-example{border:1px solid #292929;border-radius:10px;background:#090909;overflow:hidden}
.first-value-example>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 11px;cursor:pointer;list-style:none}
.first-value-example>summary::-webkit-details-marker{display:none}
.first-value-example>summary:focus-visible,.first-value-use:focus-visible{outline:2px solid #b7b7b7;outline-offset:2px}
.first-value-example-copy{display:grid;gap:2px;min-width:0}
.first-value-example-copy strong{color:#e6e6e6;font-size:10.5px;font-weight:600;line-height:1.55}
.first-value-example-copy small{color:#838383;font-size:9px;line-height:1.5}
.first-value-chevron{color:#888;font-size:14px;transition:transform .15s ease}
.first-value-example[open] .first-value-chevron{transform:rotate(180deg)}
.first-value-answer{padding:0 12px 11px;color:#c5c5c5;font-size:10px;line-height:1.75}
.first-value-answer ol{margin:1px 0 7px;padding-inline-start:20px}
.first-value-answer li{padding-inline-start:2px;margin:2px 0}
.first-value-metric{margin:6px 0 8px;padding:7px 8px;border-radius:7px;background:#141414;color:#bdbdbd;font-size:9px;line-height:1.7}
.first-value-email{padding:7px 9px;margin:1px 0 8px;border-inline-start:2px solid #555;background:#111;border-radius:5px}
.first-value-email p{margin:2px 0}
.first-value-use{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border:1px solid #464646;border-radius:8px;background:#171717;color:#eee;font:inherit;font-size:9px;cursor:pointer}
.first-value-use:hover{background:#222;border-color:#666}
.first-value-disclosure{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;margin:10px auto 0;color:#888;font-size:9px;line-height:1.7;text-align:center}
.first-value-disclosure a{color:#eee;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
html[dir="ltr"] .first-value-preview{direction:ltr}
html[lang^="en"] .first-value-disclosure{direction:ltr}
@media(max-width:700px){.first-value-preview{margin:10px auto 12px;padding:11px 10px;border-radius:12px}.first-value-preview-heading h2{font-size:13px}.first-value-example>summary{padding:8px 9px}.first-value-answer{font-size:9.5px}.first-value-disclosure{font-size:8.5px}}

/* NEVARA: make the real-chat and paid-service boundary visible before illustrative samples. */
.first-value-entry{width:min(100%,680px);margin:12px auto 12px;padding:11px 13px;border:1px solid #343434;border-radius:12px;background:#0b0b0b;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;text-align:start;color:#c8c8c8;font-size:11px;line-height:1.75}
.first-value-entry .first-value-entry-copy{flex:1 1 320px;margin:0;color:inherit}
.first-value-entry-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;flex-wrap:wrap}
.first-value-entry-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 11px;border:1px solid #484848;border-radius:8px;text-decoration:none!important;font-size:10px;font-weight:650;white-space:nowrap}
.first-value-entry-actions .first-value-entry-primary{background:#eee;border-color:#eee;color:#111!important}
.first-value-entry-actions .first-value-entry-secondary{color:#eee!important;background:#111}
.first-value-entry-actions a:focus-visible{outline:2px solid #fff;outline-offset:3px}
html[dir="ltr"] .first-value-entry{direction:ltr}
@media(max-width:700px){.first-value-entry{justify-content:center;padding:10px;text-align:center;font-size:10px}.first-value-entry .first-value-entry-copy{flex-basis:100%}.first-value-entry-actions{width:100%;justify-content:center}.first-value-entry-actions a{min-height:36px}}

/* Participation entry: compact, visible, bilingual and keyboard-accessible. */
.participate-top-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 9px;border:1px solid #454545;border-radius:9px;background:#111;color:#e8e8e8;text-decoration:none;font-size:11px;white-space:nowrap;flex:0 0 auto}
.participate-top-link:hover{border-color:#888;background:#1a1a1a}
.participate-top-link:focus-visible{outline:2px solid #aaa;outline-offset:2px}
@media(max-width:700px){.participate-top-link{min-height:30px;padding:4px 6px;font-size:10px}}

/* DARKOZA_I18N_READINESS_V1 — compact, evidence-bound locale coverage. */
.ui-language-wrap{gap:4px;max-width:none}
.ui-language-readiness{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  min-width:29px;min-height:25px;padding:2px 5px;
  border:1px solid #343434;border-radius:999px;background:#141414;
  color:#b8b8b8;font-size:9px;line-height:1;font-variant-numeric:tabular-nums;
  white-space:nowrap;cursor:help
}
.ui-language-readiness[hidden]{display:none!important}
.ui-language-readiness[data-state="complete"]{border-color:#3a493e;color:#b9c9bd}
.ui-language-readiness[data-state="pending"],
.ui-language-readiness[data-state="unknown"]{color:#999}
@media(max-width:700px){
  .ui-language-wrap{max-width:none}
  #ui-language-select{width:64px}
  .ui-language-readiness{min-width:26px;min-height:24px;padding:2px 3px;font-size:8px}
}


/* DARKOZA_MOBILE_TOUCH_PRECISION_V1 — predictable 44px touch targets without layout expansion. */
@media(max-width:700px){
  .participate-top-link,.local-export-trigger,.response-language-trigger{min-height:44px}
  .participate-top-link{min-width:44px}
  .first-value-use{min-height:44px;padding-block:10px}
  .first-value-entry-actions a{min-height:44px;padding-block:10px}
  .mission-brief-submit,.mission-brief-start{min-height:44px}
  .local-export-popover button{min-height:44px}
  .response-language-popover select,.response-language-popover input{min-height:44px}
  .composer-icon-button,.send-button{flex-basis:44px;width:44px;height:44px}
}
/* END DARKOZA_MOBILE_TOUCH_PRECISION_V1 */
/* DARKOZA_PREMIUM_GLOBAL_UX_V1
   Visual-only product polish: hierarchy, contrast, surfaces, responsive spacing,
   keyboard focus, readable content and tactile controls. No interaction logic changed.
*/
:root {
  color-scheme: dark;
  --bg: #080a11;
  --sidebar: #0c0f18;
  --panel: #111622;
  --panel-raised: #171d2b;
  --panel-hover: #1d2535;
  --border: rgba(179, 190, 219, .14);
  --border-strong: rgba(188, 171, 255, .34);
  --text: #f4f5fb;
  --text-soft: #d3d8e6;
  --muted: #9aa3b6;
  --muted-soft: #7d879c;
  --accent: #b7a3ff;
  --accent-strong: #9b83ff;
  --accent-cool: #8bd9d0;
  --radius: 18px;
  --shadow-soft: 0 18px 56px rgba(0, 0, 0, .28);
}
html, body { background: var(--bg); color: var(--text); }
body {
  background:
    radial-gradient(ellipse at 68% 7%, rgba(108, 91, 190, .12), transparent 34rem),
    radial-gradient(ellipse at 8% 84%, rgba(42, 133, 139, .07), transparent 32rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: rgba(147, 122, 255, .42); }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a { text-underline-offset: 3px; }
.app-shell { background: transparent; }
.sidebar {
  background: linear-gradient(180deg, rgba(15, 19, 30, .98), rgba(10, 13, 21, .98));
  border-right-color: var(--border);
  box-shadow: 12px 0 40px rgba(0, 0, 0, .08);
  padding-top: 17px;
}
.sidebar-brand-row { min-height: 42px; }
.brand { gap: 11px; color: #f5f2ff; letter-spacing: -.025em; }
.brand-mark {
  width: 32px; height: 32px; border: 1px solid rgba(183, 163, 255, .28);
  border-radius: 11px; background: linear-gradient(145deg, rgba(154, 131, 255, .2), rgba(84, 193, 184, .08));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 7px 22px rgba(99, 78, 196, .12);
}
.brand-mark svg { width: 22px; height: 22px; }
.icon-button { border: 1px solid transparent; }
.icon-button:hover { border-color: var(--border); background: rgba(255,255,255,.055); color: #fff; }
.sidebar-actions { gap: 7px; }
.side-action {
  min-height: 44px; border: 1px solid transparent; border-radius: 12px;
  color: var(--text-soft); transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.side-action:hover, .project-placeholder:hover, .recent-item:hover {
  background: rgba(255,255,255,.055); color: #fff;
}
.primary-action {
  border-color: rgba(183, 163, 255, .24);
  background: linear-gradient(135deg, rgba(139, 115, 245, .17), rgba(58, 112, 132, .1));
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.primary-action:hover {
  border-color: rgba(183, 163, 255, .44);
  background: linear-gradient(135deg, rgba(139, 115, 245, .24), rgba(58, 112, 132, .14));
}
.section-heading { color: #aab2c5; font-size: 11px; letter-spacing: .015em; }
.project-placeholder { min-height: 40px; border-radius: 10px; color: #9ca5b8; }
.project-dot { border-color: #9b8ad7; }
.recent-item { min-height: 39px; border-radius: 10px; color: #c1c8d7; }
.recent-item.active {
  background: linear-gradient(100deg, rgba(151, 129, 255, .16), rgba(151, 129, 255, .055));
  box-shadow: inset -2px 0 0 rgba(183, 163, 255, .75);
  color: #fff;
}
.recent-item .recent-time { color: var(--muted-soft); }
.empty-recents { color: var(--muted-soft); }
.sidebar-footer { border-top-color: var(--border); }
.account-link { border-radius: 12px; }
.account-link:hover, .footer-link:hover { background: rgba(255,255,255,.055); }
.user-avatar {
  background: linear-gradient(145deg, #826ed1, #3e7481);
  box-shadow: 0 5px 16px rgba(91, 77, 165, .22);
}
.account-copy small, .footer-link { color: var(--muted); }
.main-area {
  background:
    radial-gradient(ellipse at 52% 6%, rgba(112, 96, 191, .105), transparent 38rem),
    linear-gradient(180deg, #0b0e17, #080a11 72%);
}
.topbar {
  height: 66px; flex-basis: 66px; padding-inline: clamp(14px, 2.2vw, 30px);
  background: rgba(9, 12, 20, .78);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.engine-identity { padding: 8px 10px; }
.model-name { font-size: 16px; font-weight: 720; letter-spacing: -.035em; color: #f5f2ff; }
.engine-status { color: var(--muted); font-size: 11px; }
.engine-status.ready { color: #a4d8c8; }
.status-dot { box-shadow: 0 0 0 4px rgba(183, 163, 255, .1); }
.engine-status.ready .status-dot { background: #79d3b0; box-shadow: 0 0 0 4px rgba(121, 211, 176, .11); }
.upgrade-link {
  min-height: 42px; border: 1px solid rgba(147, 166, 255, .24);
  border-radius: 12px; background: linear-gradient(135deg, #6554b4, #345d79);
  box-shadow: 0 7px 24px rgba(89, 72, 173, .18);
}
.upgrade-link:hover { background: linear-gradient(135deg, #7865ca, #3c6b89); }
.participate-top-link {
  min-height: 40px; padding-inline: 12px; border-color: var(--border);
  border-radius: 11px; background: rgba(255,255,255,.035); color: var(--text-soft);
}
.participate-top-link:hover { border-color: var(--border-strong); background: rgba(183,163,255,.085); }
.mobile-menu { border-radius: 11px; }
.chat-stage {
  scrollbar-color: #343d55 transparent;
  padding-inline: clamp(14px, 3vw, 36px);
}
.welcome {
  width: min(100%, 850px); padding: 36px 0 42px;
}
.welcome-symbol {
  position: relative; isolation: isolate;
  width: 58px; height: 58px; margin-bottom: 23px;
  border: 1px solid rgba(183, 163, 255, .34); border-radius: 19px;
  background: linear-gradient(145deg, rgba(160, 140, 255, .22), rgba(73, 156, 162, .12));
  color: #ece6ff;
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 12px 34px rgba(102, 83, 192, .18);
}
.welcome-symbol::before {
  content: ""; position: absolute; z-index: -1; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 128, 255, .19), transparent 68%);
}
.welcome-symbol svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 8px rgba(183,163,255,.28)); }
.eyebrow {
  margin-bottom: 12px; color: #b2a7dc; font-size: 11px; font-weight: 650;
  letter-spacing: .11em; text-transform: uppercase;
}
.welcome h1 {
  margin-bottom: 14px; color: #fbfaff;
  font-size: clamp(30px, 3.4vw, 43px); line-height: 1.42; font-weight: 720;
  letter-spacing: -.045em; text-wrap: balance;
}
html:lang(fa) .welcome h1, html:lang(ar) .welcome h1 { letter-spacing: 0; }
.mission-strapline {
  margin: 0 auto 13px; color: #aaa1d2;
  font-size: clamp(9px, 1.05vw, 11px); line-height: 1.8;
  letter-spacing: .17em; font-weight: 650; opacity: .9;
}
.welcome-subtitle {
  max-width: 580px; color: #a9b1c2; font-size: 13px; line-height: 2;
  text-wrap: pretty;
}
.possibility-launchpad {
  width: min(100%, 760px); margin: 24px auto 0; padding: clamp(15px, 2.3vw, 24px);
  border: 1px solid rgba(170, 160, 220, .16); border-radius: 24px;
  background: linear-gradient(145deg, rgba(22, 27, 42, .88), rgba(12, 16, 25, .92));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255,255,255,.035);
  text-align: start; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.possibility-intro { margin-bottom: 17px; }
.possibility-lead { color: #f1edff; font-size: 16px; font-weight: 720; line-height: 1.7; }
.possibility-description { max-width: 570px; margin: 5px auto 0; color: #a4aec1; font-size: 12px; line-height: 1.9; }
.first-value-preview {
  width: 100%; margin: 0 auto 14px; padding: 17px;
  border: 1px solid rgba(183, 163, 255, .17); border-radius: 18px;
  background: linear-gradient(145deg, rgba(28, 31, 49, .72), rgba(15, 19, 29, .72));
}
.first-value-preview-heading { margin-bottom: 13px; }
.first-value-kicker { color: var(--accent); letter-spacing: .09em; font-size: 9px; font-weight: 700; }
.first-value-preview-heading h2 { color: #f2efff; font-size: 15px; line-height: 1.65; }
.first-value-preview-heading p { color: #a5aec0; font-size: 10px; line-height: 1.85; }
.first-value-entry, .first-value-disclosure { color: #a8b2c5; line-height: 1.85; }
.first-value-entry {
  border: 1px solid rgba(139, 217, 208, .15); border-radius: 13px;
  background: rgba(70, 145, 137, .07); padding: 12px 14px;
}
.first-value-example {
  border-color: rgba(178, 188, 214, .15); border-radius: 12px;
  background: rgba(7, 10, 17, .58);
}
.first-value-example > summary { min-height: 48px; padding: 10px 13px; }
.first-value-example > summary:hover { background: rgba(183, 163, 255, .06); }
.first-value-example-copy strong { color: #e8e7f2; font-size: 11px; }
.first-value-example-copy small { color: #9aa5bb; }
.first-value-chevron { color: var(--accent); }
.first-value-use {
  min-height: 44px; border: 1px solid rgba(183, 163, 255, .2);
  border-radius: 10px; background: rgba(132, 111, 220, .12);
  color: #e3dcff; padding: 9px 13px; font-weight: 650;
}
.first-value-use:hover { border-color: rgba(183, 163, 255, .42); background: rgba(132, 111, 220, .2); }
.first-value-entry-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 11px; padding: 9px 14px;
}
.possibility-cards { gap: 9px; }
.possibility-card {
  min-height: 72px; padding: 13px 15px; border-color: rgba(173, 184, 213, .15);
  border-radius: 15px; background: linear-gradient(145deg, rgba(31, 36, 54, .82), rgba(17, 21, 32, .9));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.possibility-card:hover {
  transform: translateY(-2px); border-color: rgba(183, 163, 255, .42);
  background: linear-gradient(145deg, rgba(47, 43, 76, .9), rgba(19, 29, 42, .95));
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.possibility-card-copy strong { color: #f0effa; font-size: 12px; }
.possibility-card-copy small { color: #a3adc0; font-size: 10.5px; }
.verified-capabilities, .home-discovery, .mission-brief-builder {
  border-color: rgba(173, 184, 213, .16); border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 24, 37, .9), rgba(12, 16, 25, .94));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.verified-capabilities-summary, .home-discovery-summary { min-height: 54px; }
.verified-capabilities-summary:hover, .home-discovery-summary:hover { background: rgba(183, 163, 255, .055); }
.verified-capabilities-copy strong, .home-discovery-copy strong { color: #eeeaff; }
.verified-capabilities-copy small, .home-discovery-copy small { color: #a0a9bb; }
.verified-capabilities-status, .home-discovery-search-wrap input {
  border-color: var(--border); border-radius: 11px; background: rgba(5, 8, 15, .55);
}
.home-discovery-card {
  border-color: rgba(173,184,213,.14); border-radius: 13px;
  background: rgba(255,255,255,.028);
}
.home-discovery-card:hover {
  border-color: rgba(183,163,255,.36); background: rgba(183,163,255,.075);
  transform: translateY(-1px);
}
.home-discovery-card-copy strong { color: #eeeff8; }
.home-discovery-card-copy small, .home-discovery-note { color: #9ca7ba; }
.public-offer {
  border-color: rgba(183, 163, 255, .23); border-radius: 18px;
  background: linear-gradient(145deg, rgba(38, 31, 61, .65), rgba(14, 18, 28, .94));
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
}
.public-offer-kicker, .public-offer-period { color: #c3b4ff; }
.public-offer h2 { color: #f4f0ff; }
.public-offer > p { color: #b0b7c8; }
.public-offer-price { border-color: var(--border); border-radius: 12px; background: rgba(5,8,15,.55); }
.public-offer-price strong { color: #d9fffa; }
.public-offer-links a { color: #c7b9ff; }
.public-offer .public-offer-note { border-top-color: var(--border); color: #9aa4b6; }
.mission-brief-builder { margin-top: 15px; }
.mission-brief-builder > summary { min-height: 54px; }
.mission-brief-builder textarea, .mission-brief-builder input,
.response-language-popover select, .response-language-popover input,
.home-discovery-search-wrap input {
  border-color: var(--border); border-radius: 11px; background: rgba(5,8,15,.62); color: var(--text);
}
.mission-brief-submit, .mission-brief-start {
  min-height: 46px; border: 1px solid rgba(183,163,255,.3); border-radius: 12px;
  background: linear-gradient(135deg, #6655b7, #345d78); color: #fff;
  box-shadow: 0 8px 22px rgba(85,71,164,.16);
}
.mission-brief-submit:hover, .mission-brief-start:hover { filter: brightness(1.12); }
.seo-content { border-top-color: var(--border); color: #9da7bb; line-height: 2; }
.seo-content h2, .seo-content h3 { color: #e7e5f2; }
.seo-links a { color: #c1b2ff; border-bottom-color: rgba(183,163,255,.3); }
.enamad-trust { border-top-color: var(--border); }
.enamad-trust > span { color: #a0a9bb; }
.message-list { width: min(100%, 820px); gap: 28px; }
.message { grid-template-columns: 36px minmax(0,1fr); gap: 14px; }
.message-avatar { width: 34px; height: 34px; }
.message.user .message-avatar { background: linear-gradient(145deg,#5b68b9,#3f7886); }
.message.assistant .message-avatar {
  border-color: rgba(183,163,255,.22);
  background: linear-gradient(145deg,rgba(132,111,220,.2),rgba(67,140,146,.1));
  color: #ece6ff;
}
.message-label strong { color: #f0eff8; }
.message-label span { color: var(--muted-soft); }
.message-text { color: #e7e9f2; font-size: 14px; line-height: 2.05; }
.message.user .message-text {
  border-color: rgba(160, 151, 220, .18); border-radius: 17px 17px 5px 17px;
  background: linear-gradient(145deg, rgba(55, 58, 91, .54), rgba(27, 36, 52, .72));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.message.assistant .message-text { color: #e4e6f0; }
.message.error .message-text { color: #ffc0c6; }
.speech-button {
  min-height: 44px; border-color: var(--border); border-radius: 12px;
  background: rgba(255,255,255,.04); color: #c8cfe0;
}
.speech-button:hover, .speech-button.speaking {
  border-color: var(--border-strong); background: rgba(183,163,255,.1); color: #fff;
}
.composer-region {
  padding: 14px clamp(12px, 3vw, 32px) max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8,10,17,.92) 23%);
}
.composer {
  min-height: 68px; gap: 8px; padding: 10px 12px;
  border: 1px solid rgba(183, 163, 255, .22); border-radius: 23px;
  background: linear-gradient(145deg, rgba(27, 32, 48, .98), rgba(17, 22, 34, .98));
  box-shadow: 0 16px 48px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.045);
}
.composer:focus-within {
  border-color: rgba(183,163,255,.58);
  box-shadow: 0 0 0 3px rgba(151,129,255,.09), 0 18px 52px rgba(0,0,0,.42);
}
.composer textarea { min-height: 44px; color: #f5f4fb; font-size: 14px; line-height: 1.8; }
.composer textarea::placeholder { color: #9da6b9; }
.composer-icon-button, .send-button {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
}
.composer-icon-button { color: #b9c3d6; }
.composer-icon-button:hover { background: rgba(183,163,255,.12); color: #fff; }
.send-button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px; background: linear-gradient(145deg, #c2b1ff, #8bdbd1);
  color: #141626; box-shadow: 0 5px 18px rgba(147,126,244,.24);
}
.send-button:hover { background: linear-gradient(145deg, #d2c6ff, #a4eee4); transform: translateY(-1px); }
.send-button:disabled { border-color: transparent; background: #394052; color: #8b94a7; box-shadow: none; }
.voice-button.listening {
  background: rgba(198, 76, 96, .18); color: #ffb8c2;
  box-shadow: 0 0 0 3px rgba(198,76,96,.1);
}
.composer-auth-note { color: #9da8bc; }
.composer-queue-status { color: #b9c7dc; }
.toast {
  border-color: rgba(183,163,255,.24); border-radius: 14px;
  background: rgba(22,27,42,.96); color: #f2efff; box-shadow: 0 18px 52px rgba(0,0,0,.48);
  backdrop-filter: blur(16px);
}
.response-language-trigger, .local-export-trigger {
  min-height: 40px; border-color: var(--border); border-radius: 11px;
  background: rgba(255,255,255,.035); color: #d6d9e7;
}
.response-language-trigger:hover, .local-export-trigger:hover,
.response-language-settings[open] .response-language-trigger,
.local-export-menu[open] .local-export-trigger {
  border-color: var(--border-strong); background: rgba(183,163,255,.09);
}
.response-language-popover, .local-export-popover, .integrated-tools-menu {
  border-color: rgba(183,163,255,.2); border-radius: 15px;
  background: rgba(15,19,30,.98); box-shadow: 0 20px 60px rgba(0,0,0,.52);
  backdrop-filter: blur(18px);
}
.response-language-popover label, .response-language-popover small,
.local-export-popover p, .local-export-popover small { color: #a5afc2; }
.response-language-popover select, .response-language-popover input,
.home-discovery-search-wrap input, .integrated-tools-search { min-height: 44px; }
.response-language-popover select:focus, .response-language-popover input:focus,
.home-discovery-search-wrap input:focus { border-color: var(--border-strong); }
.local-export-popover button {
  min-height: 44px; border-color: var(--border); border-radius: 10px;
  background: rgba(255,255,255,.045); color: #e4e7f2;
}
.local-export-popover button:hover:not(:disabled) { border-color: var(--border-strong); background: rgba(183,163,255,.1); }
.integrated-tools-launcher, .integrated-close {
  min-height: 40px; border-color: var(--border); border-radius: 11px;
  background: rgba(255,255,255,.04); color: #e4e6f1;
}
.integrated-tools-launcher:hover, .integrated-close:hover { border-color: var(--border-strong); background: rgba(183,163,255,.09); }
.integrated-workspace { background: #090c14; }
.integrated-workspace-header { border-bottom-color: var(--border); background: #0d111c; }
.integrated-frame { background: #0b0f18; }
.music-studio-pane { background: #0b0f18; }
.sidebar-backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(5px); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: rgba(137,148,177,.32); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(183,163,255,.48); background-clip: padding-box; }
@media (max-width: 900px) {
  .sidebar { flex-basis: 286px; width: 286px; }
  .welcome { width: min(100%, 790px); }
  .topbar { gap: 10px; }
}
@media (max-width: 700px) {
  .sidebar {
    background: linear-gradient(180deg, #111626, #0b0f19);
    border-right: 1px solid var(--border-strong);
    box-shadow: 22px 0 60px rgba(0,0,0,.48);
  }
  .topbar { height: 58px; flex-basis: 58px; padding-inline: 9px; gap: 5px; }
  .topbar-leading, .topbar-actions { gap: 5px; }
  .engine-identity { padding: 6px; }
  .model-name { font-size: 14px; }
  .participate-top-link { min-height: 44px; padding-inline: 9px; font-size: 10px; }
  .upgrade-link { min-height: 44px; padding: 8px 10px; border-radius: 11px; }
  .chat-stage { padding: 0 12px 12px; }
  .welcome { width: 100%; padding: 23px 0 30px; }
  .welcome-symbol { width: 54px; height: 54px; margin-bottom: 19px; }
  .welcome h1 { font-size: clamp(25px, 7vw, 31px); line-height: 1.5; margin-bottom: 10px; }
  .mission-strapline { max-width: 95%; font-size: 8px; letter-spacing: .1em; }
  .welcome-subtitle { max-width: 440px; font-size: 12px; line-height: 1.95; }
  .possibility-launchpad { margin-top: 19px; padding: 13px; border-radius: 20px; }
  .possibility-lead { font-size: 14px; }
  .possibility-description { font-size: 11px; }
  .first-value-preview { padding: 12px; border-radius: 15px; }
  .first-value-preview-heading h2 { font-size: 13px; }
  .first-value-entry { padding: 10px; }
  .first-value-example > summary { min-height: 48px; padding: 9px 10px; }
  .possibility-card { min-height: 66px; padding: 11px; }
  .verified-capabilities, .home-discovery, .mission-brief-builder { border-radius: 14px; }
  .message-list { padding: 23px 0 25px; gap: 22px; }
  .message { grid-template-columns: 30px minmax(0,1fr); gap: 9px; }
  .message-avatar { width: 29px; height: 29px; }
  .message-text { font-size: 13px; line-height: 2; }
  .composer-region { padding: 9px 10px max(12px, env(safe-area-inset-bottom)); }
  .composer { min-height: 64px; padding: 8px; gap: 4px; border-radius: 21px; }
  .composer textarea { min-height: 44px; font-size: 13px; padding: 8px 2px 5px; }
  .composer-icon-button, .send-button { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .speech-button { min-height: 44px; }
  .public-offer { border-radius: 15px; }
  .seo-content { padding-inline: 2px; }
  .integrated-tools-launcher { min-height: 44px; padding-inline: 9px; }
  .integrated-workspace-header { height: 52px; flex-basis: 52px; }
}
@media (max-width: 380px) {
  .topbar-actions { gap: 4px; }
  .participate-top-link { padding-inline: 7px; }
  .composer-region { padding-inline: 7px; }
  .composer { padding: 6px; gap: 2px; }
  .composer-icon-button, .send-button { flex-basis: 44px; width: 44px; height: 44px; }
  .possibility-launchpad { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* DARKOZA_KEYBOARD_SKIP_TO_CHAT_V1 — keyboard users can bypass long discovery content. */
.skip-to-chat {
  position: fixed;
  z-index: 120;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(183, 163, 255, .52);
  border-radius: 12px;
  background: linear-gradient(135deg, #6655b7, #345d78);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .42);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-100% - 18px));
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.skip-to-chat:focus,
.skip-to-chat:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  outline: 2px solid #e8e0ff;
  outline-offset: 3px;
}
#message-input { scroll-margin-block: 24px; }
@media (prefers-reduced-motion: reduce) {
  .skip-to-chat { transition: none; }
}
/* END DARKOZA_KEYBOARD_SKIP_TO_CHAT_V1 */


.secret-shield-button{color:#c6d9ce!important}.secret-shield-button:hover{background:rgba(111,190,145,.13)!important;color:#e3fff0!important}
.secret-shield-button:focus-visible{outline:2px solid #9ed5b5;outline-offset:3px}
.secret-shield-disclosure{width:min(100%,900px);margin:4px auto 0;padding:0 12px;color:#8f9b9a;font-size:10px;line-height:1.55;text-align:center;direction:rtl}
.secret-shield-panel{width:min(100%,900px);margin:0 auto 7px;padding:10px 13px;border:1px solid #725a34;border-radius:12px;background:#17140f;color:#eee0c8;font-size:11px;line-height:1.7;direction:rtl}
.secret-shield-panel[hidden]{display:none!important}.secret-shield-panel[data-severity="neutral"]{border-color:#394b43;background:#121916;color:#d0e4d8}
.secret-shield-panel p{margin:0 0 7px}.secret-shield-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.secret-shield-actions button{min-height:34px;padding:6px 11px;border:1px solid #665637;border-radius:9px;background:#211c13;color:#f5e8d0;font:inherit;cursor:pointer}
.secret-shield-actions button:hover{background:#302717;border-color:#967a49}.secret-shield-actions button[hidden]{display:none!important}
.secret-shield-panel[data-severity="neutral"] .secret-shield-actions button{border-color:#40584b;background:#17231c;color:#d9f0e2}
.secret-shield-panel button:focus-visible{outline:2px solid #d5bd85;outline-offset:2px}
html[data-ui-language="en"] .secret-shield-disclosure{direction:ltr}
