/* RevCore-style shell for the whole app. Dark rules first, then light overrides (html.theme-light, the default). */
@font-face{font-family:'Plus Jakarta Sans';src:url('/static/fonts/PlusJakartaSans-latin.woff2') format('woff2');font-weight:400 800;font-style:normal;font-display:swap}
body,button,input,select,textarea{font-family:'Plus Jakarta Sans','Segoe UI',system-ui,sans-serif}
.rcShell .topbar{height:72px;padding:0 28px;background:#100f18;border-bottom:1px solid #221f30;gap:14px}
.rcShell .searchBox{flex:0 1 320px;height:42px;border-radius:10px;background:#161421;border:1px solid #2a2638}
.rcShell .headerRight{gap:10px}
.iconBox{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;border:1px solid #2a2638;background:#161421;color:#e8e6f3;position:relative}
.iconBox:hover{border-color:#4a4466}
.iconBox svg{width:18px;height:18px}
.rcShell .creditPill{height:40px;border-radius:10px}
.rcShell .languagebutton{height:40px;padding:0 12px;border-radius:10px;font-size:12.5px;font-weight:600}
.rcShell .account{border-left:0;padding:0 4px;gap:10px}
.avatarWrap{position:relative;display:inline-flex}
.rcShell .account .avatar{width:38px;height:38px;font-size:12px}
.onlineDot{position:absolute;top:0;right:-1px;width:10px;height:10px;border-radius:50%;background:#2fbf71;border:2px solid #100f18}
.rcShell .accountName small{font-size:10.5px;color:#8a86a3}
.rcShell .accountName b{font-size:14.5px;font-weight:700;color:#f2f2fa}
.rcShell .bellBadge{top:-4px;right:-4px}
.rcShell .workspace{background:#0b0a12}
/* Light (default) */
.theme-light .rcShell .topbar{background:#fff;border-bottom-color:#eef0f3}
.theme-light .rcShell .searchBox{background:#fff;border-color:#e3e5ea}
.theme-light .iconBox{background:#fff;border-color:#e3e5ea;color:#1c2230}
.theme-light .iconBox:hover{border-color:#c9cdd6}
.theme-light .onlineDot{border-color:#fff}
.theme-light .rcShell .accountName small{color:#8a8f9c}
.theme-light .rcShell .accountName b{color:#1c2230}
.theme-light .rcShell .workspace{background:#f4f5f7}
.theme-light .primary{background:linear-gradient(180deg,#2b3244,#1c2230);box-shadow:0 6px 16px #1c223033;color:#fff}
.theme-light .primary:hover{filter:brightness(1.15)}
@media(max-width:900px){.app.rcShell{display:block}.rcShell .topbar{padding:0 14px}.rcShell .accountName{display:none}}
@media(max-width:600px){.rcShell .languagebutton{padding:0 8px}.iconBox{width:36px;height:36px}}
/* Admin panel additions */
.rcDonut svg{width:150px;height:150px}
.rcDonut .dPct{font-size:9.5px;font-weight:700;fill:#fff;stroke:none}
.rcLine .vgrid{stroke:var(--rc-track);stroke-dasharray:3 5}
.rcMap{width:100%;height:auto;display:block;margin:2px 0 6px}
.rcMap .land{fill:var(--rc-track);stroke:none}
.theme-light .rcMap .land{fill:#dfe3ea}
.rcMap text{stroke:none}
.rcMap .mapTip1{font-size:9px;fill:var(--rc-sub)}
.rcMap .mapTip2{font-size:10px;font-weight:700;fill:var(--rc-text)}
.rcMap .bubbleBg{fill:var(--rc-card)}
.rcSubhead{font-size:14px;font-weight:650;margin:14px 0 10px;color:var(--rc-text)}
.rcMini{height:30px;border:1px solid var(--rc-input);border-radius:8px;background:var(--rc-card);color:var(--rc-text);font-size:12px;padding:0 8px;cursor:pointer}
.rcBig .rcDelta{font-size:13px;letter-spacing:0;margin-left:4px}
.rcDelta svg{width:14px;height:14px;vertical-align:-2px;margin-left:3px;stroke:currentColor;fill:none}
.rcLabelTop{display:block;font-size:12.5px;color:var(--rc-sub);margin-bottom:8px}
.rcPayRow{display:flex;align-items:center;gap:10px;margin-top:6px}
.rcPayRow b{margin:0}
.rcToggle{width:22px;height:13px;border-radius:999px;background:#ff7a2f;position:relative;flex-shrink:0}
.rcToggle:after{content:"";position:absolute;right:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#fff}
.rcChevron{margin-left:auto;color:var(--rc-sub)}
.rcWorld .rcTopRow span{padding:8px 14px}
.rcCardHead .rcSeg{margin-left:6px}
/* Text to speech */
.ttsGrid .plainarea{min-height:320px}
.sliderRow{margin-top:14px}
.sliderRow .formlabel{display:flex;justify-content:space-between}
.sliderRow input[type=range]{width:100%;accent-color:#ff7a2f}
.costLine{display:flex;justify-content:space-between;align-items:center;margin:20px 0 14px;padding:12px 14px;border-radius:10px;background:#ff7a2f14;border:1px solid #ff7a2f40;font-size:13px}
#voicePreview audio{width:100%;margin-top:10px;height:36px}
/* 24/7 assistant */
.assistBtn{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#ff7a2f;color:#fff;box-shadow:0 10px 26px #ff7a2f55;margin-right:8px}
.assistBtn svg{width:22px;height:22px}
.assistPanel{position:fixed;right:24px;bottom:96px;z-index:70;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 130px));display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:#12101b;border:1px solid #2a2638;box-shadow:0 30px 80px #000a;color:#f2f2fa}
.theme-light .assistPanel{background:#fff;border-color:#e6e8ee;color:#1c2230;box-shadow:0 30px 80px #1c223033}
.assistHead{padding:18px 20px 22px;background:linear-gradient(150deg,#1c2230,#3a2d55 58%,#ff7a2f);color:#fff}
.assistTop{display:flex;align-items:center;gap:10px}
.assistTop b{flex:1;font-size:14px}
.assistClose{color:#fff;font-size:22px;line-height:1;width:30px;height:30px;border-radius:50%}
.assistClose:hover{background:#ffffff22}
.assistHead h3{margin:14px 0 0;font-size:20px;line-height:1.3;color:#fff}
.assistBody{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.aMsg{max-width:85%;padding:10px 13px;border-radius:14px;font-size:13.5px;line-height:1.5;background:#1d1a2a;align-self:flex-start;white-space:normal;overflow-wrap:anywhere}
.aMsg.user{align-self:flex-end;background:#ff7a2f;color:#fff}
.aMsg.intro{background:none;border:1px dashed #3a3552;color:#a9a5c2;max-width:100%}
.aMsg.typing{opacity:.7;font-style:italic}
.theme-light .aMsg{background:#f4f5f7}
.theme-light .aMsg.user{background:#1c2230;color:#fff}
.theme-light .aMsg.intro{background:none;border-color:#dfe2e8;color:#6b7180}
.assistForm{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #2a2638}
.theme-light .assistForm{border-color:#eef0f3}
.assistForm textarea{flex:1;resize:none;max-height:120px;border:1px solid #34304a;border-radius:12px;padding:10px 12px;background:transparent;color:inherit;font-size:13.5px}
.theme-light .assistForm textarea{border-color:#e3e5ea}
.assistForm button{width:42px;height:42px;border-radius:12px;background:#ff7a2f;color:#fff;display:grid;place-items:center;align-self:flex-end}
.assistForm button:disabled{opacity:.5}
.assistFoot{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px 14px}
.assistFoot button{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:7px 10px;border-radius:9px;border:1px solid #34304a;color:inherit}
.theme-light .assistFoot button{border-color:#e3e5ea}
.assistFoot svg{width:14px;height:14px}
.rcMap .land{fill:#3a3650}
.theme-light .rcMap .land{fill:#cfd4dd}

/* Sidebar: approved FoziScribe-style design (v2.3), kept dark in both themes. */
.sidebar,.sidebar button{font-family:'Segoe UI',sans-serif}
.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3a3552 transparent}
.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:#3a3552;border-radius:6px}
.sidebar>*{flex-shrink:0}
.sidebar{color-scheme:dark;color:#f2f2fa}
.sidebar .brand strong{color:#f2f2fa}
