Files
Kelx/views/bot.ejs
T
2026-11-30 16:32:37 +00:00

7430 lines
310 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html data-bot="<%= bot %>">
<head>
<meta charset="UTF-8" />
<link rel="preload" as="image" href="<%= (branding && branding.logoUrl) ? branding.logoUrl : '/images/adpanel-dark.svg' %>" fetchpriority="high">
<script nonce="<%= cspNonce %>">
window.__BRANDING__ = Object.freeze({
appName: <%- JSON.stringify((branding && branding.appName) || 'ADPanel').replace(/</g, '\\u003c') %>,
logoUrl: <%- JSON.stringify((branding && branding.logoUrl) || '/images/adpanel-dark.svg').replace(/</g, '\\u003c') %>
});
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
<%= (branding && branding.appName) ? branding.appName : 'ADPanel' %> - <%= displayName %>
</title>
<% const assetVersion=typeof themeVersion !=='undefined' ? themeVersion : '1' ; %>
<% const automaticAgentEditWarning = 'On a supported node, permitted edits to existing text files on this server will be approved automatically (up to five attempts per run). Commands, file deletions, and whole-file replacements are not approved automatically.'; %>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="preload" as="style" href="/vendor/fontawesome/css/all.min.css?v=6.7.2-subset">
<link rel="stylesheet" href="/style.css?v=<%= assetVersion %>">
<link id="favicon" rel="icon"
type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>"
sizes="<%= (branding && branding.faviconMimeType === 'image/svg+xml') ? 'any' : '16x16' %>"
href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
<link rel="alternate icon" type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
<%# Non-critical styles load async to keep first paint unblocked %>
<link rel="stylesheet" href="/vendor/fontawesome/css/all.min.css?v=6.7.2-subset" media="print" data-async-css />
<link rel="stylesheet" href="/css-ext/all.css" media="print" data-async-css />
<link rel="stylesheet" href="/css/ssh-terminal-window.min.css?v=20260509-floating-terminal-5" media="print" data-async-css />
<noscript>
<link rel="stylesheet" href="/vendor/fontawesome/css/all.min.css?v=6.7.2-subset" />
<link rel="stylesheet" href="/css-ext/all.css" />
<link rel="stylesheet" href="/css/ssh-terminal-window.min.css?v=20260509-floating-terminal-5" />
</noscript>
<script nonce="<%= cspNonce %>">
(function () {
var links = document.querySelectorAll('link[data-async-css]');
for (var i = 0; i < links.length; i++) {
(function (l) {
var activate = function () { l.media = 'all'; };
if (l.sheet) { activate(); } else { l.addEventListener('load', activate); }
})(links[i]);
}
})();
</script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/socket.io/socket.io.js" defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/vendor/ansi_up.min.js" defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/js/ssh-terminal-window.min.js?v=20260924-ssh-terminal-per-tab-1" defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false">
window.__ADPANEL_BOOTSTRAP__ = Object.freeze({
currentUser: {
email: <%- JSON.stringify((user && user.email) || "").replace(/</g, "\\u003c") %>,
preferences: <%- JSON.stringify((user && user.preferences) || {}).replace(/</g, "\\u003c") %>,
avatarUrl: <%- JSON.stringify(avatarUrl || "").replace(/</g, "\\u003c") %>
},
initialServerState: {
isInstalling: <%- JSON.stringify(Boolean(locals.isInstalling)) %>,
status: <%- JSON.stringify(locals.initialServerStatus || "").replace(/</g, "\\u003c") %>,
setupStatus: <%- JSON.stringify(locals.initialSetupStatus || "").replace(/</g, "\\u003c") %>,
createdAt: <%- JSON.stringify(locals.serverCreatedAt || null).replace(/</g, "\\u003c") %>
}
});
</script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/js/server-reinstall.js?v=<%= assetVersion %>-reinstall-result-power-state" defer></script>
<% if (locals.agentEnabled) { %>
<link rel="stylesheet" href="/css/server-agent-review.css?v=<%= assetVersion %>-activity1">
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/js/server-agent-history.js?v=<%= assetVersion %>-activity1" defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/js/server-agent-review.js?v=<%= assetVersion %>-activity1" defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false" src="/js/agent-live.js?v=<%= assetVersion %>-provider3-auto-edits2" defer></script>
<% } %>
<script nonce="<%= cspNonce %>" data-cfasync="false"
src="/js/bot.js?v=<%= assetVersion %>-console-eventsource-live-reset-20260627-active-run-await-switchback-typing-grep-edit-askuser-askmode-activerun-nofetchblock-diff-multiedit-anthropiccompat-autoformat-instantcommand-multicmdfix-20260821-topcmdclean-spinner-fastsnap-unblur-fixedwheel-dedup-v6-checkboxfix2026-urluploader-esc-reentry2026-storemods-consolebtn2026-reinstall-controller-20261118-power-action-result-20261120-agent-history-queued6-avatar1-activity1-provider2-console-security2-planner-edit-version1-auto-edits2-scheduler-planner-fixes2"
defer></script>
<script nonce="<%= cspNonce %>" data-cfasync="false">
(function () {
const CHRISTMAS_IMG = '/images/ADPanel-christmas.png';
function isChristmasPeriod() {
const now = new Date();
const month = now.getMonth();
const day = now.getDate();
return month === 11 && day >= 25 && day <= 28;
}
function applyChristmasTheme() {
if (!isChristmasPeriod()) return;
const favicon = document.getElementById('favicon') || document.querySelector('link[rel="icon"]');
if (favicon) favicon.href = CHRISTMAS_IMG;
document.querySelectorAll('img').forEach(img => {
// adpanel:login-dead-assets — the i.imgur.com legacy-CDN default-logo
// match was removed 2026-11 with the CDN-surface retirement: this
// page's imgs are branding/jsDelivr-to-local/file-view srcs only.
// The ADPanel-owned default-logo match is the case-insensitive,
// basename-anchored test /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i,
// restored to life 2026-11: it themes BOTH shipped spellings of the
// default logo — the shipped remote-CDN .../adpanel-dark.svg logoUrl
// and the local /images/adpanel-dark.svg fallback — while an
// operator's custom upload is never clobbered. The anchors are
// load-bearing: an unanchored substring match also themed URLs that
// merely EMBED the default filename (e.g.
// .../logos/adpanel-dark.svg.png, or a proxy URL carrying the name as
// a query param), so any src whose basename is not exactly the
// ADPanel-owned default filename never matches. The old
// ADPanel-dark.webp-only includes() was dead against the shipped
// svg default: pre-fix the swap never fired on default-branding
// pages.
if (img.src && /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i.test(img.src)) {
img.src = CHRISTMAS_IMG;
}
});
}
document.addEventListener('DOMContentLoaded', applyChristmasTheme);
})();
</script>
<link rel="stylesheet"
href="/css/bot.css?v=<%= assetVersion %>-20260613-sidebar-blue-imgviewer-askquestion-askmode-diff-multiedit-anthropiccompat-storemodstoggle2026-agent-history-provider2">
<style nonce="<%= cspNonce %>">
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('/fonts/Inter-Light.ttf') format('truetype'),
url('https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuOKfMZg.ttf') format('truetype');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/Inter-Regular.ttf') format('truetype'),
url('https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf') format('truetype');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/Inter-Medium.ttf') format('truetype'),
url('https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf') format('truetype');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('/fonts/Inter-SemiBold.ttf') format('truetype'),
url('https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf') format('truetype');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/Inter-Bold.ttf') format('truetype'),
url('https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf') format('truetype');
}
*,
*::before,
*::after {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#console,
#console *,
.ai-chat-messages,
.ai-chat-messages *,
.ai-message,
.ai-message *,
.ai-model-selector,
.ai-model-selector *,
input,
textarea {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
#console {
cursor: text;
}
img,
video,
canvas {
-webkit-user-drag: none;
user-drag: none;
}
</style>
<script nonce="<%= cspNonce %>">
function isInteractive(el) {
if (!el) return false;
if (el.nodeType === 3) el = el.parentNode;
if (!el.tagName) return false;
const tag = el.tagName.toUpperCase();
return tag === 'INPUT' || tag === 'TEXTAREA' || !!el.closest('#console, .ai-chat-messages, .ai-message, .ai-model-selector');
}
document.addEventListener('contextmenu', e => {
if (!isInteractive(e.target)) e.preventDefault();
});
document.addEventListener('dragstart', e => {
if (!isInteractive(e.target)) e.preventDefault();
});
document.addEventListener('selectstart', e => {
if (!isInteractive(e.target)) e.preventDefault();
});
document.addEventListener('copy', e => {
const selection = window.getSelection().toString();
if (selection.length === 0 && !isInteractive(e.target)) e.preventDefault();
});
document.addEventListener('cut', e => {
const tag = (e.target && e.target.tagName) ? e.target.tagName.toUpperCase() : '';
if (tag !== 'INPUT' && tag !== 'TEXTAREA') e.preventDefault();
});
document.addEventListener('keydown', e => {
const tag = (e.target && e.target.tagName) ? e.target.tagName.toUpperCase() : '';
const isInput = tag === 'INPUT' || tag === 'TEXTAREA';
if (e.ctrlKey || e.metaKey) {
if (['c', 'C'].includes(e.key)) {
return;
}
if (['a', 'A'].includes(e.key)) {
if (isInput) return;
e.preventDefault();
const consoleEl = document.getElementById('console');
if (consoleEl) {
const range = document.createRange();
range.selectNodeContents(consoleEl);
const sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
return;
}
if (['s', 'S', 'u', 'U'].includes(e.key)) {
e.preventDefault();
}
}
});
</script>
<style nonce="<%= cspNonce %>">
body {
background-color: #272727;
color: #e6eef8;
margin: 0 !important;
padding: 0 !important;
overflow-x: hidden;
}
#mobile-block-overlay {
display: none;
position: fixed;
inset: 0;
background: #000;
z-index: 999999;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
white-space: normal;
}
#mobile-block-overlay h2 {
width: 100%;
max-width: 600px;
margin: 0 auto;
line-height: 1.4;
font-size: clamp(18px, 5vw, 24px);
padding: 0 10px;
word-wrap: break-word;
}
@media (max-width: 767px) and (orientation: portrait) {
#mobile-block-overlay {
display: flex !important;
}
}
</style>
<style nonce="<%= cspNonce %>">
.sidebar-shell {
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
will-change: width;
transform: translateZ(0);
backface-visibility: hidden;
-webkit-font-smoothing: subpixel-antialiased;
}
.sidebar-shell.open:hover {
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.34),
inset 0 1px 0 rgba(255, 255, 255, 0.08);
background-color: rgba(255, 255, 255, 0.062);
transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.sidebar-shell .sidebar-item,
.sidebar-shell .profile-card {
transition: background 0.15s ease;
}
.sidebar-shell .sidebar-item .label,
.sidebar-shell .profile-meta {
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
will-change: opacity;
transform: translateZ(0);
backface-visibility: hidden;
}
.sidebar-shell.open:hover .sidebar-item .label,
.sidebar-shell.open:hover .profile-meta {
transition-delay: 0.05s;
}
.sidebar-shell.open:not(:hover) .sidebar-item .label,
.sidebar-shell.open:not(:hover) .profile-meta {
transition-delay: 0s;
}
#cmdInput,
#cmdInput:hover,
#cmdInput:focus,
#cmdInput:focus-visible,
#cmdInput:active {
outline: none !important;
border: none !important;
box-shadow: none !important;
transition: none !important;
}
</style>
<!-- Google Fonts & Figma Custom styles -->
<style nonce="<%= cspNonce %>">
/* Force Hide Old Layout */
.sidebar-shell,
.topbar,
.sidebar-toggle,
.app-wrap {
display: none !important;
}
/* Base Body Styling */
body {
background: #272727 !important;
color: #EEEEEE !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
font-family: 'Inter', sans-serif !important;
height: 100vh !important;
width: 100vw !important;
box-sizing: border-box !important;
}
/* Viewport Container Scaling */
.adpanel-figma-container {
width: 100vw;
height: 100vh;
overflow: hidden;
background: #272727 !important;
position: relative;
box-sizing: border-box;
}
.adpanel-figma-layout {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
box-sizing: border-box;
opacity: 0;
transition: opacity 0.1s ease-in;
}
.adpanel-main-row {
position: absolute;
width: 1828px;
height: 1080px;
left: 92px;
top: 0;
transform: none;
transform-origin: top left;
}
.adpanel-bottom-row {
position: absolute;
width: 92px;
height: 1080px;
left: 0;
top: 0;
transform: none;
transform-origin: top left;
z-index: 60 !important;
}
/* Console Card - Absolute coordinates from Figma */
.adpanel-console-card {
position: absolute;
width: 1166px;
height: 1040px;
left: 42px;
top: 20px;
background-color: #222222;
border-radius: 37px;
box-shadow: none !important;
border: 1px solid rgba(255, 255, 255, 0.03);
box-sizing: border-box;
padding: 0;
}
/* Console Header */
.adpanel-console-header {
position: absolute;
left: 32px;
top: 29px;
width: calc(100% - 64px);
height: 35px;
display: flex;
align-items: center;
gap: 20px;
}
.adpanel-action-buttons {
display: flex;
gap: 12px;
align-items: center;
}
.adpanel-action-btn {
width: 34px;
height: 34px;
border-radius: 8px;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: white;
transition: box-shadow 0.18s ease, filter 0.18s ease;
padding: 0;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
transform: none !important;
}
.adpanel-action-btn:hover {
transform: none !important;
box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.20), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}
.adpanel-action-btn:active {
transform: none !important;
box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
.adpanel-action-btn.run-btn {
background-color: #4FC407;
}
.adpanel-action-btn.stop-btn {
background-color: #FF9500;
}
.adpanel-action-btn.kill-btn {
background-color: #FF0000;
}
.adpanel-action-btn.kill-btn img,
.adpanel-action-btn.kill-btn svg {
width: 22px;
height: 22px;
}
.adpanel-action-btn img,
.adpanel-action-btn svg {
width: 16px;
height: 16px;
object-fit: contain;
}
/* Instant SVG Icon Baseline */
.adpanel-action-btn svg,
.adpanel-stat-icon svg,
.adpanel-taskbar-btn svg,
.adpanel-sidebar-toggle svg,
.adpanel-clear-btn svg,
.adpanel-send-icon {
display: block;
flex-shrink: 0;
contain: layout size;
transform: translateZ(0);
}
.adpanel-sidebar-toggle svg {
contain: size;
}
.adpanel-console-line {
flex: 1;
height: 1px;
background-color: #494949;
}
/* Console Body / Logs styling */
.adpanel-console-body {
position: absolute;
width: calc(100% - 64px);
height: 934px;
left: 32px;
top: 76px;
background-color: #1E1E1E;
border-radius: 18px;
padding: 24px;
overflow: visible;
box-sizing: border-box;
display: flex;
flex-direction: column;
box-shadow: none !important;
border: 1px solid rgba(0, 0, 0, 0.2);
/* Needed so .jump-btn absolute child positions relative to this box */
isolation: isolate;
}
.console-loading-spinner {
position: absolute;
width: 95px;
height: 95px;
top: 50%;
left: 50%;
margin-top: -47.5px;
margin-left: -47.5px;
z-index: 20;
pointer-events: none;
opacity: 1;
visibility: visible;
transition: opacity 0.2s ease, visibility 0.2s ease;
animation: console-spinner-rotate 1s linear infinite;
transform-origin: center center;
}
.console-loading-spinner.hidden {
opacity: 0;
visibility: hidden;
}
@keyframes console-spinner-rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#console {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
max-width: none !important;
width: 100% !important;
flex: 1 !important;
min-height: 0 !important;
box-shadow: none !important;
font-family: 'Inconsolata', monospace !important;
font-size: 20px !important;
color: #EEEEEE !important;
overflow-y: auto !important;
white-space: pre-wrap !important;
word-break: break-all !important;
user-select: text !important;
line-height: 1.4 !important;
position: relative !important;
}
#console::-webkit-scrollbar {
width: 8px;
}
#console::-webkit-scrollbar-thumb {
background-color: #494949;
border-radius: 4px;
}
#console::-webkit-scrollbar-thumb:hover {
background-color: #5a5a5a;
}
#console::-webkit-scrollbar-track {
background-color: #1e1e1e;
}
#consoleContent {
opacity: 0;
filter: blur(8px);
transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
will-change: opacity, filter;
}
#consoleContent.console-revealed {
opacity: 1 !important;
filter: blur(0px) !important;
}
/* Console Installing Overlay */
.console-installing-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 27px;
width: 100%;
max-width: 765px;
z-index: 25;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.console-installing-overlay.active {
opacity: 1;
visibility: visible;
}
.console-installing-title {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 39px;
color: #FFFFFF;
text-align: center;
user-select: none;
}
.console-installing-track {
width: 765px;
max-width: calc(100% - 64px);
height: 32px;
background: rgba(100, 100, 100, 0.3);
border-radius: 9px;
padding: 5px;
box-sizing: border-box;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.console-installing-fill {
height: 22px;
width: 0%;
background: rgba(92, 92, 92, 0.63);
border-radius: 7px;
transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
will-change: width;
}
/* Console Footer styling */
.adpanel-console-footer {
position: absolute;
width: calc(100% - 64px);
height: 65px;
left: 32px;
top: 945px;
}
.adpanel-send-command-wrapper {
background-color: #313131;
border-radius: 15px;
display: flex;
align-items: center;
padding: 0 16px;
gap: 16px;
height: 65px;
width: 100%;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: border-color 0.2s ease, background-color 0.2s ease;
}
.adpanel-send-command-wrapper:focus-within {
border-color: #494949;
background-color: #383838;
}
.adpanel-send-icon {
width: 28px;
height: 28px;
}
.adpanel-command-input {
flex: 1;
background: transparent !important;
border: none !important;
outline: none !important;
color: #EEEEEE !important;
font-family: 'Inter', sans-serif !important;
font-size: 24px !important;
font-weight: 400;
padding: 12px 0 !important;
}
.adpanel-command-input::placeholder {
color: #909090;
}
.adpanel-clear-btn {
background-color: #4C4C4C;
border: none;
border-radius: 5px;
width: 31px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
}
.adpanel-clear-btn:hover {
background-color: #585858;
}
.adpanel-clear-btn:active {
transform: scale(0.95);
}
.adpanel-clear-btn img,
.adpanel-clear-btn svg {
width: 18px;
height: 18px;
}
.adpanel-console-body .jump-btn {
position: absolute !important;
right: 20px !important;
bottom: 20px !important;
left: auto !important;
top: auto !important;
z-index: 20 !important;
padding: 10px 18px !important;
border-radius: 12px !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
background: rgba(50, 50, 50, 0.96) !important;
color: #fff !important;
cursor: pointer !important;
font-size: 16px !important;
opacity: 0;
visibility: hidden;
transform: translateY(8px) !important;
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s !important;
pointer-events: none !important;
}
.adpanel-console-body .jump-btn:hover {
background: rgba(70, 70, 70, 0.98) !important;
}
.adpanel-console-body .jump-btn.show {
opacity: 1 !important;
visibility: visible !important;
transform: translateY(0) !important;
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s !important;
pointer-events: auto !important;
}
/* Stats Card - Absolute coordinates from Figma */
.adpanel-stats-card {
position: absolute;
width: 548px;
height: 790px;
left: 1243px;
top: 19px;
background-color: #222222;
border-radius: 37px;
box-shadow: none !important;
border: 1px solid rgba(255, 255, 255, 0.03);
box-sizing: border-box;
padding: 17px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.adpanel-stats-interior {
width: 514px;
height: 754px;
background-color: transparent;
border-radius: 28px;
box-sizing: border-box;
padding: 30px 25px;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
}
.adpanel-stats-interior::-webkit-scrollbar {
display: none;
}
.adpanel-stat-item {
display: flex;
align-items: center;
gap: 20px;
min-height: 82px;
box-sizing: border-box;
flex-shrink: 0;
width: 100%;
}
.adpanel-stat-item.connectivity-copyable {
cursor: pointer;
transition: opacity 0.2s ease;
}
.adpanel-stat-item.connectivity-copyable:hover {
opacity: 0.85;
}
.adpanel-stat-item.connectivity-copyable:active {
opacity: 0.7;
}
.adpanel-stat-icon {
width: 75px !important;
height: 71px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-shrink: 0 !important;
background-color: #1B1B1B !important;
border-radius: 12px !important;
}
.adpanel-stat-icon img,
.adpanel-stat-icon svg {
max-width: 44px !important;
max-height: 44px !important;
object-fit: contain !important;
}
.adpanel-stat-icon.adpanel-ram-icon img,
.adpanel-stat-icon.adpanel-ram-icon svg {
width: 44px !important;
height: 44px !important;
max-width: 44px !important;
max-height: 44px !important;
object-fit: contain !important;
position: relative !important;
top: -12px !important;
}
.adpanel-stat-details {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
justify-content: center;
}
.adpanel-stat-header-row {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 15px !important;
width: 100%;
}
.adpanel-stat-title {
font-family: 'Inter', sans-serif !important;
font-size: 32px !important;
font-weight: 550 !important;
color: #A4A4A4 !important;
line-height: 1.1 !important;
min-width: 0 !important;
flex-shrink: 0;
}
.adpanel-stat-value {
font-family: 'Inter', sans-serif !important;
font-size: 24px !important;
font-weight: 550 !important;
color: #EEEEEE !important;
line-height: 1.2 !important;
}
.adpanel-stat-value .adpanel-stat-sep {
color: #909090 !important;
}
.adpanel-progress-container {
flex: 1 !important;
max-width: 184px !important;
height: 5px !important;
background-color: #909090 !important;
border-radius: 5px !important;
overflow: hidden;
position: relative;
flex-shrink: 0;
align-self: center;
/* Establishes a crisp, non-blurry clipping box for the fill so its
square trailing edge never bleeds past the rounded track. */
transform: translateZ(0);
-webkit-transform: translateZ(0);
}
.adpanel-progress-bar,
.used-bar {
height: 100%;
min-height: 100%;
background-color: #515151 !important;
/* Rounded only at the start (left, where it meets the track's rounded
edge). The head (right, where the fill currently ends) stays square
so a partially-filled bar doesn't look like a floating pill; the
track's own border-radius + overflow:hidden clips it back to round
automatically once the fill reaches 100%. */
border-radius: 15px 0 0 15px !important;
width: 0%;
max-width: 100%;
box-shadow: none !important;
transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
will-change: width;
backface-visibility: hidden;
}
.adpanel-stat-separator {
display: block !important;
height: 1px !important;
background-color: #494949 !important;
margin: 0 !important;
width: 100% !important;
opacity: 1 !important;
border: none !important;
flex-shrink: 0;
}
/* Hide original resource stats popup visually */
#resourceStatsPopup {
display: none !important;
}
/* Vertical Sidebar styling */
.adpanel-taskbar-wrapper {
position: absolute;
width: 92px;
height: 100% !important;
left: 0;
top: 0;
background-color: #222222;
border-radius: 0 37px 37px 0;
box-shadow: none !important;
border: 1px solid rgba(255, 255, 255, 0.03);
border-left: none;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 56px !important;
padding-bottom: 40px !important;
overflow: hidden;
transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
will-change: auto;
}
.adpanel-taskbar-wrapper.is-toggling {
will-change: width !important;
}
/* Expanded state: 92px + 64px = 156px */
.adpanel-taskbar-wrapper.expanded {
width: 156px !important;
align-items: flex-start !important;
padding-left: 0 !important;
}
/* Sidebar toggle button - lives in container, NOT in overflow:hidden wrapper */
.adpanel-taskbar-container {
position: relative;
width: 100%;
height: 100%;
}
.adpanel-sidebar-toggle {
position: absolute !important;
top: 18px !important;
left: 78px !important;
width: 28px !important;
height: 28px !important;
border-radius: 999px !important;
background-color: #333333 !important;
border: 1px solid rgba(255, 255, 255, 0.10) !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
z-index: 70 !important;
padding: 0 !important;
outline: none !important;
transition: background-color 0.2s ease, left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
flex-shrink: 0 !important;
}
/* Move toggle to right edge when expanded */
.adpanel-taskbar-wrapper.expanded~.adpanel-sidebar-toggle,
.adpanel-taskbar-container.is-expanded .adpanel-sidebar-toggle {
left: 142px !important;
}
.adpanel-sidebar-toggle:hover {
background-color: #484848 !important;
}
.adpanel-sidebar-toggle img,
.adpanel-sidebar-toggle svg {
width: 12px !important;
height: 12px !important;
display: block !important;
pointer-events: none !important;
user-select: none !important;
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* Arrow flips when expanded */
.adpanel-taskbar-container.is-expanded .adpanel-sidebar-toggle img,
.adpanel-taskbar-container.is-expanded .adpanel-sidebar-toggle svg {
transform: rotate(180deg) !important;
}
.adpanel-taskbar-logo {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin: 0 !important;
width: 100%;
}
.adpanel-taskbar-logo img,
.adpanel-taskbar-logo svg {
width: 48px !important;
height: 48px !important;
object-fit: contain;
display: block;
transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* Bigger logo when expanded */
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-logo img,
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-logo svg {
width: 64px !important;
height: 64px !important;
}
.adpanel-taskbar-logo+.adpanel-taskbar-separator {
margin-top: 49px !important;
}
.adpanel-taskbar-nav-group {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 15px;
margin: 0;
width: 100%;
padding-top: 15px;
box-sizing: border-box;
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-nav-group {
align-items: flex-start !important;
padding: 15px 8px 0 8px !important;
box-sizing: border-box !important;
}
.adpanel-taskbar-btn {
position: relative;
isolation: isolate;
background: transparent !important;
border: none !important;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
color: #EEEEEE !important;
font-family: 'Inter', sans-serif !important;
font-size: 16px !important;
font-weight: 400 !important;
transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
padding: 0 !important;
width: 50px;
height: 50px;
min-height: 50px !important;
max-height: 50px !important;
flex-shrink: 0 !important;
overflow: hidden;
border-radius: 8px;
outline: none !important;
}
/* Expanded button style: horizontal row with icon + label */
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn {
flex-direction: row !important;
justify-content: flex-start !important;
align-items: center !important;
gap: 12px !important;
width: 100% !important;
height: 46px !important;
padding: 0 14px !important;
margin-left: 0 !important;
border-radius: 12px !important;
}
.adpanel-taskbar-btn::before {
content: "";
position: absolute;
inset: 0px;
z-index: -1;
border-radius: 8px;
background: rgba(255, 255, 255, 0.075);
border: 1px solid rgba(255, 255, 255, 0.1);
opacity: 0;
transform: scale(0.94);
transition: opacity 0.18s ease, transform 0.18s ease;
}
.adpanel-taskbar-btn:hover {
transform: scale(1.03);
color: #fff !important;
opacity: 1 !important;
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn:hover {
transform: none !important;
}
.adpanel-taskbar-btn:hover::before {
opacity: 1;
transform: scale(1);
}
.adpanel-taskbar-btn:active {
transform: scale(0.98);
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn:active {
transform: scale(0.97) !important;
}
.adpanel-taskbar-btn img,
.adpanel-taskbar-btn svg {
width: 24px !important;
height: 24px !important;
object-fit: contain;
flex-shrink: 0;
}
/* Backups SVG has heavy internal padding (~31% margin on each side),
so we render it slightly larger so the visible icon matches other 24px icons.
Capped at 28px to stay within the 50px button height and avoid making
the separator lines above/below appear thicker than the others. */
/* Also match the bottom-dock twin (#dockBackupsBottom, in the hidden
compatibility wrapper) so both copies of the dock item style the
icon identically now that the duplicate id is resolved. */
#dockBackups img,
#dockBackups svg,
#dockBackupsBottom img,
#dockBackupsBottom svg {
width: 28px !important;
height: 28px !important;
}
/* Bigger icons when expanded */
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn img,
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn svg {
width: 28px !important;
height: 28px !important;
}
.adpanel-taskbar-wrapper.expanded #dockBackups img,
.adpanel-taskbar-wrapper.expanded #dockBackups svg {
width: 28px !important;
height: 28px !important;
}
/* Label: hidden by default, fades in when expanded */
.adpanel-taskbar-btn span {
display: inline-block !important;
opacity: 0 !important;
max-width: 0 !important;
max-height: 0 !important;
overflow: hidden !important;
white-space: nowrap !important;
font-size: 14px !important;
font-weight: 500 !important;
color: #EEEEEE !important;
pointer-events: none !important;
line-height: 1 !important;
padding: 0 !important;
margin: 0 !important;
transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-btn span {
opacity: 1 !important;
max-width: 110px !important;
max-height: 24px !important;
}
.adpanel-taskbar-separator {
width: 57px !important;
height: 1px !important;
min-height: 1px !important;
max-height: 1px !important;
flex-shrink: 0 !important;
background-color: #494949 !important;
opacity: 0.8 !important;
margin: 0 !important;
display: block !important;
transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
align-self: center !important;
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-separator {
width: calc(100% - 24px) !important;
margin-left: 12px !important;
align-self: auto !important;
}
/* Navigation group separators stretch to the full width of the sidebar wrapper */
.adpanel-taskbar-nav-group .adpanel-taskbar-separator {
width: 100% !important;
align-self: stretch !important;
}
/* Logo separator (outside nav-group) must match nav-group separators exactly */
.adpanel-taskbar-logo+.adpanel-taskbar-separator {
width: 100% !important;
align-self: stretch !important;
}
.adpanel-taskbar-wrapper.expanded .adpanel-taskbar-nav-group .adpanel-taskbar-separator {
width: calc(100% + 16px) !important;
margin-left: -8px !important;
align-self: auto !important;
}
.adpanel-taskbar-actions-group {
display: none !important;
}
/* ============================================================
INLINE PAGE SYSTEM
Converts sidebar-driven modal popups into inline pages that
occupy the same Figma-scaled space as the console + stats
cards. Active page is selected via JS by toggling
.adpanel-page-active on the chosen .adpanel-page element and
adding .adpanel-inline-mode to <body>.
============================================================ */
/* Unified page header (title + description) - shown next to sidebar.
The wrapper is placed in design-space pixels and is scaled by the
Figma transform on .adpanel-main-row, so font sizes here are in
design-space px and appear to shrink/grow with the viewport. */
.adpanel-page-header {
position: absolute !important;
left: 28px !important;
/* Moved to clear sidebar icon and align with content cards */
top: 15px !important;
/* Reduced top space */
right: 8px !important;
z-index: 60;
display: flex;
flex-direction: column;
gap: 6px;
pointer-events: none;
}
.adpanel-page-header[hidden] {
display: none !important;
}
.adpanel-page-title {
font-family: 'Inter', sans-serif !important;
font-size: clamp(30px, 3.4vw, 42px) !important;
font-weight: 700 !important;
color: #EEEEEE !important;
line-height: 1.08 !important;
letter-spacing: -0.02em;
margin: 0;
}
.adpanel-page-description {
font-family: 'Inter', sans-serif !important;
font-size: clamp(15px, 1.6vw, 20px) !important;
font-weight: 400 !important;
color: #A4A4A4 !important;
line-height: 1.35 !important;
margin: 0;
max-width: 75%;
}
/* Hide console + stats cards when an inline page is active */
body.adpanel-inline-mode .adpanel-console-container,
body.adpanel-inline-mode .adpanel-stats-container {
display: none !important;
}
/* Inline pages are zoomed up, so prevent layout scrollbars to preserve modal boundaries. */
body.adpanel-inline-mode .adpanel-figma-container {
overflow: hidden !important;
}
body.adpanel-inline-mode .adpanel-figma-layout {
overflow: hidden !important;
}
body.adpanel-inline-mode .adpanel-main-row {
overflow: hidden !important;
}
/* .adpanel-page is the wrapper around each former modal.
When inline mode is OFF (body does NOT have .adpanel-inline-mode),
these elements behave like normal modals (the existing
.modal-overlay / .activity-modal / etc. CSS controls visibility
via the .show class). The rules below only apply when inline
mode is active. */
.adpanel-page {
/* No default display override - existing modal CSS controls it. */
}
/* When inline mode is active AND this page is the selected one,
force the modal containers to fill the Figma main-row area.
We also strip any transforms / animations / blur that would
make the page look like a floating popup or scale its children
unevenly. */
/* When inline mode is active, prevent horizontal and vertical scrollbars on the Figma container */
body.adpanel-inline-mode .adpanel-figma-container {
overflow: hidden !important;
}
body.adpanel-inline-mode #filesModal.adpanel-page-active {
position: absolute !important;
left: 0px !important;
top: 0px !important;
right: 0px !important;
bottom: 0px !important;
width: 100% !important;
height: 100% !important;
background: #272727 !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
display: flex !important;
flex-direction: column !important;
align-items: flex-start !important;
justify-content: flex-start !important;
z-index: 40 !important;
padding: 24px 34px 20px 34px !important;
margin: 0 !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
perspective: none !important;
pointer-events: auto !important;
overflow-y: auto !important;
overflow-x: hidden !important;
box-sizing: border-box !important;
scrollbar-width: none !important;
-ms-overflow-style: none !important;
}
html,
body,
body.adpanel-inline-mode,
body.adpanel-inline-mode *,
#filesModal,
#filesModal * {
scrollbar-width: none !important;
-ms-overflow-style: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body.adpanel-inline-mode::-webkit-scrollbar,
body.adpanel-inline-mode *::-webkit-scrollbar,
body.adpanel-inline-mode #filesModal.adpanel-page-active::-webkit-scrollbar,
body.adpanel-inline-mode #filesModal::-webkit-scrollbar,
#filesModal::-webkit-scrollbar,
#filesModal *::-webkit-scrollbar,
*::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
background: transparent !important;
}
body.adpanel-inline-mode #storeModal.adpanel-page-active,
body.adpanel-inline-mode #activityModal.adpanel-page-active,
body.adpanel-inline-mode #backupsModal.adpanel-page-active,
body.adpanel-inline-mode #plannerModal.adpanel-page-active,
body.adpanel-inline-mode #aiHelpModal.adpanel-page-active,
body.adpanel-inline-mode #reinstallModal.adpanel-page-active {
position: absolute !important;
left: 10px !important;
/* Starts slightly shifted right for perfect sidebar alignment */
top: 66px !important;
/* Positioned exactly at the bottom of the unified header description to eliminate vertical gap */
right: 12px !important;
/* Balanced right-side margin to prevent kissing the edge */
bottom: 0px !important;
/* Extended fully to the bottom to eliminate empty border */
width: auto !important;
height: auto !important;
background: transparent !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
display: flex !important;
align-items: stretch !important;
justify-content: stretch !important;
z-index: 40 !important;
padding: 0 !important;
margin: 0 !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
perspective: none !important;
pointer-events: auto !important;
}
body.adpanel-inline-mode #schedulerModal.adpanel-page-active {
position: absolute !important;
left: 10px !important;
top: 66px !important;
right: 12px !important;
bottom: 0px !important;
width: auto !important;
height: calc(100% - 66px) !important;
background: transparent !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
display: flex !important;
align-items: stretch !important;
justify-content: stretch !important;
z-index: 40 !important;
padding: 0 !important;
margin: 0 !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
perspective: none !important;
pointer-events: auto !important;
}
/* Transitions for smooth sidebar expansion sliding only when sidebar is actively toggling */
body.adpanel-inline-mode .adpanel-taskbar-wrapper.is-toggling ~ .adpanel-main-row {
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* Completely remove the background cards by targeting their IDs with higher specificity */
/* Reduced page header title and description sizes in inline mode */
body.adpanel-inline-mode .adpanel-page-title {
font-size: 32px !important;
}
body.adpanel-inline-mode .adpanel-page-description {
font-size: 13px !important;
}
/* Completely remove the background cards by targeting their IDs with higher specificity */
/* Completely remove the background cards by targeting their IDs with higher specificity */
body.adpanel-inline-mode #filesModal .modal {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 100% !important;
max-height: 100% !important;
border-radius: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
display: flex !important;
flex-direction: column !important;
justify-content: flex-start !important;
overflow: hidden !important;
zoom: 1.0 !important;
box-sizing: border-box !important;
margin: 0 !important;
padding-top: 0px !important;
/* Starts exactly at top: 15px of parent to align with sidebar */
}
body.adpanel-inline-mode #storeModal .modal,
body.adpanel-inline-mode #activityModal .activity-panel,
body.adpanel-inline-mode #backupsModal .activity-panel,
body.adpanel-inline-mode #schedulerModal .scheduler-panel,
body.adpanel-inline-mode #plannerModal .planner-panel,
body.adpanel-inline-mode #aiHelpModal .ai-help-panel,
body.adpanel-inline-mode #reinstallModal .reinstall-panel {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 100% !important;
max-height: 100% !important;
border-radius: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
display: flex !important;
flex-direction: column !important;
justify-content: flex-start !important;
/* Force children to align at top, preventing massive empty gap centering */
overflow: hidden !important;
zoom: 1.0 !important;
box-sizing: border-box !important;
margin: 0 !important;
/* Override theme auto-margin centering which was pushing content down */
padding-top: 15px !important;
/* Set to 15px to push content slightly lower for a balanced gap */
}
/* Make sure internal bodies can scroll on their own if content exceeds screen height */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .reinstall-body {
position: relative !important;
flex: 1 1 auto !important;
min-height: 0 !important;
overflow-y: auto !important;
margin: 0 !important;
padding-top: 0px !important;
padding-left: 4px !important;
padding-right: 8px !important;
/* 8px padding to keep a clean margin before the scrollbar */
}
/* Force opacity to 1 on lists and wraps to prevent them from disappearing */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-search-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-list,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tasks-list,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-content-grid {
opacity: 1 !important;
animation: none !important;
}
/* Keep the store header but only display the tab switcher on the right side */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-header {
display: flex !important;
justify-content: flex-end !important;
align-items: center !important;
position: absolute !important;
top: 20px !important;
right: 0 !important;
z-index: 70 !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
width: auto !important;
height: auto !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-header-main,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-close {
display: none !important;
}
/* Keep the Agent header actions settings gear visible but hide title and close x button */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-header {
display: flex !important;
justify-content: flex-end !important;
align-items: center !important;
position: absolute !important;
top: 20px !important;
right: 0 !important;
z-index: 70 !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
width: auto !important;
height: auto !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-header-left,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active #aiHelpModalClose {
display: none !important;
}
/* Customize files list scrollbar to be exactly 8px wide and flat */
body.adpanel-inline-mode #filesModal::-webkit-scrollbar,
#filesModal #entries::-webkit-scrollbar {
width: 8px !important;
height: 8px !important;
}
body.adpanel-inline-mode #filesModal::-webkit-scrollbar-thumb,
#filesModal #entries::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15) !important;
border-radius: 4px !important;
}
body.adpanel-inline-mode #filesModal::-webkit-scrollbar-thumb:hover,
#filesModal #entries::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3) !important;
}
body.adpanel-inline-mode #filesModal::-webkit-scrollbar-track,
#filesModal #entries::-webkit-scrollbar-track {
background: transparent !important;
}
/* Drop-to-upload overlay shown while dragging files over the modal */
#filesModal #dropOverlay {
position: absolute !important;
inset: 0 !important;
z-index: 150 !important;
display: none !important;
align-items: center !important;
justify-content: center !important;
background: rgba(2, 6, 23, 0.72) !important;
backdrop-filter: blur(6px) !important;
-webkit-backdrop-filter: blur(6px) !important;
pointer-events: none !important;
}
#filesModal #dropOverlay.visible {
display: flex !important;
}
#filesModal #dropOverlay .inner {
text-align: center !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
color: rgba(255, 255, 255, 0.84) !important;
pointer-events: none !important;
}
#filesModal #dropOverlay .inner h3 {
margin: 0 0 6px !important;
font-size: 20px !important;
font-weight: 500 !important;
color: #FFFFFF !important;
}
#filesModal #dropOverlay .inner p {
margin: 0 !important;
font-size: 14px !important;
color: rgba(255, 255, 255, 0.6) !important;
}
/* File Manager Top Bar - Auto-layout responsive across all resolutions */
.fm-topbar {
width: 100% !important;
max-width: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
margin-bottom: 16px !important;
box-sizing: border-box !important;
flex-shrink: 0 !important;
}
.fm-path-pill {
display: inline-flex !important;
align-items: center !important;
gap: 12px !important;
background: #303030 !important;
border: none !important;
border-radius: 8px !important;
padding: 0 16px 0 14px !important;
height: 31px !important;
min-height: 31px !important;
max-height: 31px !important;
box-sizing: border-box !important;
margin-left: 21px !important; /* Positions checkbox at 35px, perfectly aligned with file row checkbox below */
box-shadow: none !important;
}
.fm-path-pill .entry-select-checkbox {
margin: 0 !important;
flex-shrink: 0 !important;
}
.fm-path-pill #progressWheel,
#filesModal #progressWheel {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: 18px !important;
height: 18px !important;
min-width: 18px !important;
min-height: 18px !important;
cursor: pointer !important;
margin-left: 2px !important;
flex-shrink: 0 !important;
transition: transform .12s ease !important;
}
.fm-path-pill #progressWheel.hidden,
#filesModal #progressWheel.hidden {
display: none !important;
}
.fm-path-pill #progressWheel:hover,
#filesModal #progressWheel:hover {
transform: scale(1.15) !important;
}
.fm-path-pill #progressWheel svg,
#filesModal #progressWheel svg {
width: 100% !important;
height: 100% !important;
display: block !important;
overflow: visible !important;
}
.fm-path-pill #progressWheel .ring-track,
#filesModal #progressWheel .ring-track {
fill: none !important;
stroke: rgba(255, 255, 255, 0.22) !important;
stroke-width: 3.5 !important;
transform: rotate(-90deg) !important;
transform-origin: 50% 50% !important;
}
.fm-path-pill #progressWheel .ring-progress,
#filesModal #progressWheel .ring-progress {
fill: none !important;
stroke: #ffffff !important;
stroke-width: 3.5 !important;
stroke-linecap: round !important;
transform: rotate(-90deg) !important;
transform-origin: 50% 50% !important;
transition: stroke-dasharray 140ms linear !important;
}
.fm-breadcrumbs,
#breadcrumbs.fm-breadcrumbs {
display: inline-flex !important;
align-items: center !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 18px !important;
font-weight: 400 !important;
line-height: 22px !important;
color: #FFFFFF !important;
user-select: none !important;
gap: 6px !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.fm-breadcrumbs .file-breadcrumbs {
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
}
.fm-breadcrumbs a,
.fm-breadcrumbs .file-crumb,
.fm-breadcrumbs .file-crumb:visited,
.fm-breadcrumbs .file-crumb-server,
#filesModal #breadcrumbs .file-crumb,
#filesModal #breadcrumbs .file-crumb-server {
color: #FFFFFF !important;
text-decoration: none !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 18px !important;
font-weight: 400 !important;
line-height: 22px !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
height: auto !important;
border-radius: 0 !important;
transition: opacity 0.15s ease !important;
}
.fm-breadcrumbs a:hover,
.fm-breadcrumbs .file-crumb:hover,
#filesModal #breadcrumbs .file-crumb:hover {
color: #FFFFFF !important;
opacity: 0.75 !important;
background: transparent !important;
border: none !important;
text-decoration: none !important;
}
.fm-breadcrumbs .file-crumb-separator,
#filesModal #breadcrumbs .file-crumb-separator {
color: rgba(255, 255, 255, 0.45) !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 18px !important;
font-weight: 400 !important;
line-height: 22px !important;
margin: 0 4px !important;
background: transparent !important;
border: none !important;
}
.fm-actions {
position: fixed !important;
top: 24px !important;
right: 34px !important;
z-index: 100 !important;
display: flex !important;
align-items: center !important;
gap: 12px !important;
background: transparent !important;
}
#filesModal:not(.adpanel-page-active) .fm-actions {
display: none !important;
}
.fm-default-actions {
display: inline-flex !important;
align-items: center !important;
gap: 12px !important;
}
.fm-selection-actions {
display: inline-flex !important;
align-items: center !important;
gap: 12px !important;
}
.fm-default-actions.hidden,
.fm-selection-actions.hidden {
display: none !important;
}
.fm-action-btn {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 9px !important;
background: rgba(82, 82, 82, 0.46) !important; /* #525252 opacitate 46% */
border: none !important;
border-radius: 8px !important;
height: 31px !important;
min-height: 31px !important;
max-height: 31px !important;
padding: 0 21px !important; /* 21px padding pana la terminarea butonului */
color: rgba(255, 255, 255, 0.84) !important; /* #FFFFFF opacitate 84% */
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 16px !important;
font-weight: 400 !important;
line-height: 31px !important;
cursor: pointer !important;
transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease !important;
box-sizing: border-box !important;
text-decoration: none !important;
user-select: none !important;
box-shadow: none !important;
white-space: nowrap !important;
}
.fm-action-btn:hover {
background: rgba(95, 95, 95, 0.55) !important;
color: rgba(255, 255, 255, 0.95) !important;
}
.fm-action-btn:active {
background: rgba(70, 70, 70, 0.6) !important;
}
.fm-action-btn img,
.fm-action-btn svg {
width: 16px !important;
height: 16px !important;
opacity: 0.63 !important; /* #BBBBBB opacitate 63% */
filter: brightness(0) invert(0.73) !important;
transition: opacity 0.15s ease !important;
display: block !important;
}
.fm-action-btn i {
font-size: 14px !important;
opacity: 0.63 !important;
color: rgba(255, 255, 255, 0.84) !important;
transition: opacity 0.15s ease, color 0.15s ease !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
}
.fm-action-btn:hover img,
.fm-action-btn:hover svg {
opacity: 0.85 !important;
}
.fm-action-btn:hover i {
opacity: 0.85 !important;
color: rgba(255, 255, 255, 0.95) !important;
}
.fm-action-btn.hidden {
display: none !important;
}
/* When scrolled, buttons become 100% opaque solid same color #525252 with very subtle shadow */
.fm-actions.scrolled .fm-action-btn {
background: #525252 !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
}
.fm-actions.scrolled .fm-action-btn:hover {
background: #626262 !important;
color: rgba(255, 255, 255, 0.95) !important;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) !important;
}
.fm-actions.scrolled .fm-action-btn:active {
background: #484848 !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}
/* Responsive Auto-Layout Box Container */
.fm-box {
width: 100% !important;
max-width: 100% !important;
background: #303030 !important;
border-radius: 37px !important;
box-sizing: border-box !important;
display: flex !important;
flex-direction: column !important;
box-shadow: none !important;
margin-bottom: 0px !important;
overflow: hidden !important;
height: auto !important;
min-height: auto !important;
max-height: none !important;
flex-shrink: 0 !important;
}
.fm-entries-list,
#entries,
#filesModal #entries,
body.adpanel-inline-mode #filesModal.adpanel-page-active #entries,
body.adpanel-inline-mode #filesModal #entries {
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
max-width: 100% !important;
display: flex !important;
flex-direction: column !important;
gap: 0px !important;
row-gap: 0px !important;
box-sizing: border-box !important;
animation: none !important;
}
.fm-entries-list .entry,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry,
body.adpanel-inline-mode #filesModal .entry,
#filesModal .entry,
#filesModal .entry:hover,
#filesModal .entry.selected,
#filesModal .entry.selectable {
width: 100% !important;
height: 52px !important;
min-height: 52px !important;
max-height: 52px !important;
box-sizing: border-box !important;
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
padding: 0 35px !important; /* 23px from container edge + 12px gap from separation line = 35px */
margin: 0 !important;
position: relative !important;
cursor: pointer !important;
transition: background 0.12s ease !important;
background: transparent !important;
border: none !important;
border-top: none !important;
border-bottom: none !important;
border-left: none !important;
border-right: none !important;
outline: none !important;
box-shadow: none !important;
animation: none !important;
min-width: 0 !important;
}
.fm-entries-list .entry:only-child,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:only-child,
body.adpanel-inline-mode #filesModal .entry:only-child,
#filesModal .entry:only-child,
.fm-entries-list .entry:first-child,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:first-child,
body.adpanel-inline-mode #filesModal .entry:first-child,
#filesModal .entry:first-child,
.fm-entries-list .entry:last-child,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:last-child,
body.adpanel-inline-mode #filesModal .entry:last-child,
#filesModal .entry:last-child,
.fm-entries-list .entry:not(:first-child):not(:last-child),
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:not(:first-child):not(:last-child),
body.adpanel-inline-mode #filesModal .entry:not(:first-child):not(:last-child),
#filesModal .entry:not(:first-child):not(:last-child) {
height: 52px !important;
min-height: 52px !important;
max-height: 52px !important;
padding-top: 0px !important;
padding-bottom: 0px !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
display: flex !important;
align-items: center !important;
}
#entries::after,
.fm-entries-list::after {
display: none !important;
content: none !important;
height: 0 !important;
}
/* Rule 5: 1px separation line – GPU-composited ::after, immune to subpixel rounding */
.fm-entries-list .entry:not(:last-child),
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:not(:last-child),
body.adpanel-inline-mode #filesModal .entry:not(:last-child),
#filesModal .entry:not(:last-child) {
border-bottom: none !important;
box-shadow: none !important;
}
.fm-entries-list .entry:not(:last-child)::after,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:not(:last-child)::after,
body.adpanel-inline-mode #filesModal .entry:not(:last-child)::after,
#filesModal .entry:not(:last-child)::after {
content: '' !important;
display: block !important;
position: absolute !important;
bottom: 0 !important;
left: 23px !important;
right: 23px !important;
height: 0 !important;
/* border-top on a height:0 element = exactly 1px, composited on GPU layer */
border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
pointer-events: none !important;
margin: 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
/* Force GPU composition to lock to pixel grid */
will-change: transform !important;
backface-visibility: hidden !important;
-webkit-backface-visibility: hidden !important;
transform: translateZ(0) !important;
}
/* Remove ::after on last child */
.fm-entries-list .entry:last-child::after,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:last-child::after,
body.adpanel-inline-mode #filesModal .entry:last-child::after,
#filesModal .entry:last-child::after {
content: none !important;
display: none !important;
}
/* Remove border-bottom on last child */
.fm-entries-list .entry:last-child,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:last-child,
body.adpanel-inline-mode #filesModal .entry:last-child {
border-bottom: none !important;
box-shadow: none !important;
}
.fm-entries-list .entry:hover,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry:hover {
background: rgba(255, 255, 255, 0.035) !important;
}
.fm-entries-list .entry.selected,
body.adpanel-inline-mode #filesModal.adpanel-page-active .entry.selected {
background: rgba(255, 255, 255, 0.055) !important;
box-shadow: none !important;
transform: none !important;
animation: none !important;
}
.fm-entries-list .entry,
.fm-entries-list .entry *,
.fm-entries-list .entry-left,
.fm-entries-list .entry-left *,
.entry,
.entry *,
.entry-left,
.entry-left *,
.entry-select-checkbox,
#selectAllToggle {
-webkit-tap-highlight-color: transparent !important;
}
.fm-entries-list .entry:active,
.fm-entries-list .entry-left:active,
.entry:active,
.entry-left:active,
.entry.selectable .entry-left:active,
.entry-select-checkbox:active,
#selectAllToggle:active {
transform: none !important;
animation: none !important;
}
.entry.selected,
.entry.selected .entry-left,
#filesModal .entry.selected,
#filesModal .entry.selected .entry-left,
body.adpanel-inline-mode #filesModal .entry.selected .entry-left {
animation: none !important;
transform: none !important;
}
/* Left side: Checkbox, Icon, Name with exact 12px gap (reduced by 3px) */
.fm-entries-list .entry-left,
body.adpanel-inline-mode #filesModal .entry-left,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-left,
#filesModal .entry-left {
flex: 1 1 auto !important;
min-width: 0 !important;
display: flex !important;
align-items: center !important;
gap: 12px !important;
}
.entry-select-checkbox,
body.adpanel-inline-mode #filesModal .entry-select-checkbox,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-select-checkbox,
#filesModal .entry-select-checkbox,
#selectAllToggle {
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
box-sizing: border-box !important;
width: 18px !important;
height: 18px !important;
min-width: 18px !important;
min-height: 18px !important;
background: transparent !important;
border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
border-radius: 4px !important;
cursor: pointer !important;
flex-shrink: 0 !important;
position: relative !important;
z-index: 10 !important;
outline: none !important;
margin: 0 !important;
padding: 0 !important;
transition: border-color 0.15s ease, background-color 0.15s ease !important;
}
.entry-select-checkbox:hover,
#selectAllToggle:hover {
border-color: rgba(255, 255, 255, 0.6) !important;
}
.entry-select-checkbox:checked,
.entry.selected .entry-select-checkbox,
li.selected .entry-select-checkbox,
body.adpanel-inline-mode #filesModal .entry.selected .entry-select-checkbox,
body.adpanel-inline-mode #filesModal .entry-select-checkbox:checked,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-select-checkbox:checked,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry.selected .entry-select-checkbox,
#selectAllToggle:checked {
background-color: rgba(228, 228, 228, 0.88) !important; /* #E4E4E4 opacitate 88% */
border: 1px solid rgba(228, 228, 228, 0.88) !important;
border-color: rgba(228, 228, 228, 0.88) !important;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTMuNSA4LjVMNi41IDExLjVMMTIuNSA0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIyLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==") !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 13px 13px !important;
}
/* Folder and File Icon - Pure Icon, No Box, identical #FFFFFF opacity 45% */
.entry-icon,
#filesModal .entry-icon,
#filesModal .entry-icon.folder,
#filesModal .entry-icon.file,
#filesModal .entry:hover .entry-icon,
#filesModal .entry:hover .entry-icon.folder,
#filesModal .entry:hover .entry-icon.file,
body.adpanel-inline-mode #filesModal .entry-icon,
body.adpanel-inline-mode #filesModal .entry-icon.folder,
body.adpanel-inline-mode #filesModal .entry-icon.file {
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: transparent !important;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
width: 22px !important;
height: 18px !important;
min-width: 22px !important;
min-height: 18px !important;
padding: 0 !important;
margin: 0 !important;
flex-shrink: 0 !important;
transform: none !important;
}
.entry-icon-svg,
.entry-icon img,
#filesModal .entry-icon-svg,
#filesModal .entry-icon img,
body.adpanel-inline-mode #filesModal .entry-icon-svg,
body.adpanel-inline-mode #filesModal .entry-icon img {
width: 22px !important;
height: 18px !important;
display: block !important;
object-fit: contain !important;
transition: opacity 0.15s ease !important;
}
.entry-icon.folder .entry-icon-svg,
.entry-icon.folder img,
#filesModal .entry-icon.folder .entry-icon-svg,
#filesModal .entry-icon.folder img {
opacity: 0.45 !important; /* files-icon is 100% white -> 45% */
filter: brightness(0) invert(1) !important;
}
.entry-icon.file .entry-icon-svg,
.entry-icon.file img,
#filesModal .entry-icon.file .entry-icon-svg,
#filesModal .entry-icon.file img {
opacity: 1 !important; /* file-icon is already 45% white -> 1.0 * 45% = 45% */
filter: none !important;
}
.entry:hover .entry-icon.folder .entry-icon-svg,
.entry:hover .entry-icon.folder img {
opacity: 0.7 !important;
}
.entry:hover .entry-icon.file .entry-icon-svg,
.entry:hover .entry-icon.file img {
opacity: 1 !important;
filter: brightness(1.5) !important;
}
.entry-name,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-name,
#filesModal .entry-name {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-style: normal !important;
font-weight: 400 !important;
font-size: 20px !important;
line-height: 24px !important;
height: 24px !important;
color: rgba(255, 255, 255, 0.88) !important; /* 88% opacitate */
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
user-select: none !important;
min-width: 0 !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
display: flex !important;
align-items: center !important;
}
.fm-entries-list .entry:hover .entry-name {
color: rgba(255, 255, 255, 1.0) !important;
}
/* Right side: Date and Fileinfo button */
.fm-entries-list .entry-right,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-right {
flex: 0 0 auto !important;
display: flex !important;
align-items: center !important;
justify-content: flex-end !important;
margin-left: 16px !important;
height: 100% !important;
}
.entry-date,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-date,
body.adpanel-inline-mode #filesModal .entry-date,
#filesModal .entry-date {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-style: normal !important;
font-weight: 400 !important;
font-size: 16px !important;
line-height: 24px !important;
height: 24px !important;
color: rgba(255, 255, 255, 0.49) !important;
width: 186px !important;
min-width: 186px !important;
max-width: 186px !important;
text-align: left !important;
justify-content: flex-start !important;
margin-right: -15px !important;
white-space: nowrap !important;
user-select: none !important;
letter-spacing: normal !important;
display: flex !important;
align-items: center !important;
font-variant-numeric: normal !important;
font-feature-settings: normal !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
text-rendering: optimizeLegibility !important;
}
.entry-actions {
position: relative !important;
display: flex !important;
align-items: center !important;
}
.entry-fileinfo-btn,
#filesModal .entry-fileinfo-btn {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 21px !important;
height: 18px !important;
min-width: 21px !important;
min-height: 18px !important;
opacity: 1 !important;
transition: opacity 0.15s ease !important;
border-radius: 0 !important;
}
.entry-fileinfo-btn:hover {
opacity: 0.85 !important;
}
.entry-fileinfo-btn img,
#filesModal .entry-fileinfo-btn img {
display: block !important;
width: 21px !important;
height: 18px !important;
min-width: 21px !important;
min-height: 18px !important;
}
.more-menu {
display: none;
position: absolute !important;
right: 0 !important;
top: 100% !important;
margin-top: 4px !important;
background: #242424 !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 8px !important;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
z-index: 100 !important;
min-width: 140px !important;
padding: 4px 0 !important;
backdrop-filter: blur(12px) !important;
}
.more-menu.show {
display: flex !important;
flex-direction: column !important;
}
.more-menu button {
background: transparent !important;
border: none !important;
color: #ccc !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 13px !important;
text-align: left !important;
padding: 8px 14px !important;
width: 100% !important;
display: flex !important;
align-items: center !important;
cursor: pointer !important;
transition: background 0.12s ease, color 0.12s ease !important;
}
.more-menu button:hover {
background: rgba(255, 255, 255, 0.08) !important;
color: #fff !important;
}
/* Store grid and cards styling */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-content-grid {
width: 100% !important;
max-width: 100% !important;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
gap: 16px !important;
}
/* General headers and close buttons to hide using high specificity ID selectors to prevent layout shifting */
body.adpanel-inline-mode #filesModal .modal-header,
body.adpanel-inline-mode #storeModal .modal-header,
body.adpanel-inline-mode #activityModal .activity-header,
body.adpanel-inline-mode #backupsModal .activity-header,
body.adpanel-inline-mode #schedulerModal .scheduler-header,
body.adpanel-inline-mode #plannerModal .planner-header,
body.adpanel-inline-mode #aiHelpModal .ai-help-header-left,
body.adpanel-inline-mode #reinstallModal .reinstall-header,
body.adpanel-inline-mode #filesModal .modal-close,
body.adpanel-inline-mode #storeModal .modal-close,
body.adpanel-inline-mode #activityModal .activity-close,
body.adpanel-inline-mode #backupsModal .activity-close,
body.adpanel-inline-mode #schedulerModal .scheduler-close,
body.adpanel-inline-mode #plannerModal .planner-close,
body.adpanel-inline-mode #aiHelpModal .ai-help-close,
body.adpanel-inline-mode #reinstallModal .reinstall-close {
display: none !important;
}
/* In inline mode, hide all non-active pages */
body.adpanel-inline-mode .adpanel-page:not(.adpanel-page-active) {
display: none !important;
}
/* Keep icons and logos crisp inside inline pages so they don't
look pixelated when the Figma layout is scaled. We also
disable heavy CSS filters/animations on inline page media. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active img,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-icon,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-provider-logo,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-provider-logo img,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-icon-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-icon-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-avatar-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .backups-header-icon {
image-rendering: -webkit-optimize-contrast !important;
image-rendering: crisp-edges !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-icon-pulse,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-icon-pulse,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-avatar-pulse {
display: none !important;
}
/* Inline pages must not run the opening blur/scale animations or
glass layers that make text and icons look smeared. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-title,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-subtitle,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-title,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-subtitle,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-title,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-subtitle,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-search-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-list,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-content-grid,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-provider-card,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-version-row {
animation: none !important;
filter: none !important;
-webkit-filter: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
/* Remove fixed-width constraints that cause collision/overlap inside
the scaled inline page. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active #entries,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-content-grid,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-list,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-list,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tasks-list {
width: 100% !important;
max-width: 100% !important;
}
/* Suppress decorative glass / blur layers in inline mode */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-glass-layer,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-glass-layer,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-glass-layer,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-glass-layer,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-inner-glow,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-glass-layer-1,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-glass-layer-2 {
display: none !important;
}
/* Make the inner panel fill the page (match console/stats card styling).
Force a clean flex layout so child sections don't overlap or collide.
We zoom the panel up so text and controls are comfortably readable
on 15.6" 1080p screens without the user having to browser-zoom. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-panel,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .reinstall-panel {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 100% !important;
max-height: 100% !important;
border-radius: 37px !important;
background-color: #222222 !important;
border: 1px solid rgba(255, 255, 255, 0.03) !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
display: flex !important;
flex-direction: column !important;
overflow: auto !important;
zoom: 1.18;
}
/* Remove fixed/absolute positioning and heavy margins on inline page
bodies so they flow naturally inside the panel and don't collide
with the unified header or each other. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .reinstall-body {
position: relative !important;
flex: 1 1 auto !important;
min-height: 0 !important;
overflow: auto !important;
margin: 0 !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-search-wrap,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-footer,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tabs,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-tabs,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-status-bar {
position: relative !important;
flex-shrink: 0 !important;
left: auto !important;
right: auto !important;
top: auto !important;
bottom: auto !important;
}
/* Specific Task Scheduler Overrides in Inline Mode */
body.adpanel-inline-mode #schedulerModal.adpanel-page-active {
overflow: visible !important;
height: calc(100% - 66px) !important;
}
body.adpanel-inline-mode #schedulerModal .scheduler-panel {
box-sizing: border-box !important;
overflow: visible !important;
height: auto !important;
min-height: 0 !important;
max-height: none !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-body {
max-height: calc(100vh - 220px) !important;
min-height: 0 !important;
overflow-y: auto !important;
padding-top: 21px !important;
padding-left: 16px !important;
padding-right: 16px !important;
padding-bottom: 55px !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-body {
padding-top: 15px !important;
padding-left: 16px !important;
padding-right: 16px !important;
}
/* Style all planner buttons to match the create-the-first-prompt button */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-add-inline,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-primary-btn,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-secondary-btn,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-empty-btn {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
border: none !important;
border-radius: 14px !important;
box-shadow: none !important;
font-weight: 400 !important;
font-size: 13px !important;
padding: 12px 16px !important;
display: inline-flex !important;
align-items: center !important;
gap: 8px !important;
cursor: pointer !important;
transform: none !important;
transition: background-color 0.2s ease, color 0.2s ease !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-add-inline:hover,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-primary-btn:hover,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-secondary-btn:hover,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-empty-btn:hover {
background: rgba(255, 255, 255, 0.12) !important;
transform: none !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-add-inline i,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-primary-btn i,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-empty-btn i {
font-size: 10px !important;
}
/* Make planner items hover scale-free and change color subtly to grey */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-item:hover {
transform: none !important;
background: rgba(255, 255, 255, 0.06) !important;
}
/* Reset basic outlines/borders on inputs/textareas to avoid default HTML focus-out/blur outline/black background bugs */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-input,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-textarea {
border: none !important;
outline: none !important;
box-shadow: none !important;
background: rgba(255, 255, 255, 0.04) !important;
}
/* Subtle outline/inline-free focus styling for inputs/textareas */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-input:focus,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-textarea:focus,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-input:focus-visible,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-textarea:focus-visible {
outline: none !important;
box-shadow: none !important;
background: rgba(255, 255, 255, 0.06) !important;
border: none !important;
}
/* Make the AI agent avatar logo fit perfectly inside the small box with 3px padding */
.ai-msg-avatar.ai img.ai-message-avatar-img {
width: 100% !important;
height: 100% !important;
object-fit: contain !important;
padding: 3px !important;
box-sizing: border-box !important;
}
/* Make the AI chat sidebar background match the main panel color (transparent to flow seamlessly) */
body.adpanel-inline-mode .ai-chat-sidebar {
background: transparent !important;
}
/* Make AI and user avatar containers completely transparent without any gradient or border */
body.adpanel-inline-mode .ai-msg-avatar.ai,
body.adpanel-inline-mode .ai-msg-avatar.user {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* Styling for the AI thinking badge to remove borders, background, animations, and adjust font size */
body.adpanel-inline-mode .ai-thinking-badge {
background: transparent !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
font-size: 13px !important;
font-weight: 500 !important;
transform: none !important;
transition: color 0.2s ease !important;
}
body.adpanel-inline-mode .ai-thinking-label {
color: rgba(255, 255, 255, 0.35) !important;
font-size: 13px !important;
font-weight: 500 !important;
}
body.adpanel-inline-mode .ai-thinking-toggle:hover .ai-thinking-badge,
body.adpanel-inline-mode .ai-thinking-toggle:focus-visible .ai-thinking-badge,
body.adpanel-inline-mode .ai-thinking-shell[open] .ai-thinking-badge {
background: transparent !important;
border: none !important;
transform: none !important;
}
body.adpanel-inline-mode .ai-thinking-toggle:hover .ai-thinking-label,
body.adpanel-inline-mode .ai-thinking-toggle:hover .ai-thinking-badge {
color: rgba(255, 255, 255, 0.9) !important;
}
body.adpanel-inline-mode .ai-thinking-shell[open] .ai-thinking-label {
color: rgba(255, 255, 255, 0.7) !important;
}
/* Adjust message body gap and thinking shell margin to bring them closer */
body.adpanel-inline-mode .ai-message-body {
gap: 3px !important;
}
body.adpanel-inline-mode .ai-thinking-shell {
margin-bottom: -2px !important;
}
/* Style the new chat button (plus button) in the same gray style */
body.adpanel-inline-mode .ai-new-chat-btn {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
border: none !important;
box-shadow: none !important;
transform: none !important;
}
body.adpanel-inline-mode .ai-new-chat-btn:hover {
background: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
}
/* Style user's message bubble to look exactly like AI's response bubble */
body.adpanel-inline-mode .ai-message.user .ai-message-content {
background: rgba(255, 255, 255, 0.04) !important;
color: rgba(255, 255, 255, 0.92) !important;
box-shadow: none !important;
}
body.adpanel-inline-mode .ai-message.user:hover .ai-message-content {
background: rgba(255, 255, 255, 0.06) !important;
}
/* Active/selected chat item background - darker grey towards black, with white text */
body.adpanel-inline-mode .ai-chat-item.active {
background: rgba(0, 0, 0, 0.25) !important;
color: #ffffff !important;
}
/* Hovered chat item background */
body.adpanel-inline-mode .ai-chat-item:hover {
background: rgba(255, 255, 255, 0.05) !important;
}
/* Simple grey styling for the AI chat send button instead of gradient */
body.adpanel-inline-mode .ai-chat-send-btn:not(:disabled),
body.adpanel-inline-mode .ai-chat-send-btn:disabled,
body.adpanel-inline-mode .ai-chat-send-btn.generating {
background: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.06) !important;
color: rgba(255, 255, 255, 0.7) !important;
box-shadow: none !important;
transform: none !important;
}
body.adpanel-inline-mode .ai-chat-send-btn:not(:disabled) i {
color: #ffffff !important;
}
body.adpanel-inline-mode .ai-chat-send-btn:not(:disabled):hover {
background: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
border-color: rgba(255, 255, 255, 0.1) !important;
box-shadow: none !important;
transform: none !important;
}
body.adpanel-inline-mode .ai-chat-send-btn::before {
display: none !important;
}
/* Style model selector and ask mode triggers to match gray theme style */
body.adpanel-inline-mode .ai-model-trigger {
background: rgba(255, 255, 255, 0.08) !important;
border: 1px solid transparent !important;
border-radius: 14px !important;
color: #ffffff !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
body.adpanel-inline-mode .ai-model-trigger:hover {
background: rgba(255, 255, 255, 0.12) !important;
}
/* Adopt scheduler shape where the open dropdown merges seamlessly with the trigger box */
body.adpanel-inline-mode .ai-model-selector.open .ai-model-trigger {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
background: rgba(255, 255, 255, 0.12) !important;
border-color: transparent !important;
box-shadow: none !important;
}
body.adpanel-inline-mode .ai-model-options-shell {
top: 100% !important;
/* align directly below trigger, no gap */
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
border-bottom-left-radius: 14px !important;
border-bottom-right-radius: 14px !important;
background: #1c1c1c !important;
/* solid dark gray background */
border: 1px solid rgba(255, 255, 255, 0.06) !important;
border-top: none !important;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
/* Disable the purple/multicolor overlay gradients on the options shell */
body.adpanel-inline-mode .ai-model-options-shell::before,
body.adpanel-inline-mode .ai-model-options-shell::after {
display: none !important;
}
/* Style individual options inside the dropdown list */
body.adpanel-inline-mode .ai-model-option {
border-radius: 8px !important;
color: rgba(255, 255, 255, 0.8) !important;
}
body.adpanel-inline-mode .ai-model-option:hover {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
}
/* Style selected options like scheduler options */
body.adpanel-inline-mode .ai-model-option.selected {
background: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
box-shadow: none !important;
}
body.adpanel-inline-mode .ai-model-option-check {
color: #ffffff !important;
}
/* Style the settings buttons (both in setup and chat toolbar) to match the delete chat button styling */
body.adpanel-inline-mode .ai-chat-settings-btn {
width: 36px !important;
height: 36px !important;
border-radius: 10px !important;
background: rgba(255, 255, 255, 0.04) !important;
border: none !important;
color: rgba(255, 255, 255, 0.4) !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 14px !important;
transition: all 0.2s ease !important;
box-shadow: none !important;
transform: none !important;
}
body.adpanel-inline-mode .ai-chat-settings-btn:hover {
background: rgba(255, 255, 255, 0.08) !important;
color: rgba(255, 255, 255, 0.8) !important;
transform: none !important;
}
/* Style the intelligence provider cards on hover: remove scale effect and make background subtly whiter */
body.adpanel-inline-mode .ai-provider-card:hover {
transform: none !important;
background: rgba(255, 255, 255, 0.08) !important;
}
body.adpanel-inline-mode .ai-provider-card.connected:hover {
transform: none !important;
background: rgba(74, 222, 128, 0.15) !important;
}
/* Reinstall Server modal layout & styling overrides */
body.adpanel-inline-mode #reinstallModal .reinstall-body {
position: relative !important;
display: flex !important;
flex-direction: column !important;
height: 100% !important;
box-sizing: border-box !important;
padding-bottom: 80px !important;
}
body.adpanel-inline-mode #reinstallModal #reinstallDefaultView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallDefaultView[style*="display: none"] {
display: none !important;
}
body.adpanel-inline-mode #reinstallModal #reinstallDefaultView {
display: flex !important;
flex-direction: column !important;
flex: 1 !important;
height: 100% !important;
}
/* Style reinstall confirm buttons (both first view and confirmation dialog) to be red, white text, and regular font-weight */
body.adpanel-inline-mode #reinstallModal .reinstall-confirm-btn,
body.adpanel-inline-mode #reinstallModal .reinstall-danger-btn {
background: #ef4444 !important;
color: #ffffff !important;
font-weight: 500 !important;
border: none !important;
box-shadow: none !important;
transition: background-color 0.2s ease !important;
}
body.adpanel-inline-mode #reinstallModal .reinstall-confirm-btn:hover,
body.adpanel-inline-mode #reinstallModal .reinstall-danger-btn:hover {
background: #f15555 !important;
/* very subtle change from #ef4444 */
color: #ffffff !important;
opacity: 1 !important;
}
/* Style cancel buttons to be regular font-weight */
body.adpanel-inline-mode #reinstallModal .reinstall-cancel-btn {
font-weight: 500 !important;
}
/* Warning box overrides: no border, soft transparent red, aligned 100% width with the columns below */
body.adpanel-inline-mode #reinstallModal .reinstall-warning-card {
border: none !important;
background: rgba(239, 68, 68, 0.08) !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
box-sizing: border-box !important;
}
body.adpanel-inline-mode #reinstallModal .reinstall-warning-icon {
color: #f87171 !important;
}
body.adpanel-inline-mode #reinstallModal .reinstall-warning-title {
color: #fca5a5 !important;
}
/* Center the confirmation and other state views completely in the middle of the screen when active */
body.adpanel-inline-mode #reinstallModal #reinstallDefaultView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallDefaultView[style*="display: none"],
body.adpanel-inline-mode #reinstallModal #reinstallConfirmView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallConfirmView[style*="display: none"],
body.adpanel-inline-mode #reinstallModal #reinstallProgressView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallProgressView[style*="display: none"],
body.adpanel-inline-mode #reinstallModal #reinstallSuccessView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallSuccessView[style*="display: none"],
body.adpanel-inline-mode #reinstallModal #reinstallErrorView[style*="display:none"],
body.adpanel-inline-mode #reinstallModal #reinstallErrorView[style*="display: none"] {
display: none !important;
}
body.adpanel-inline-mode #reinstallModal #reinstallConfirmView,
body.adpanel-inline-mode #reinstallModal #reinstallProgressView,
body.adpanel-inline-mode #reinstallModal #reinstallSuccessView,
body.adpanel-inline-mode #reinstallModal #reinstallErrorView {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
flex: 1 !important;
height: 100% !important;
margin: auto 0 !important;
padding-bottom: 0 !important;
/* centered perfectly */
}
/* Reinstall confirmation big exclamation icon wrap styled in red */
body.adpanel-inline-mode #reinstallModal .reinstall-confirm-icon-wrap {
background: rgba(239, 68, 68, 0.12) !important;
}
body.adpanel-inline-mode #reinstallModal .reinstall-confirm-big-icon {
color: #ef4444 !important;
}
/* Absolute position all action buttons to the bottom-right corner of reinstall-body */
body.adpanel-inline-mode #reinstallModal .reinstall-actions,
body.adpanel-inline-mode #reinstallModal .reinstall-confirm-actions,
body.adpanel-inline-mode #reinstallModal .reinstall-success-actions,
body.adpanel-inline-mode #reinstallModal .reinstall-error-actions {
position: absolute !important;
bottom: 32px !important;
right: 32px !important;
width: auto !important;
display: flex !important;
gap: 12px !important;
justify-content: flex-end !important;
z-index: 10 !important;
margin: 0 !important;
padding: 0 !important;
}
/* Style the success done button to be regular font-weight */
body.adpanel-inline-mode #reinstallModal .reinstall-done-btn {
font-weight: 500 !important;
}
/* Color the reinstall spinner loading ring red */
body.adpanel-inline-mode #reinstallModal .reinstall-spinner {
border-top-color: #ef4444 !important;
}
/* Smooth blur & fade-out transition for reinstall panel */
body.adpanel-blur-transition-active #reinstallModal .reinstall-panel {
filter: blur(25px) !important;
opacity: 0 !important;
transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
/* Smooth un-blur & fade-in transition for the console view */
body.adpanel-console-fade-in .adpanel-main-row {
filter: blur(25px) !important;
opacity: 0 !important;
}
body.adpanel-console-fade-in-active .adpanel-main-row {
filter: blur(0) !important;
opacity: 1 !important;
transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
/* Style disabled buttons/tabs to be non-clickable and transparent */
.adpanel-taskbar-btn.disabled,
.dock-item.disabled,
.adpanel-action-btn.disabled,
.disabled {
pointer-events: none !important;
cursor: not-allowed !important;
opacity: 0.35 !important;
}
/* Inline file editor layout & styling overrides */
body.adpanel-inline-mode.editor-active #filesModal {
display: none !important;
}
/* Hide editorModal completely when the files page is not the active tab in the sidebar navigation (e.g. when on console, store, backups) */
body:has(.adpanel-taskbar-btn#dockFiles:not(.is-active)) #editorModal {
display: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal {
position: absolute !important;
left: -20px !important; /* Shunted left to hide any gap behind the sidebar */
top: 0px !important;
right: 0px !important;
bottom: 0px !important;
width: auto !important;
height: auto !important;
background: #272727 !important; /* matches container background */
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
display: flex !important;
align-items: stretch !important;
justify-content: stretch !important;
z-index: 45 !important;
padding: 0 !important;
margin: 0 !important;
opacity: 1 !important;
transform: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal .modal {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 100% !important;
max-height: 100% !important;
border-radius: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
transform: none !important;
opacity: 1 !important;
animation: none !important;
display: flex !important;
flex-direction: column !important;
justify-content: flex-start !important;
overflow: hidden !important;
zoom: 1.0 !important;
box-sizing: border-box !important;
margin: 0 !important;
padding: 0 !important;
}
/* Hide the header (title and subtitle) completely in inline mode */
body.adpanel-inline-mode.editor-active #editorModal .editor-header {
display: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal #editorModalClose {
display: none !important;
}
/* Make sidebar and its expand toggle float above the editor modal overlay only when files page is active */
body.adpanel-inline-mode.editor-active:has(#filesModal.adpanel-page-active) .adpanel-bottom-row {
z-index: 100 !important;
}
body.adpanel-inline-mode.editor-active:has(#filesModal.adpanel-page-active) .adpanel-sidebar-toggle {
z-index: 110 !important;
background-color: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
body.adpanel-inline-mode.editor-active:has(#filesModal.adpanel-page-active) .adpanel-sidebar-toggle:hover {
background-color: rgba(255, 255, 255, 0.15) !important;
}
/* Style the mini file manager toggle button to match the header buttons - opaque */
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-toggle,
body.adpanel-inline-mode.editor-active #imageViewerModal .mini-fm-toggle {
background-color: #383838 !important;
background: #383838 !important;
border: none !important;
color: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-toggle:hover,
body.adpanel-inline-mode.editor-active #imageViewerModal .mini-fm-toggle:hover {
background-color: #484848 !important;
background: #484848 !important;
border: none !important;
color: #ffffff !important;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) !important;
}
/* Style the mini-fm close/discard button to sit next to the mini-fm toggle - opaque */
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-close-editor,
body.adpanel-inline-mode.editor-active #imageViewerModal .mini-fm-close-editor {
position: absolute !important;
top: 12px !important;
right: 332px !important;
z-index: 6 !important;
width: 32px !important;
height: 32px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
border-radius: 9px !important;
background-color: #383838 !important;
background: #383838 !important;
border: none !important;
color: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
cursor: pointer !important;
font-size: 13px !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
transition: background 0.18s ease, color 0.18s ease, right 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-close-editor:hover,
body.adpanel-inline-mode.editor-active #imageViewerModal .mini-fm-close-editor:hover {
background-color: #484848 !important;
background: #484848 !important;
border: none !important;
color: #ffffff !important;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) !important;
}
body.adpanel-inline-mode.editor-active #editorModal #codeShell.mini-fm-collapsed .mini-fm-close-editor,
body.adpanel-inline-mode.editor-active #imageViewerModal #imgViewerShell.mini-fm-collapsed .mini-fm-close-editor {
right: 52px !important;
}
/* 1px space at the end of lines of code in the editor */
#editorModal .monaco-editor .view-line,
#editorModal .ace_line,
#editorModal #textArea,
#editorModal #codeInput {
padding-bottom: 1px !important;
}
#editorModal .monaco-editor .view-lines {
padding-right: 1px !important;
}
body.adpanel-inline-mode.editor-active:has(#filesModal.adpanel-page-active) .adpanel-taskbar-separator {
background: rgba(255, 255, 255, 0.05) !important;
}
/* Prevent overflow clipping of shunted editor background only when files page is active */
body.adpanel-inline-mode.editor-active:has(#filesModal.adpanel-page-active) .adpanel-main-row {
overflow: visible !important;
}
body.adpanel-inline-mode.editor-active #editorModal #bigEditor {
display: flex !important;
flex-direction: column !important;
flex: 1 !important;
height: 100% !important;
min-height: 0 !important;
padding: 10px 0 0 0 !important; /* Smaller, cleaner top gap */
margin: 0 !important;
background: transparent !important;
box-sizing: border-box !important;
}
body.adpanel-inline-mode.editor-active #editorModal #codeShell {
flex: 1 !important;
height: 100% !important;
min-height: 0 !important;
margin: 0 !important;
border-radius: 0 !important;
border: none !important;
background: transparent !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm {
height: 100% !important;
/* Go all the way to the bottom */
background: transparent !important;
border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-header {
background: transparent !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-header-icon {
background: rgba(96, 165, 250, 0.1) !important;
color: #6ea8ff !important;
}
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-entries {
padding-bottom: 20px !important;
background: transparent !important;
}
body.adpanel-inline-mode.editor-active #editorModal #textArea {
flex: 1 !important;
height: 100% !important;
min-height: 0 !important;
margin: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
}
body.adpanel-inline-mode.editor-active #editorModal .code-shell-editor {
padding: 8px 0 0 16px !important; /* Pushed 16px to the right to clear space from the sidebar */
padding-bottom: 0 !important;
/* Go all the way to the absolute bottom of the screen */
box-sizing: border-box !important;
background: transparent !important;
}
/* Set the editor, gutter, text area, and all containers to match the #272727 background color */
body.adpanel-inline-mode.editor-active #editorModal #monacoContainer,
body.adpanel-inline-mode.editor-active #editorModal #aceContainer,
body.adpanel-inline-mode.editor-active #editorModal #aceContainer .ace_editor,
body.adpanel-inline-mode.editor-active #editorModal #aceContainer .ace_gutter,
body.adpanel-inline-mode.editor-active #editorModal #aceContainer .ace_scroller,
body.adpanel-inline-mode.editor-active #editorModal .monaco-editor,
body.adpanel-inline-mode.editor-active #editorModal .monaco-editor .margin,
body.adpanel-inline-mode.editor-active #editorModal .monaco-editor-background {
background-color: #272727 !important;
background: #272727 !important;
}
/* Set the mini-fm background to match the #272727 background color */
body.adpanel-inline-mode.editor-active #editorModal .mini-fm,
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-header,
body.adpanel-inline-mode.editor-active #editorModal .mini-fm-entries {
background-color: #272727 !important;
background: #272727 !important;
}
/* Completely hide any scrollbar corner or native circle anomalies in Monaco/Ace */
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .scrollbar.corner,
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .corner,
body.adpanel-inline-mode.editor-active #editorModal .scrollbar.corner {
background: transparent !important;
background-color: transparent !important;
display: none !important;
opacity: 0 !important;
width: 0 !important;
height: 0 !important;
}
/* Clean up Monaco editor custom scrollbar sliders to be simple flat rectangles (no border-radius, no circles!) */
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .scrollbar.vertical .slider {
background: rgba(255, 255, 255, 0.15) !important;
border-radius: 0px !important; /* Force straight flat edge, NO circles */
display: block !important;
width: 4px !important;
opacity: 1 !important;
}
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .scrollbar.horizontal .slider {
background: rgba(255, 255, 255, 0.15) !important;
border-radius: 0px !important; /* Force straight flat edge, NO circles */
display: block !important;
height: 4px !important;
opacity: 1 !important;
}
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .scrollbar.vertical .slider:hover,
body.adpanel-inline-mode.editor-active #editorModal .monaco-scrollable-element .scrollbar.horizontal .slider:hover {
background: rgba(255, 255, 255, 0.25) !important;
}
/* Position the buttons at the absolute bottom right of the editor panel (just to the left of the mini-fm vertical border) */
body.adpanel-inline-mode.editor-active #editorModal .editor-footer-actions {
position: absolute !important;
bottom: 16px !important;
right: 304px !important;
/* floats in the bottom right corner of the editor panel, left of the 280px mini-fm */
height: auto !important;
min-height: 0 !important;
max-height: none !important;
background: transparent !important;
border: none !important;
display: flex !important;
align-items: center !important;
justify-content: flex-end !important;
padding: 0 !important;
margin: 0 !important;
z-index: 50 !important;
transition: right 0.25s ease-in-out !important;
/* smooth sliding transition */
}
/* Slide buttons to the far right edge of the screen when the mini file manager is collapsed/hidden */
body.adpanel-inline-mode.editor-active #editorModal #codeShell.mini-fm-collapsed~.editor-footer-actions {
right: 24px !important;
}
/* Force original compact button dimensions and disable scaling transitions */
body.adpanel-inline-mode.editor-active #editorModal .editor-footer-actions .icon-btn {
min-height: 38px !important;
height: 38px !important;
padding: 0 14px !important;
font-size: 13px !important;
border-radius: 9px !important;
box-shadow: none !important;
transform: none !important;
}
/* Save & Discard buttons styling overrides for editorModal in inline mode */
body.adpanel-inline-mode.editor-active #editorModal .editor-save-btn {
background: #ffffff !important;
color: #0f172a !important;
border: 1px solid #ffffff !important;
box-shadow: none !important;
background-image: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal .editor-save-btn:hover:not(:disabled) {
background: #f1f5f9 !important;
border-color: #f1f5f9 !important;
box-shadow: none !important;
color: #0f172a !important;
background-image: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal .editor-discard-btn {
background: rgba(255, 255, 255, 0.06) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
color: rgba(255, 255, 255, 0.9) !important;
box-shadow: none !important;
background-image: none !important;
}
body.adpanel-inline-mode.editor-active #editorModal .editor-discard-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1) !important;
border-color: rgba(255, 255, 255, 0.15) !important;
color: #ffffff !important;
box-shadow: none !important;
background-image: none !important;
}
/* Planner status bar matching scheduler status bar styling */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-status-bar {
position: fixed !important;
bottom: 0 !important;
left: 60px !important;
right: 0 !important;
width: auto !important;
max-width: none !important;
padding: 14px 24px !important;
background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)), #222222 !important;
border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
z-index: 9999 !important;
border-radius: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
box-sizing: border-box !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tasks-header {
margin-left: 12px !important;
margin-right: 8px !important;
margin-top: 5px !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active #schedulerCreateTab {
padding-top: 5px !important;
}
/* Match scheduler tabs design with planner tabs design */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tabs {
display: flex !important;
gap: 6px !important;
padding: 12px 20px !important;
margin: 0 16px !important;
margin-top: 8px !important;
border-radius: 14px !important;
background: rgba(255, 255, 255, 0.04) !important;
backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important;
position: relative !important;
flex-shrink: 0 !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tab {
flex: 1 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
padding: 12px 16px !important;
border: none !important;
border-radius: 12px !important;
background: transparent !important;
color: rgba(255, 255, 255, 0.45) !important;
font-size: 14px !important;
font-weight: 600 !important;
cursor: pointer !important;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tab:hover {
color: rgba(255, 255, 255, 0.72) !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-tab.active {
background: rgba(255, 255, 255, 0.08) !important;
color: rgba(255, 255, 255, 0.94) !important;
}
/* Remove background wrapper card box under Action Type */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-action-config {
background: transparent !important;
border: none !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
/* Custom select styling for Task Scheduler selects matching Store mod install selects */
body.adpanel-inline-mode #schedulerModal .select-wrap {
position: relative !important;
width: 100% !important;
box-sizing: border-box !important;
border-radius: 14px !important;
padding: 14px 44px 14px 16px !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
transition: border-radius 0.15s ease, background 0.15s ease !important;
background: rgba(255, 255, 255, 0.04) !important;
border: none !important;
box-shadow: none !important;
}
body.adpanel-inline-mode #schedulerModal .select-wrap.open {
border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important;
background: rgba(255, 255, 255, 0.08) !important;
}
body.adpanel-inline-mode #schedulerModal .select-wrap:hover,
body.adpanel-inline-mode #schedulerModal .select-wrap:focus-within {
transform: none !important;
background: rgba(255, 255, 255, 0.08) !important;
border: none !important;
box-shadow: none !important;
}
body.adpanel-inline-mode #schedulerModal .select-wrap .current {
font-size: 14px !important;
font-weight: 500 !important;
color: rgba(255, 255, 255, 0.95) !important;
}
body.adpanel-inline-mode #schedulerModal .select-wrap i {
position: absolute !important;
right: 18px !important;
top: 50% !important;
transform: translateY(-50%) !important;
color: rgba(255, 255, 255, 0.45) !important;
pointer-events: none !important;
transition: transform 0.15s ease, color 0.15s ease !important;
}
body.adpanel-inline-mode #schedulerModal .select-wrap.open i {
transform: translateY(-50%) rotate(180deg) !important;
color: #ffffff !important;
}
body.adpanel-inline-mode #schedulerModal .custom-options {
position: absolute !important;
top: 100% !important;
left: 0 !important;
right: 0 !important;
background: #252525 !important;
/* Matches select action background color */
border: 1px solid rgba(255, 255, 255, 0.05) !important;
outline: none !important;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
border-bottom-left-radius: 14px !important;
border-bottom-right-radius: 14px !important;
border-top-left-radius: 0px !important;
border-top-right-radius: 0px !important;
z-index: 2500 !important;
max-height: 200px !important;
overflow-y: auto !important;
padding: 4px 0 !important;
margin: 0 !important;
display: none;
}
body.adpanel-inline-mode #schedulerModal .custom-options.show {
display: block !important;
}
body.adpanel-inline-mode #schedulerModal .custom-options .option {
padding: 12px 16px !important;
font-size: 14px !important;
color: rgba(255, 255, 255, 0.75) !important;
cursor: pointer !important;
transition: background-color 0.12s ease, color 0.12s ease !important;
border: none !important;
outline: none !important;
text-align: left !important;
}
body.adpanel-inline-mode #schedulerModal .custom-options .option:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
transform: none !important;
}
body.adpanel-inline-mode #schedulerModal .custom-options .option.selected {
background-color: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
}
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-status-bar {
position: fixed !important;
bottom: 0 !important;
left: 60px !important;
right: 0 !important;
width: auto !important;
max-width: none !important;
padding: 14px 24px !important;
background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)), #222222 !important;
border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
z-index: 9999 !important;
border-radius: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
box-sizing: border-box !important;
}
/* Push the modal body down so the unified header (title +
description) at the top of the page has clearance. The page
header is now smaller and tighter, so we only need ~110px. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-body,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .reinstall-body {
padding-top: 0px !important;
}
/* Active state styling for sidebar buttons */
.adpanel-taskbar-btn.is-active::before {
opacity: 1 !important;
transform: scale(1) !important;
}
.adpanel-taskbar-btn.is-active {
color: #fff !important;
}
/* In inline mode we don't need the modal's own header (unified
.adpanel-page-header is used instead), so suppress it. This
covers every modal variant, including the Store's .store-header
and the reinstall modal. */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-pref-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-header,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .modal-close,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-close,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .activity-close,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .scheduler-close,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .planner-close,
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .ai-help-close {
display: none !important;
}
/* Customize .store-header to only show the tabs on the far right in inline mode */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .store-header {
position: absolute !important;
top: -46px !important;
right: 28px !important;
z-index: 70 !important;
display: flex !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
width: auto !important;
height: auto !important;
box-shadow: none !important;
}
/* Allow overflow on the inner modal container so the negative-top absolute store-header is visible */
body.adpanel-inline-mode #storeModal.adpanel-page-active .modal {
overflow: visible !important;
}
/* Customize MOD/Plugin install buttons: white background with black text and subtle hover */
#storeModal .mr-plugin-install-btn {
background: #ffffff !important;
color: #0f172a !important;
border: 1px solid #ffffff !important;
font-weight: 500 !important;
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
#storeModal .mr-plugin-install-btn:hover {
background: #e2e8f0 !important;
/* Subtly grayer hover background */
border-color: #e2e8f0 !important;
color: #0f172a !important;
transform: none !important;
}
/* Customize MOD/Plugin install popup select elements (platform and version selects) */
#mrPluginModal .select-wrap {
transition: border-color 0.15s ease, background 0.15s ease !important;
}
#mrPluginModal .select-wrap:hover,
#mrPluginModal .select-wrap:focus-within {
transform: none !important;
/* No translateY */
background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055)) !important;
/* Subtly whiter */
border-color: rgba(255, 255, 255, 0.22) !important;
/* Subtly whiter border, no blue glow */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
/* Customize the install button inside the mrPluginModal popup to match */
#mrPluginModal .mr-plugin-install-action {
background: #ffffff !important;
color: #0f172a !important;
border: 1px solid #ffffff !important;
font-weight: 500 !important;
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
#mrPluginModal .mr-plugin-install-action:hover:not(:disabled) {
background: #e2e8f0 !important;
border-color: #e2e8f0 !important;
color: #0f172a !important;
transform: none !important;
}
/* Customize plugin card hover state to remove scale and use subtle flat background highlight */
#storeModal .mr-plugin-card {
transition: border-color 0.15s ease, background 0.15s ease !important;
}
#storeModal .mr-plugin-card:hover {
transform: none !important;
/* No scaling */
background: rgba(255, 255, 255, 0.07) !important;
/* Slightly more white background than original, but very subtle */
border-color: rgba(255, 255, 255, 0.12) !important;
/* Slightly whiter border */
}
/* Custom dropdown styling for Platform and Minecraft Version selects */
#mrPluginModal .select-wrap {
border-radius: 16px !important;
padding: 14px 44px 14px 16px !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
transition: border-radius 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}
#mrPluginModal .select-wrap.open {
border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important;
}
#mrPluginModal .select-wrap .current {
font-size: 14px !important;
font-weight: 500 !important;
color: rgba(255, 255, 255, 0.95) !important;
}
#mrPluginModal .custom-options {
position: absolute !important;
top: 100% !important;
left: 0 !important;
right: 0 !important;
background: #121620 !important;
/* Flat dark color matching the popup */
border: none !important;
outline: none !important;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
border-bottom-left-radius: 16px !important;
border-bottom-right-radius: 16px !important;
border-top-left-radius: 0px !important;
border-top-right-radius: 0px !important;
z-index: 2500 !important;
max-height: 200px !important;
overflow-y: auto !important;
padding: 4px 0 !important;
margin: 0 !important;
}
#mrPluginModal .custom-options .option {
padding: 12px 16px !important;
font-size: 14px !important;
color: rgba(255, 255, 255, 0.75) !important;
cursor: pointer !important;
transition: background-color 0.12s ease, color 0.12s ease !important;
border: none !important;
outline: none !important;
}
#mrPluginModal .custom-options .option:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
/* Subtle whiter hover, no translate */
color: #ffffff !important;
transform: none !important;
}
#mrPluginModal .custom-options .option.selected {
background-color: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
}
/* Allow custom selects inside mrPluginModal to overflow the modal body and panels */
body.adpanel-inline-mode #mrPluginModal.activity-modal {
overflow: visible !important;
}
#mrPluginModal .mr-plugin-install-modal {
overflow: visible !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
background: #151922 !important;
/* Premium dark solid background matching figma popup styling */
}
#mrPluginModal .activity-body,
#mrPluginModal .mr-plugin-install-body,
#mrPluginModal .mr-plugin-install-panel {
overflow: visible !important;
mask-image: none !important;
-webkit-mask-image: none !important;
}
/* Style the custom select wrapper when disabled */
#mrPluginModal .select-wrap.disabled {
opacity: 0.45 !important;
cursor: not-allowed !important;
pointer-events: none !important;
}
/* Position the loading bar fixed at the very top of the screen */
body.adpanel-inline-mode .ptero-flash-bar {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
border-radius: 0 !important;
z-index: 9999999 !important;
}
/* Keep sub-modals (urlUploaderModal, mrPluginModal, etc.) usable */
body.adpanel-inline-mode .adpanel-page .activity-modal:not(.adpanel-page):not(.adpanel-page-active),
body.adpanel-inline-mode .adpanel-page .modal-overlay:not(.adpanel-page):not(.adpanel-page-active) {
position: fixed !important;
left: 0 !important;
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100% !important;
height: 100% !important;
background: rgba(0, 0, 0, 0.45) !important;
backdrop-filter: blur(6px) !important;
-webkit-backdrop-filter: blur(6px) !important;
display: none;
align-items: center !important;
justify-content: center !important;
z-index: 10000 !important;
padding: 0 !important;
margin: 0 !important;
}
body.adpanel-inline-mode .adpanel-page .activity-modal.show:not(.adpanel-page):not(.adpanel-page-active),
body.adpanel-inline-mode .adpanel-page .modal-overlay.show:not(.adpanel-page):not(.adpanel-page-active) {
display: flex !important;
}
/* Custom thin/sleek scrollbars inside file editor (Monaco / Ace / Textarea) without circle/dot thumbs */
#editorModal .monaco-editor .scrollbar,
#editorModal .monaco-editor .scrollbar .slider,
#editorModal .monaco-editor .monaco-scrollable-element .scrollbar,
#editorModal .monaco-editor .monaco-scrollable-element .slider {
border-radius: 0px !important;
/* Flat rectangle, absolutely no circle shape */
}
#editorModal .monaco-editor .scrollbar .slider {
background: rgba(255, 255, 255, 0.15) !important;
transition: background 0.15s ease !important;
}
#editorModal .monaco-editor .scrollbar .slider:hover {
background: rgba(255, 255, 255, 0.3) !important;
}
/* Hide webkit scrollbar arrow buttons (which can render as circles/squares) */
#editorModal ::-webkit-scrollbar-button {
display: none !important;
width: 0 !important;
height: 0 !important;
}
/* Hide Monaco decorations overview ruler on the right edge */
#editorModal .monaco-editor .decorationsOverviewRuler {
display: none !important;
}
/* Ace Editor scrollbar customization */
#editorModal #aceContainer .ace_scrollbar::-webkit-scrollbar {
width: 6px !important;
height: 6px !important;
}
#editorModal #aceContainer .ace_scrollbar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15) !important;
border-radius: 0px !important;
/* Flat rectangle */
}
#editorModal #aceContainer .ace_scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3) !important;
}
/* Textarea Editor scrollbar customization */
#editorModal #textArea::-webkit-scrollbar {
width: 6px !important;
height: 6px !important;
}
#editorModal #textArea::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15) !important;
border-radius: 0px !important;
/* Flat rectangle */
}
#editorModal #textArea::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3) !important;
}
/* Editor Footer Action Buttons Styling: White Save button and hover states with smooth 0.4s animation */
#editorModal .editor-footer-actions .icon-btn {
transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
filter 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#editorModal .editor-save-btn {
background: #ffffff !important;
color: #0f172a !important;
border: 1px solid #ffffff !important;
box-shadow: none !important;
background-image: none !important;
}
#editorModal .editor-save-btn:hover:not(:disabled) {
background: #f1f5f9 !important;
border-color: #f1f5f9 !important;
box-shadow: none !important;
color: #0f172a !important;
background-image: none !important;
}
#editorModal .editor-discard-btn {
background: rgba(255, 255, 255, 0.06) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
color: rgba(255, 255, 255, 0.9) !important;
box-shadow: none !important;
background-image: none !important;
}
#editorModal .editor-footer-actions .icon-btn.disabled,
#editorModal .editor-footer-actions .icon-btn:disabled {
opacity: 0.35 !important;
cursor: not-allowed !important;
pointer-events: none !important;
filter: grayscale(0.5) !important;
}
#editorModal .editor-discard-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1) !important;
border-color: rgba(255, 255, 255, 0.15) !important;
color: #ffffff !important;
box-shadow: none !important;
background-image: none !important;
}
/* Eliminate scaling animation and set a very subtle white color increase on hover for files toolbar buttons */
body.adpanel-inline-mode #filesModal .ghost-btn:hover::before,
body.adpanel-inline-mode #filesModal .bulk-delete:hover::before,
body.adpanel-inline-mode #filesModal .bulk-archive:hover::before,
body.adpanel-inline-mode #filesModal .select-all-control:hover::before {
transform: none !important;
/* No scaling */
background: rgba(255, 255, 255, 0.075) !important;
/* Extremely subtle background color increase */
border-color: rgba(255, 255, 255, 0.11) !important;
/* Extremely subtle border color increase */
box-shadow: none !important;
/* Clean premium flat style */
}
body.adpanel-inline-mode #filesModal .ghost-btn:active::before,
body.adpanel-inline-mode #filesModal .bulk-delete:active::before,
body.adpanel-inline-mode #filesModal .bulk-archive:active::before,
body.adpanel-inline-mode #filesModal .select-all-control:active::before {
transform: none !important;
/* No active compression scaling */
}
/* Set the font weight of all file toolbar buttons to be regular/light instead of bold */
body.adpanel-inline-mode #filesModal .ghost-btn,
body.adpanel-inline-mode #filesModal .bulk-delete,
body.adpanel-inline-mode #filesModal .bulk-archive,
body.adpanel-inline-mode #filesModal .select-all-control {
font-weight: 400 !important;
}
/* Clean Inter font styling for entry dates */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active .entry-date {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
font-size: 16px !important;
line-height: 24px !important;
height: 24px !important;
color: rgba(255, 255, 255, 0.49) !important;
font-weight: 400 !important;
letter-spacing: normal !important;
width: 186px !important;
min-width: 186px !important;
max-width: 186px !important;
text-align: left !important;
justify-content: flex-start !important;
margin-right: -15px !important;
font-variant-numeric: normal !important;
font-feature-settings: normal !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
text-rendering: optimizeLegibility !important;
}
/* If there is only one file/folder in the list, span it across both columns */
body.adpanel-inline-mode .adpanel-page.adpanel-page-active #entries li:only-child {
grid-column: 1 / -1 !important;
/* Occupies the full row width (span 2) */
}
/* Activity filter pills — active state: dark elegant gray fitting the interface */
#activityModal .activity-pill.active {
background: rgba(255, 255, 255, 0.11) !important;
color: rgba(255, 255, 255, 0.92) !important;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10) !important;
}
#activityModal .activity-pill:hover:not(.active) {
background: rgba(255, 255, 255, 0.07) !important;
color: rgba(255, 255, 255, 0.65) !important;
}
/* Make icons inside pills same visual size as the "All" text (12px) */
#activityModal .activity-pill i {
font-size: 12px !important;
line-height: 1 !important;
vertical-align: middle !important;
}
/* Widen the search row to match log entries alignment:
left matches activity-body (4px), right matches activity-body (8px) */
body.adpanel-inline-mode #activityModal .activity-search-wrap {
padding-left: 4px !important;
padding-right: 8px !important;
}
/* ========================================== */
/* MODAL POPUPS / OVERLAYS PREMIUM DARK STYLING */
/* ========================================== */
/* 1. Backdrop of the modal popups */
.activity-modal:not(.adpanel-page),
.clear-console-modal,
.store-pref-modal {
background: rgba(0, 0, 0, 0.6) !important;
backdrop-filter: blur(12px) !important;
-webkit-backdrop-filter: blur(12px) !important;
}
/* 1b. Offline 404 Overlay Smooth 0.5s Fade-In (No flashing) */
#offlineOverlay,
.notfound-modal {
position: fixed !important;
inset: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
z-index: 999999 !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
background: rgba(0, 0, 0, 0.72) !important;
backdrop-filter: blur(16px) !important;
-webkit-backdrop-filter: blur(16px) !important;
transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#offlineOverlay.show,
.notfound-modal.show {
opacity: 1 !important;
visibility: visible !important;
pointer-events: auto !important;
animation: smoothOfflineFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
@keyframes smoothOfflineFadeIn {
0% {
opacity: 0;
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
}
100% {
opacity: 1;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
}
@keyframes smoothOfflinePanelIn {
0% {
opacity: 0;
transform: scale(0.94) translateY(12px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}
#offlineOverlay .notfound-panel,
.notfound-modal .notfound-panel {
position: relative !important;
width: 90vw !important;
max-width: 480px !important;
background: #272727 !important;
border-radius: 20px !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
color: #ffffff !important;
opacity: 0 !important;
transform: scale(0.94) translateY(12px) !important;
transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
will-change: opacity, transform !important;
}
#offlineOverlay.show .notfound-panel,
.notfound-modal.show .notfound-panel {
opacity: 1 !important;
transform: scale(1) translateY(0) !important;
animation: smoothOfflinePanelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards !important;
}
/* 2. Hide clutter/glow layers in popups */
.activity-modal:not(.adpanel-page) .activity-glass-layer,
.activity-modal:not(.adpanel-page) .activity-inner-glow,
.notfound-glass-layer,
.clear-console-glass-layer {
display: none !important;
}
/* 3. Panel Container styling */
.activity-modal:not(.adpanel-page) .activity-panel,
#storePrefModal .modal,
.clear-console-content,
.editor-modal:not(.adpanel-page) .modal {
background: #272727 !important;
border-radius: 20px !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
color: #ffffff !important;
}
/* Adjust specific modal limits to render clean heights/widths */
.activity-modal:not(.adpanel-page) .activity-panel {
height: auto !important;
max-height: 90vh !important;
}
#storePrefModal .modal {
height: auto !important;
max-height: 90vh !important;
}
/* 4. Text & Titles colors */
.activity-modal:not(.adpanel-page) .activity-title,
.clear-console-title,
.notfound-title,
#storePrefTitle {
color: #ffffff !important;
font-weight: 600 !important;
}
.activity-modal:not(.adpanel-page) .activity-subtitle,
.clear-console-desc,
.notfound-desc {
color: rgba(255, 255, 255, 0.6) !important;
}
/* 5. Inputs, selects, textareas, search-bars inside popups */
.activity-modal:not(.adpanel-page) input[type="text"],
.activity-modal:not(.adpanel-page) select,
.activity-modal:not(.adpanel-page) textarea,
.clear-console-content input,
.store-pref-modal input {
background-color: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 8px !important;
color: #ffffff !important;
padding: 10px 14px !important;
font-size: 14px !important;
transition: all 0.2s ease !important;
}
.activity-modal:not(.adpanel-page) input[type="text"]:focus,
.activity-modal:not(.adpanel-page) select:focus,
.activity-modal:not(.adpanel-page) textarea:focus {
border-color: rgba(255, 255, 255, 0.2) !important;
background-color: rgba(255, 255, 255, 0.06) !important;
outline: none !important;
}
/* Custom select wrap for platform version install dropdowns */
.activity-modal:not(.adpanel-page) .select-wrap {
background-color: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 8px !important;
color: #ffffff !important;
transition: all 0.2s ease !important;
}
.activity-modal:not(.adpanel-page) .select-wrap:hover {
border-color: rgba(255, 255, 255, 0.15) !important;
background-color: rgba(255, 255, 255, 0.06) !important;
}
.activity-modal:not(.adpanel-page) .custom-options {
background-color: #272727 !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 8px !important;
}
.activity-modal:not(.adpanel-page) .custom-option {
color: rgba(255, 255, 255, 0.8) !important;
transition: all 0.2s ease !important;
}
.activity-modal:not(.adpanel-page) .custom-option:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
}
/* 6. Descriptions/Info alerts */
.url-uploader-desc,
.backup-create-info {
background: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 12px !important;
color: rgba(255, 255, 255, 0.7) !important;
padding: 12px 16px !important;
}
/* 7. Action buttons inside popups */
/* Primary/Confirm Button (Save/Confirm action style) */
.activity-modal:not(.adpanel-page) .backup-create-confirm,
#clearConsoleConfirm,
.notfound-btn-primary {
background: #ffffff !important;
color: #1e1e1e !important;
font-weight: 500 !important;
border-radius: 8px !important;
border: none !important;
padding: 10px 20px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
transition: all 0.2s ease !important;
cursor: pointer !important;
}
.activity-modal:not(.adpanel-page) .backup-create-confirm:hover:not(:disabled),
#clearConsoleConfirm:hover,
.notfound-btn-primary:hover {
background: #e2e8f0 !important;
transform: none !important;
}
.activity-modal:not(.adpanel-page) .backup-create-confirm:active:not(:disabled),
#clearConsoleConfirm:active,
.notfound-btn-primary:active {
background: #cbd5e1 !important;
transform: none !important;
}
.activity-modal:not(.adpanel-page) .backup-create-confirm:disabled {
background: rgba(255, 255, 255, 0.15) !important;
color: rgba(255, 255, 255, 0.35) !important;
cursor: not-allowed !important;
pointer-events: none !important;
}
/* Force icons and text within white buttons to be dark text color */
.activity-modal:not(.adpanel-page) .backup-create-confirm *,
#clearConsoleConfirm * {
color: #1e1e1e !important;
}
/* Secondary/Cancel Button (Discard action style) */
.activity-modal:not(.adpanel-page) .backup-create-cancel,
#clearConsoleCancel {
background: rgba(255, 255, 255, 0.05) !important;
color: #ffffff !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 8px !important;
padding: 10px 20px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
transition: all 0.2s ease !important;
cursor: pointer !important;
}
.activity-modal:not(.adpanel-page) .backup-create-cancel:hover,
#clearConsoleCancel:hover {
background: rgba(255, 255, 255, 0.08) !important;
transform: none !important;
}
.activity-modal:not(.adpanel-page) .backup-create-cancel:active,
#clearConsoleCancel:active {
background: rgba(255, 255, 255, 0.03) !important;
transform: none !important;
}
/* Minecraft EULA Modal Buttons Styling */
#eulaModal .btn-cancel,
#eulaCancel {
background: transparent !important;
background-color: transparent !important;
color: rgba(255, 255, 255, 0.88) !important;
border: 1px solid rgba(255, 255, 255, 0.16) !important;
border-radius: 12px !important;
padding: 12px 20px !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
font-size: 16px !important;
font-weight: 400 !important;
cursor: pointer !important;
transform: none !important;
box-shadow: none !important;
transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}
#eulaModal .btn-cancel:hover,
#eulaCancel:hover {
background: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.28) !important;
color: #ffffff !important;
transform: none !important;
}
#eulaModal .btn-cancel:active,
#eulaCancel:active {
background: rgba(255, 255, 255, 0.04) !important;
transform: none !important;
}
#eulaModal .btn-accept,
#eulaAccept {
background: #3b82f6 !important;
background-color: #3b82f6 !important;
color: #ffffff !important;
border: none !important;
border-radius: 12px !important;
padding: 12px 20px !important;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
font-size: 16px !important;
font-weight: 400 !important;
cursor: pointer !important;
transform: none !important;
box-shadow: none !important;
transition: box-shadow 0.18s ease, background 0.18s ease !important;
}
#eulaModal .btn-accept:hover:not(:disabled),
#eulaAccept:hover:not(:disabled) {
transform: none !important;
box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.16) !important;
}
#eulaModal .btn-accept:active:not(:disabled),
#eulaAccept:active:not(:disabled) {
transform: none !important;
box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.15) !important;
}
#eulaModal .btn-accept:disabled,
#eulaAccept:disabled {
opacity: 0.5 !important;
cursor: default !important;
transform: none !important;
}
/* Backups page specific pill styles to avoid turquoise state and turn darker gray */
#backupsModal .activity-pill {
transition: all 0.2s ease !important;
transform: none !important;
}
#backupsModal .activity-pill.active {
background: rgba(255, 255, 255, 0.06) !important;
color: rgba(255, 255, 255, 0.85) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
box-shadow: none !important;
}
#backupsModal .activity-pill:hover {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
transform: none !important;
}
#backupsModal .activity-pill:active {
background: rgba(0, 0, 0, 0.25) !important; /* clean dark gray/charcoal */
color: #ffffff !important;
transform: none !important;
}
/* 8. Close buttons */
.activity-modal:not(.adpanel-page) .activity-close,
.store-pref-modal .store-close {
background: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
color: rgba(255, 255, 255, 0.8) !important;
border-radius: 8px !important;
width: 32px !important;
height: 32px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
transition: all 0.2s ease !important;
padding: 0 !important;
cursor: pointer !important;
}
.activity-modal:not(.adpanel-page) .activity-close:hover,
.store-pref-modal .store-close:hover {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
}
/* 9. Store Preference dialog custom card styles */
.store-pref-card {
background: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 12px !important;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.store-pref-card:hover {
background: rgba(255, 255, 255, 0.06) !important;
border-color: rgba(255, 255, 255, 0.15) !important;
transform: translateY(-2px) !important;
}
.store-pref-card .store-pref-title {
color: #ffffff !important;
}
.store-pref-card .store-pref-desc {
color: rgba(255, 255, 255, 0.6) !important;
}
/* 10. Scheduler create button overrides */
.scheduler-create-btn {
background: rgba(255, 255, 255, 0.08) !important;
color: #ffffff !important;
border: none !important;
border-radius: 14px !important;
box-shadow: none !important;
font-weight: 400 !important;
font-size: 13px !important;
padding: 12px 16px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
cursor: pointer !important;
transform: none !important;
transition: background-color 0.2s ease, color 0.2s ease !important;
}
.scheduler-create-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.12) !important;
transform: none !important;
}
.scheduler-create-btn:active:not(:disabled) {
background: rgba(255, 255, 255, 0.16) !important;
transform: none !important;
}
.scheduler-create-btn * {
color: #ffffff !important;
}
.scheduler-create-btn i {
font-size: 10px !important;
}
</style>
</head>
<body class="<%= (locals.isInstalling) ? 'server-is-installing' : '' %>" data-agent-enabled="<%= locals.agentEnabled === true %>">
<%- include("partials/svg-sprite") %>
<div id="mobile-block-overlay">
<h2 style="color: white; font-weight: 700; font-size: 24px;">If you're on mobile, turn on your Desktop Mode or use
Landscape to work</h2>
</div>
<svg xmlns="http://www.w3.org/2000/svg" style="display:none;">
<defs>
<filter id="glass-distortion" x="0%" y="0%" width="100%" height="100%">
<feTurbulence type="fractalNoise" baseFrequency="0.008 0.008" numOctaves="2" seed="92" result="noise" />
<feGaussianBlur in="noise" stdDeviation="2" result="blurred" />
<feDisplacementMap in="SourceGraphic" in2="blurred" scale="77" xChannelSelector="R" yChannelSelector="G" />
</filter>
</defs>
</svg>
<div id="offlineOverlay" class="notfound-modal <%= (typeof nodeOnline !== 'undefined' && nodeOnline === false) ? 'show' : '' %>" aria-hidden="<%= (typeof nodeOnline !== 'undefined' && nodeOnline === false) ? 'false' : 'true' %>">
<div class="notfound-glass-layer notfound-glass-layer-1"></div>
<div class="notfound-glass-layer notfound-glass-layer-2"></div>
<div class="notfound-panel" role="dialog" aria-modal="true">
<div class="notfound-content">
<div class="notfound-text">
<div class="notfound-code">404</div>
<div class="notfound-title">Page Not Found</div>
<div class="notfound-desc offline-text">Don't panic! This is due to an offline node or a dangling server.
</div>
</div>
<div class="notfound-actions">
<a href="/" class="notfound-btn-primary">
<i class="fa-solid fa-house"></i>
<span>Back to Dashboard</span>
</a>
</div>
</div>
</div>
</div>
<!-- Figma Redesign Layout -->
<div class="adpanel-figma-container">
<div class="adpanel-figma-layout">
<!-- Top Row: Console Card & Stats Card -->
<div class="adpanel-main-row">
<!-- Unified page header (shown only when an inline page is active) -->
<div class="adpanel-page-header" id="adpanelPageHeader" hidden>
<div class="adpanel-page-title" id="adpanelPageTitle">Files</div>
<div class="adpanel-page-description" id="adpanelPageDescription">Explore and manage files</div>
</div>
<div class="adpanel-console-container">
<!-- Console Card -->
<div class="adpanel-console-card">
<div class="adpanel-console-header">
<div class="adpanel-action-buttons">
<button class="adpanel-action-btn run-btn" data-action="run" title="Start Server">
<svg width="16" height="16" viewBox="0 0 421 467" aria-hidden="true"><use href="#icon-start-icon"/></svg>
</button>
<button class="adpanel-action-btn stop-btn" data-action="stop" title="Stop Server">
<svg width="16" height="16" viewBox="0 0 118 118" aria-hidden="true"><use href="#icon-stop-icon"/></svg>
</button>
<button class="adpanel-action-btn kill-btn" data-action="kill" title="Kill Server">
<svg width="22" height="22" viewBox="0 0 484 511" aria-hidden="true"><use href="#icon-kill-icon"/></svg>
</button>
</div>
<div class="adpanel-console-line"></div>
</div>
<div class="adpanel-console-body">
<div id="consoleInstallingOverlay" class="console-installing-overlay <%= (locals.isInstalling) ? 'active' : '' %>" aria-live="polite">
<div class="console-installing-title">Installing</div>
<div class="console-installing-track">
<div class="console-installing-fill" id="consoleInstallingFill"></div>
</div>
</div>
<svg id="consoleLoadingSpinner" class="console-loading-spinner <%= (locals.isInstalling) ? 'hidden' : '' %>" width="95" height="95" viewBox="0 0 95 95" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<circle cx="47.5" cy="47.5" r="43.5" stroke="rgba(52, 52, 52, 0.75)" stroke-width="8" />
<circle cx="47.5" cy="47.5" r="43.5" stroke="#5A5A5A" stroke-width="4" stroke-linecap="round" stroke-dasharray="80 193" />
</svg>
<!-- The console logs: placeholder at first, styled identically, but wired real panel logs -->
<pre id="console" class="adpanel-console-logs" aria-live="polite"><div id="consoleContent"></div></pre>
</div>
<div class="adpanel-console-footer">
<div class="adpanel-send-command-wrapper">
<svg class="adpanel-send-icon" width="28" height="28" viewBox="0 0 317 341" aria-hidden="true"><use href="#icon-sendcommand-icon"/></svg>
<input id="cmdInput" class="adpanel-command-input" type="text" placeholder="Type a command"
autocomplete="off" />
<button class="adpanel-clear-btn" data-action="clear" title="Clear Console">
<svg width="18" height="18" viewBox="0 0 449 511" aria-hidden="true"><use href="#icon-clear-icon"/></svg>
</button>
</div>
</div>
</div>
</div>
<div class="adpanel-stats-container">
<!-- Stats Card -->
<div class="adpanel-stats-card">
<div class="adpanel-stats-interior">
<!-- Connectivity -->
<div class="adpanel-stat-item connectivity-copyable" id="connectivityStatCard"
title="Click to copy IP/Port">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 305 305" aria-hidden="true"><use href="#icon-connectivity-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<span class="adpanel-stat-title">Connectivity</span>
<span class="adpanel-stat-value" id="figmaConnectivityVal">
<% if (typeof ip !=='undefined' && ip) { %>
<%= ip %>
<% if (typeof port !=='undefined' && port) { %>:<%= port %>
<% } %>
<% } else { %>Loading...<% } %>
</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- RAM -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon adpanel-ram-icon">
<svg width="44" height="44" viewBox="0 0 297 297" aria-hidden="true"><use href="#icon-ram-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<div class="adpanel-stat-header-row">
<span class="adpanel-stat-title">RAM</span>
<div class="adpanel-progress-container">
<div class="adpanel-progress-bar used-bar" id="figmaRamBar"></div>
</div>
</div>
<span class="adpanel-stat-value" id="figmaRamLabel">—</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- CPU -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 300 300" aria-hidden="true"><use href="#icon-cpu-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<div class="adpanel-stat-header-row">
<span class="adpanel-stat-title">CPU</span>
<div class="adpanel-progress-container">
<div class="adpanel-progress-bar used-bar" id="figmaCpuBar"></div>
</div>
</div>
<span class="adpanel-stat-value" id="figmaCpuLabel">—</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- Storage -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 312 312" aria-hidden="true"><use href="#icon-storage-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<div class="adpanel-stat-header-row">
<span class="adpanel-stat-title">Storage</span>
<div class="adpanel-progress-container">
<div class="adpanel-progress-bar used-bar" id="figmaStorageBar"></div>
</div>
</div>
<span class="adpanel-stat-value" id="figmaStorageLabel">—</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- Uptime -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 310 310" aria-hidden="true"><use href="#icon-uptime-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<span class="adpanel-stat-title">Uptime</span>
<span class="adpanel-stat-value" id="figmaUptimeLabel">—</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- Network In -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 311 311" aria-hidden="true"><use href="#icon-networkin-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<span class="adpanel-stat-title">Network In</span>
<span class="adpanel-stat-value" id="figmaNetworkInLabel">—</span>
</div>
</div>
<div class="adpanel-stat-separator"></div>
<!-- Network Out -->
<div class="adpanel-stat-item">
<div class="adpanel-stat-icon">
<svg width="44" height="44" viewBox="0 0 313 313" aria-hidden="true"><use href="#icon-networkout-icon"/></svg>
</div>
<div class="adpanel-stat-details">
<span class="adpanel-stat-title">Network Out</span>
<span class="adpanel-stat-value" id="figmaNetworkOutLabel">—</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom Row: Taskbar Wrapper constrained to Left Column width -->
<div class="adpanel-bottom-row">
<div class="adpanel-taskbar-container" id="adpanel-taskbar-container">
<!-- Toggle button - outside wrapper so it's not clipped by overflow:hidden -->
<button class="adpanel-sidebar-toggle" id="adpanelSidebarToggle" aria-label="Toggle Sidebar">
<svg width="12" height="12" viewBox="0 0 70 69" aria-hidden="true"><use href="#icon-minimize-icon"/></svg>
</button>
<!-- Bottom Taskbar -->
<div class="adpanel-taskbar-wrapper" id="adpanel-taskbar">
<div class="adpanel-taskbar-logo">
<a href="/">
<img
src="<%= (branding && branding.logoUrl) ? branding.logoUrl : '/images/adpanel-dark.svg' %>"
alt="ADPanel Logo" />
</a>
</div>
<div class="adpanel-taskbar-separator"></div>
<div class="adpanel-taskbar-nav-group">
<!-- CSP sets script-src-attr 'none', so navigation is bound in
bot.js's data-action registry ("open-console") instead of an
inline onclick, which the browser would silently block. -->
<button class="adpanel-taskbar-btn" id="dockConsole" data-action="open-console" title="Console">
<svg width="24" height="24" viewBox="0 0 302 302" aria-hidden="true"><use href="#icon-terminal-icon"/></svg>
<span>Console</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockFiles" data-action="open-files" title="Files">
<svg width="24" height="24" viewBox="0 0 303 303" aria-hidden="true"><use href="#icon-files-icon"/></svg>
<span>Files</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockStore" data-action="open-store" title="Store">
<svg width="24" height="24" viewBox="0 0 299 299" aria-hidden="true"><use href="#icon-store-icon"/></svg>
<span>Store</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockActivity" data-action="open-activity" title="Activity">
<svg width="24" height="24" viewBox="0 0 323 323" aria-hidden="true"><use href="#icon-activity-icon"/></svg>
<span>Activity</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockBackups" data-action="open-backups" title="Backups">
<svg width="28" height="28" viewBox="0 0 391 391" aria-hidden="true"><use href="#icon-backups-icon"/></svg>
<span>Backups</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockScheduler" data-action="open-scheduler" title="Scheduler">
<svg width="24" height="24" viewBox="0 0 323 323" aria-hidden="true"><use href="#icon-scheduler-icon"/></svg>
<span>Scheduler</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<button class="adpanel-taskbar-btn" id="dockPlanner" data-action="open-planner" title="Planner">
<svg width="24" height="24" viewBox="0 0 306 306" aria-hidden="true"><use href="#icon-planner-icon"/></svg>
<span>Planner</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<% if (locals.agentEnabled) { %>
<button class="adpanel-taskbar-btn" id="dockAiHelp" data-action="open-ai-help" title="Agent">
<svg width="24" height="24" viewBox="0 0 296 296" aria-hidden="true"><use href="#icon-agent-icon"/></svg>
<span>Agent</span>
</button>
<div class="adpanel-taskbar-separator"></div>
<% } %>
<button class="adpanel-taskbar-btn" id="dockReinstall" data-action="open-reinstall" title="Reinstall">
<svg width="24" height="24" viewBox="0 0 301 301" aria-hidden="true"><use href="#icon-reinstall-icon"/></svg>
<span>Reinstall</span>
</button>
<div class="adpanel-taskbar-separator"></div>
</div>
<div class="adpanel-taskbar-actions-group">
<button class="adpanel-taskbar-btn" id="dockRun" data-action="run" title="Start">
<svg width="24" height="24" viewBox="0 0 421 467" aria-hidden="true"><use href="#icon-start-icon"/></svg>
<span>Start</span>
</button>
<button class="adpanel-taskbar-btn" id="dockStop" data-action="stop" title="Stop">
<svg width="24" height="24" viewBox="0 0 118 118" aria-hidden="true"><use href="#icon-stop-icon"/></svg>
<span>Stop</span>
</button>
<button class="adpanel-taskbar-btn" id="dockKill" data-action="kill" title="Kill">
<svg width="24" height="24" viewBox="0 0 484 511" aria-hidden="true"><use href="#icon-kill-icon"/></svg>
<span>Kill</span>
</button>
</div>
</div>
</div>
<div class="adpanel-empty-container"></div>
</div>
</div>
<script nonce="<%= cspNonce %>">
(function () {
function resizeFigmaLayout() {
const layout = document.querySelector('.adpanel-figma-layout');
if (!layout) return;
const w = window.innerWidth;
const h = window.innerHeight;
// Calculate base scale factor based on the browser window size in CSS pixels.
const scaleX = w / 1920;
const scaleY = h / 1080;
let scale = Math.min(scaleX, scaleY);
// Apply dampening factor for screen scales above 0.65.
// This ensures that on small monitors/laptops (scale <= 0.65), the layout fits perfectly,
// while on larger monitors (scale > 0.65) the elements grow slower, naturally appearing
// more compact and centered in the viewport as the screen size increases.
if (scale > 0.65) {
scale = 0.65 + (scale - 0.65) * 0.45;
}
// Cap the scale factor at 1.0 maximum on all screens.
// This keeps the layout at its original design size (1920x1080) on large screens (QHD, 4K),
// making it look clean, centered, and compact in the middle of the screen.
if (scale > 1.0) {
scale = 1.0;
}
const container = document.querySelector('.adpanel-figma-container');
const mainRow = document.querySelector('.adpanel-main-row');
const bottomRow = document.querySelector('.adpanel-bottom-row');
const consoleCard = document.querySelector('.adpanel-console-card');
const statsCard = document.querySelector('.adpanel-stats-card');
const taskbarWrapper = document.querySelector('.adpanel-taskbar-wrapper');
const isInlineMode = document.body.classList.contains('adpanel-inline-mode');
if (isInlineMode) {
const sbWidth = window.adpanelSidebarExpanded ? 156 : 92;
if (layout) {
layout.style.width = '100%';
layout.style.height = '100%';
layout.style.transform = 'none';
layout.style.left = '0px';
layout.style.top = '0px';
}
if (bottomRow) {
bottomRow.style.position = 'absolute';
bottomRow.style.left = '0px';
bottomRow.style.top = '0px';
bottomRow.style.bottom = 'auto';
bottomRow.style.width = sbWidth + 'px';
bottomRow.style.height = `${h / scale}px`;
bottomRow.style.transform = `scale(${scale})`;
bottomRow.style.transformOrigin = 'top left';
bottomRow.style.zIndex = '60';
}
if (mainRow) {
mainRow.style.position = 'absolute';
mainRow.style.left = `${sbWidth * scale}px`;
mainRow.style.top = '0px';
mainRow.style.width = `${w - sbWidth * scale}px`; // No width subtraction so right edge aligns with viewport border
mainRow.style.height = `${h}px`;
mainRow.style.transform = 'none';
mainRow.style.transformOrigin = 'top left';
}
if (taskbarWrapper) {
taskbarWrapper.style.borderRadius = '0 37px 37px 0';
taskbarWrapper.style.boxShadow = 'none';
taskbarWrapper.style.borderRight = '1px solid rgba(255, 255, 255, 0.03)';
taskbarWrapper.style.borderLeft = 'none';
taskbarWrapper.style.borderTop = 'none';
taskbarWrapper.style.borderBottom = 'none';
}
layout.style.opacity = '1';
return;
}
// Detect tiny screens under 11 inches (viewport width under 1024px)
const isTinyScreen = w < 1024;
if (isTinyScreen) {
// Case 0: Tiny screens under 11 inches
if (container) {
container.style.overflow = 'auto';
}
layout.style.width = '1920px';
layout.style.height = '1080px';
layout.style.transform = `scale(${scale})`;
layout.style.transformOrigin = 'top left';
layout.style.top = '0px';
layout.style.left = '0px';
if (bottomRow) {
bottomRow.style.position = 'absolute';
bottomRow.style.transform = 'none';
bottomRow.style.left = '0px';
bottomRow.style.top = '0px';
bottomRow.style.bottom = 'auto';
const sbWidth = window.adpanelSidebarExpanded ? 156 : 92;
bottomRow.style.width = sbWidth + 'px';
bottomRow.style.height = '1080px';
}
if (taskbarWrapper) {
taskbarWrapper.style.borderRadius = '0 37px 37px 0';
taskbarWrapper.style.boxShadow = 'none';
taskbarWrapper.style.borderRight = '1px solid rgba(255, 255, 255, 0.03)';
taskbarWrapper.style.borderLeft = 'none';
taskbarWrapper.style.borderTop = 'none';
taskbarWrapper.style.borderBottom = 'none';
}
if (mainRow) {
mainRow.style.position = 'absolute';
mainRow.style.transform = 'none';
const remainingDesignSpace = (w / scale) - 92 - 1828;
if (remainingDesignSpace > 0) {
mainRow.style.left = `${92 + remainingDesignSpace / 2}px`;
} else {
mainRow.style.left = '92px';
}
mainRow.style.top = '0px';
mainRow.style.width = '1828px';
mainRow.style.height = '1080px';
}
if (consoleCard) {
consoleCard.style.height = '1040px';
const sbOffset = window.adpanelSidebarExpanded ? 64 : 0;
consoleCard.style.width = (1166 - sbOffset) + 'px';
consoleCard.style.left = (42 + sbOffset) + 'px';
consoleCard.style.top = '20px';
}
const hasWrite = typeof window.hasPerm === 'function' ? window.hasPerm('console_write') : false;
const consoleBody = document.querySelector('.adpanel-console-body');
if (consoleBody) {
consoleBody.style.height = hasWrite ? '860px' : '934px';
consoleBody.style.left = '32px';
consoleBody.style.top = '76px';
}
const consoleFooter = document.querySelector('.adpanel-console-footer');
if (consoleFooter) {
consoleFooter.style.display = hasWrite ? '' : 'none';
consoleFooter.style.top = '945px';
consoleFooter.style.left = '32px';
}
if (statsCard) {
statsCard.style.height = '790px';
statsCard.style.width = '548px';
statsCard.style.left = '1243px';
statsCard.style.top = '19px';
statsCard.style.transform = 'none';
}
} else {
if (taskbarWrapper) {
taskbarWrapper.style.borderRadius = '0 37px 37px 0';
taskbarWrapper.style.boxShadow = 'none';
taskbarWrapper.style.borderRight = '1px solid rgba(255, 255, 255, 0.03)';
taskbarWrapper.style.borderLeft = 'none';
taskbarWrapper.style.borderTop = 'none';
taskbarWrapper.style.borderBottom = 'none';
}
if (statsCard) {
statsCard.style.transform = 'none';
}
const scaledH = 1080 * scale;
if (scaledH > h) {
// Case 1: Layout overflows the viewport height (small monitors under 13 inch / high zoom)
if (container) {
container.style.overflow = 'auto';
}
layout.style.width = '100%';
layout.style.height = '100%';
layout.style.transform = 'none';
layout.style.left = '0px';
layout.style.top = '0px';
const sbWidth = window.adpanelSidebarExpanded ? 156 : 92;
if (bottomRow) {
bottomRow.style.position = 'absolute';
bottomRow.style.width = sbWidth + 'px';
bottomRow.style.height = '1080px';
bottomRow.style.left = '0px';
bottomRow.style.top = '0px';
bottomRow.style.bottom = 'auto';
bottomRow.style.transform = `scale(${scale})`;
bottomRow.style.transformOrigin = 'top left';
}
// Calculate available mainRow width in design space
const availableMainRowWidth = (w - 92 * scale) / scale;
let mainRowWidth = 1828;
let mainRowLeft = 92 * scale;
// Detect physical screen size using window.screen.width (ignores browser zoom)
const isLargePhysicalScreen = window.screen && window.screen.width > 1920;
// In expanded sidebar mode, also push main content right (design-space units)
const sbExpandOffset = window.adpanelSidebarExpanded ? 64 : 0;
if (isLargePhysicalScreen) {
// Screen is physically 18+ inches (wider screen like QHD / 4K)
mainRowWidth = 1828;
const remainingX = (w - (92 * scale) - (1828 * scale)) / 2;
mainRowLeft = (92 * scale) + Math.max(0, remainingX);
} else {
// Screen is 17" or smaller physically (e.g. 15.6" laptop) - stretch to fill
mainRowWidth = Math.max(1400, availableMainRowWidth);
mainRowLeft = 92 * scale;
}
if (mainRow) {
mainRow.style.position = 'absolute';
mainRow.style.width = `${mainRowWidth}px`;
mainRow.style.height = '1080px';
mainRow.style.left = `${mainRowLeft}px`;
mainRow.style.top = '0px';
mainRow.style.transform = `scale(${scale})`;
mainRow.style.transformOrigin = 'top left';
}
if (consoleCard) {
consoleCard.style.height = '1040px';
consoleCard.style.width = `${mainRowWidth - 662 - sbExpandOffset}px`;
consoleCard.style.left = (42 + sbExpandOffset) + 'px';
consoleCard.style.top = '20px';
}
const hasWrite = typeof window.hasPerm === 'function' ? window.hasPerm('console_write') : false;
const consoleBody = document.querySelector('.adpanel-console-body');
if (consoleBody) {
consoleBody.style.height = hasWrite ? '860px' : '934px';
consoleBody.style.left = '32px';
consoleBody.style.top = '76px';
}
const consoleFooter = document.querySelector('.adpanel-console-footer');
if (consoleFooter) {
consoleFooter.style.display = hasWrite ? '' : 'none';
consoleFooter.style.top = '945px';
consoleFooter.style.left = '32px';
}
if (statsCard) {
statsCard.style.height = '790px';
statsCard.style.width = '548px';
statsCard.style.left = `${mainRowWidth - 548 - 37}px`;
statsCard.style.top = '19px';
}
} else {
// Case 2: Layout fits the viewport height (large monitors / low zoom)
if (container) {
container.style.overflow = 'hidden';
}
layout.style.width = '100%';
layout.style.height = '100%';
layout.style.transform = 'none';
layout.style.left = '0px';
layout.style.top = '0px';
const extraSpace = (h / scale) - 1080;
const extraHeight = Math.max(0, extraSpace);
const mainRowHeight = 1080 + extraHeight;
const sbWidth2 = window.adpanelSidebarExpanded ? 156 : 92;
if (bottomRow) {
bottomRow.style.position = 'absolute';
bottomRow.style.width = sbWidth2 + 'px';
bottomRow.style.height = `${1080 + extraHeight}px`;
bottomRow.style.left = '0px';
bottomRow.style.top = '0px';
bottomRow.style.bottom = 'auto';
bottomRow.style.transform = `scale(${scale})`;
bottomRow.style.transformOrigin = 'top left';
}
// Calculate available mainRow width in design space
const availableMainRowWidth = (w - 92 * scale) / scale;
let mainRowWidth = 1828;
let mainRowLeft = 92 * scale;
// Detect physical screen size using window.screen.width (ignores browser zoom)
const isLargePhysicalScreen = window.screen && window.screen.width > 1920;
// In expanded sidebar mode, also push main content right (design-space units)
const sbExpandOffset2 = window.adpanelSidebarExpanded ? 64 : 0;
if (isLargePhysicalScreen) {
// Screen is physically 18+ inches (wider screen like QHD / 4K)
mainRowWidth = 1828;
const remainingX = (w - (92 * scale) - (1828 * scale)) / 2;
mainRowLeft = (92 * scale) + Math.max(0, remainingX);
} else {
// Screen is 17" or smaller physically (e.g. 15.6" laptop) - stretch to fill
mainRowWidth = Math.max(1400, availableMainRowWidth);
mainRowLeft = 92 * scale;
}
if (mainRow) {
mainRow.style.position = 'absolute';
mainRow.style.width = `${mainRowWidth}px`;
mainRow.style.height = `${mainRowHeight}px`;
mainRow.style.left = `${mainRowLeft}px`;
mainRow.style.top = '0px';
mainRow.style.transform = `scale(${scale})`;
mainRow.style.transformOrigin = 'top left';
}
if (consoleCard) {
consoleCard.style.height = `${1040 + extraHeight}px`;
consoleCard.style.width = `${mainRowWidth - 662 - sbExpandOffset2}px`;
consoleCard.style.left = (42 + sbExpandOffset2) + 'px';
consoleCard.style.top = '20px';
}
const hasWrite = typeof window.hasPerm === 'function' ? window.hasPerm('console_write') : false;
const consoleBody = document.querySelector('.adpanel-console-body');
if (consoleBody) {
consoleBody.style.height = hasWrite ? `${860 + extraHeight}px` : `${934 + extraHeight}px`;
consoleBody.style.left = '32px';
consoleBody.style.top = '76px';
}
const consoleFooter = document.querySelector('.adpanel-console-footer');
if (consoleFooter) {
consoleFooter.style.display = hasWrite ? '' : 'none';
consoleFooter.style.top = `${945 + extraHeight}px`;
consoleFooter.style.left = '32px';
}
if (statsCard) {
statsCard.style.height = '790px';
statsCard.style.width = '548px';
statsCard.style.left = `${mainRowWidth - 548 - 37}px`;
statsCard.style.top = '19px';
}
}
}
// Reveal the layout smoothly once calculations and scaling have been applied
layout.style.opacity = '1';
}
window.adpanelResizeLayout = resizeFigmaLayout;
window.addEventListener('resize', resizeFigmaLayout);
document.addEventListener('DOMContentLoaded', resizeFigmaLayout);
// Execute scaling cycle immediately to prevent flash of unstyled content
resizeFigmaLayout();
setTimeout(resizeFigmaLayout, 50);
setTimeout(resizeFigmaLayout, 150);
})();
</script>
<script nonce="<%= cspNonce %>">
(function () {
const EXPANDED_WIDTH = 156; // 92 + 64
const COLLAPSED_WIDTH = 92;
const taskbar = document.getElementById('adpanel-taskbar');
const toggleBtn = document.getElementById('adpanelSidebarToggle');
const container = document.getElementById('adpanel-taskbar-container');
if (!taskbar || !toggleBtn) return;
let isExpanded = false;
let cleanupTimer = null;
function beginTransition() {
taskbar.classList.add('is-toggling');
const consoleCard = document.querySelector('.adpanel-console-card');
const bottomRow = document.querySelector('.adpanel-bottom-row');
if (consoleCard) {
consoleCard.style.transition = 'left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1)';
}
if (bottomRow) {
bottomRow.style.transition = 'width 0.4s cubic-bezier(0.4, 0, 0.2, 1)';
}
}
function endTransition() {
taskbar.classList.remove('is-toggling');
const consoleCard = document.querySelector('.adpanel-console-card');
const bottomRow = document.querySelector('.adpanel-bottom-row');
if (consoleCard) {
consoleCard.style.transition = '';
}
if (bottomRow) {
bottomRow.style.transition = '';
}
}
function applyExpanded(expanded) {
window.adpanelSidebarExpanded = expanded;
document.body.classList.toggle('sidebar-expanded', expanded);
if (expanded) {
taskbar.classList.add('expanded');
if (container) container.classList.add('is-expanded');
} else {
taskbar.classList.remove('expanded');
if (container) container.classList.remove('is-expanded');
}
// Re-run layout so console/stats card positions update correctly
if (typeof window.adpanelResizeLayout === 'function') {
window.adpanelResizeLayout();
}
}
toggleBtn.addEventListener('click', function (e) {
e.stopPropagation();
clearTimeout(cleanupTimer);
beginTransition();
requestAnimationFrame(function () {
isExpanded = !isExpanded;
applyExpanded(isExpanded);
});
cleanupTimer = setTimeout(endTransition, 500);
});
taskbar.addEventListener('transitionend', function (e) {
if (e.target === taskbar && e.propertyName === 'width') {
endTransition();
}
});
})();
</script>
<script nonce="<%= cspNonce %>">
// Defer initialization until all modals have been parsed and exist in DOM.
function adpanelInitInlinePages() {
(function () {
// Inline page system: convert sidebar-driven modal popups into
// inline pages that occupy the same Figma-scaled space as the
// console + stats cards. Click a sidebar item -> swap the page.
const PAGE_IDS = ['files', 'store', 'activity', 'backups', 'scheduler', 'planner', 'aihelp', 'reinstall'];
const pageHeader = document.getElementById('adpanelPageHeader');
const pageTitle = document.getElementById('adpanelPageTitle');
const pageDescription = document.getElementById('adpanelPageDescription');
const pages = {};
PAGE_IDS.forEach(id => {
const el = document.querySelector('[data-page-id="' + id + '"]');
if (el) pages[id] = el;
});
let currentPageId = null;
// Move all .adpanel-page wrappers into the Figma main row so they
// participate in the same scale/position system as the console +
// stats cards. Without this they'd render at body level and ignore
// the Figma transform.
const mainRow = document.querySelector('.adpanel-main-row');
if (mainRow) {
const editorModal = document.getElementById('editorModal');
if (editorModal && editorModal.parentNode !== mainRow) {
mainRow.appendChild(editorModal);
}
Object.values(pages).forEach(p => {
if (p && p.parentNode !== mainRow) {
mainRow.appendChild(p);
}
});
}
function showConsoleView() {
document.body.classList.remove('adpanel-inline-mode');
Object.values(pages).forEach(p => {
if (!p) return;
p.classList.remove('adpanel-page-active');
// Also remove the .show class so the modal returns to its
// hidden state instead of appearing as a floating overlay.
p.classList.remove('show');
// CRITICAL: Explicitly force display:none so the .modal-overlay /
// .activity-modal base CSS (display:flex + position:fixed + inset:0)
// doesn't reappear when body loses adpanel-inline-mode, which would
// create an invisible full-screen overlay blocking all pointer events
// on the console (input, buttons, connectivity copy, start/stop/kill).
p.style.display = 'none';
});
if (pageHeader) pageHeader.hidden = true;
currentPageId = null;
setActiveDock(null);
// Force layout recalculation to reset scaling and console layout positions
if (window.adpanelResizeLayout) {
window.adpanelResizeLayout();
}
// adpanel:boot-perm-gate — this path never passes through bot.js's
// data-action gate (the Console dock item is wired here directly,
// and the modal-close/inline-teardown returns call it too), so it
// cannot replace or clear bot.js's deferred-click slot on its own.
// Announce the console view ("adpanel:console-view-shown", the
// listener lives next to the slot in bot.js): the user has LEFT
// any inline page a boot-window click was queued for, so that
// queued action must be dropped instead of flushing over the
// console view as a phantom modal. Fired last, after the view
// state above is applied, so listeners observe the settled state.
document.dispatchEvent(new CustomEvent("adpanel:console-view-shown"));
}
function showInlinePage(pageId) {
if (document.body.classList.contains('server-is-installing') || window.__ADPANEL_IS_INSTALLING__) {
showConsoleView();
return;
}
const page = pages[pageId];
if (!page) return;
// adpanel:inline-page-switch-desync — Close any other open inline
// pages first. A page left behind must carry NEITHER visibility
// class: stripping adpanel-page-active alone left the previous
// page's .show in place (invisible only via the inline stylesheet's
// `body.adpanel-inline-mode .adpanel-page:not(.adpanel-page-active)`
// display:none !important rule), so the next Esc keydown matched
// BOTH pages' independent document-level guards (e.g. the
// scheduler's .show check and the planner's .show check) at once —
// one Esc closed every page and tore down inline mode instead of
// closing just the visible one. Mirrors showConsoleView's double
// strip; every page's open path re-adds .show via showModalElement,
// so switching back re-arms its guard correctly.
Object.entries(pages).forEach(([id, el]) => {
if (!el) return;
if (id !== pageId) {
el.classList.remove('adpanel-page-active');
el.classList.remove('show');
}
// Clear the explicit display:none set by showConsoleView so CSS
// class-based visibility can take back control cleanly.
el.style.display = '';
});
document.body.classList.add('adpanel-inline-mode');
page.classList.add('adpanel-page-active');
// Hide the unified header ONLY for files page, other pages keep it
if (pageHeader && pageTitle && pageDescription) {
if (pageId === 'files') {
pageHeader.hidden = true;
} else {
const t = page.getAttribute('data-page-title') || '';
const d = page.getAttribute('data-page-description') || '';
pageTitle.textContent = t;
pageDescription.textContent = d;
// Hide the description element entirely when empty to avoid blank gap
pageDescription.style.display = d ? '' : 'none';
pageHeader.hidden = false;
}
}
currentPageId = pageId;
setActiveDock(pageId);
// Force layout recalculation to scale the sidebar and fit main content
if (window.adpanelResizeLayout) {
window.adpanelResizeLayout();
}
// Trigger the page's own initialization (load data, focus inputs, etc.)
triggerPageInit(pageId);
}
function setActiveDock(pageId) {
const dockMap = {
files: 'dockFiles',
store: 'dockStore',
activity: 'dockActivity',
backups: 'dockBackups',
scheduler: 'dockScheduler',
planner: 'dockPlanner',
aihelp: 'dockAiHelp',
reinstall: 'dockReinstall'
};
// Remove .is-active from all sidebar buttons
document.querySelectorAll('.adpanel-taskbar-btn').forEach(btn => {
btn.classList.remove('is-active');
});
// Add .is-active to the matching sidebar button
const targetId = dockMap[pageId];
if (targetId) {
const btn = document.getElementById(targetId);
if (btn) btn.classList.add('is-active');
} else {
// No page = Console is active
const consoleBtn = document.getElementById('dockConsole');
if (consoleBtn) consoleBtn.classList.add('is-active');
}
}
function triggerPageInit(pageId) {
// Dispatch a click on the corresponding sidebar/topbar trigger so
// existing bot.js logic opens the page's data (file list, store,
// activity, etc.) without us duplicating that logic here.
const triggerMap = {
files: 'dockFiles',
store: 'dockStore',
activity: 'dockActivity',
backups: 'dockBackups',
scheduler: 'dockScheduler',
planner: 'dockPlanner',
aihelp: 'dockAiHelp',
reinstall: 'dockReinstall'
};
const id = triggerMap[pageId];
if (!id) return;
const btn = document.getElementById(id);
if (!btn) return;
// Flag so our own capture handler ignores the synthetic click and
// only the existing bot.js handler runs (it adds the .show class
// and loads data).
btn._adpanelSkipInline = true;
btn.click();
}
// Wire up sidebar buttons in CAPTURE phase. We stopImmediatePropagation
// on the real user click so bot.js's bubble handler only fires once
// (on the synthetic click we dispatch via triggerPageInit).
const dockBtnMap = {
dockFiles: 'files',
// Bottom-dock twins (in the hidden compatibility wrapper) were
// renamed from duplicate <id> attributes to <id>Bottom so
// getElementById wiring resolves uniquely; each maps to the same
// inline page as its taskbar twin.
dockFilesBottom: 'files',
dockStore: 'store',
dockStoreBottom: 'store',
dockActivity: 'activity',
// Second (bottom-dock) Activity entry point. Renamed from a
// duplicate dockActivity id so getElementById wiring above
// resolves uniquely; it maps to the same inline page and thus
// routes through the same path as the taskbar button.
dockActivityBottom: 'activity',
dockBackups: 'backups',
dockBackupsBottom: 'backups',
dockScheduler: 'scheduler',
dockSchedulerBottom: 'scheduler',
dockPlanner: 'planner',
dockPlannerBottom: 'planner',
dockAiHelp: 'aihelp',
dockAiHelpBottom: 'aihelp',
dockReinstall: 'reinstall',
dockReinstallBottom: 'reinstall'
};
Object.entries(dockBtnMap).forEach(([btnId, pageId]) => {
const btn = document.getElementById(btnId);
if (!btn) return;
btn.addEventListener('click', function (e) {
// Synthetic click from triggerPageInit - just reset the flag and
// let bot.js's bubble handler run.
if (btn._adpanelSkipInline) {
btn._adpanelSkipInline = false;
return;
}
// adpanel:planner-dock-gate — disabled dock buttons are inert;
// showInlinePage has no permission check, so the capture handler
// must honor the same disabled gate bot.js's bubble handler
// enforces.
if (btn.classList.contains('disabled') || btn.getAttribute('aria-disabled') === 'true') {
e.preventDefault();
e.stopImmediatePropagation();
return;
}
// If server is installing, strictly block switching away from console
if (document.body.classList.contains('server-is-installing') || window.__ADPANEL_IS_INSTALLING__) {
e.preventDefault();
e.stopImmediatePropagation();
return;
}
// Real user click - take over the event and route to our
// inline page system. bot.js's handler will still be invoked
// for the synthetic click below.
e.preventDefault();
e.stopImmediatePropagation();
showInlinePage(pageId);
}, true);
});
// Console button -> return to default console + stats view
const consoleBtn = document.getElementById('dockConsole');
if (consoleBtn) {
consoleBtn.addEventListener('click', function (e) {
// Console button already navigates to /server/<bot>, which
// reloads the page. We also handle the case where the default
// behaviour is prevented (e.g. if other code intercepts it).
showConsoleView();
});
}
// When the user clicks any modal's close (X) button while in
// inline mode, return to the console view instead of trying to
// close the (now non-functional) modal overlay.
['filesModalClose', 'storeModalClose', 'activityModalClose',
'backupsModalClose', 'schedulerModalClose', 'plannerModalClose',
'aiHelpModalClose', 'reinstallModalClose', 'reinstallDoneBtn'].forEach(id => {
const btn = document.getElementById(id);
if (!btn) return;
btn.addEventListener('click', function (e) {
if (document.body.classList.contains('adpanel-inline-mode')) {
e.preventDefault();
e.stopImmediatePropagation();
if (id === 'reinstallModalClose' || id === 'reinstallDoneBtn') {
pages.reinstall?.dispatchEvent(new Event('adpanel:reinstall-dismiss'));
}
if (id === 'reinstallDoneBtn') {
// Smooth blur transition back to console
document.body.classList.add('adpanel-blur-transition-active');
setTimeout(() => {
showConsoleView();
document.body.classList.remove('adpanel-blur-transition-active');
// Fade/un-blur console back in smoothly
document.body.classList.add('adpanel-console-fade-in');
document.body.offsetHeight; // trigger reflow
document.body.classList.add('adpanel-console-fade-in-active');
setTimeout(() => {
document.body.classList.remove('adpanel-console-fade-in', 'adpanel-console-fade-in-active');
}, 600);
}, 400);
} else {
showConsoleView();
}
}
}, true);
});
// MutationObserver to toggle editor-active class on body when #editorModal opens/closes
const editorModal = document.getElementById('editorModal');
if (editorModal) {
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.attributeName === 'class') {
const hasShow = editorModal.classList.contains('show');
if (hasShow) {
document.body.classList.add('editor-active');
// Force editor layout updates to prevent Monaco/Ace 0px dimensions
setTimeout(() => {
if (window.monacoEditor) window.monacoEditor.layout();
if (window.aceEditor) window.aceEditor.resize(true);
}, 50);
setTimeout(() => {
if (window.monacoEditor) window.monacoEditor.layout();
if (window.aceEditor) window.aceEditor.resize(true);
}, 250);
} else {
document.body.classList.remove('editor-active');
}
}
});
});
observer.observe(editorModal, { attributes: true, attributeFilter: ['class'] });
}
// Initialize: Console button is active by default
setActiveDock(null);
})();
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', adpanelInitInlinePages);
} else {
adpanelInitInlinePages();
}
</script>
<!-- Hidden Compatibility Wrapper for Old Layout Elements (so scripts don't fail) -->
<div style="display: none !important;" aria-hidden="true">
<button class="sidebar-toggle" id="sidebarToggle" aria-label="Toggle quick actions" type="button"><i
class="fa-solid fa-grip"></i></button>
<aside class="sidebar-shell open" id="floatingSidebar" aria-label="Quick navigation">
<div class="sidebar-top">
<a href="/#account" class="sidebar-item active">Account</a>
</div>
<div class="sidebar-middle">
<a class="sidebar-item" href="/">Overview</a>
<button id="resourceStatsBtn" data-action="open-resource-stats">Stats</button>
<a class="sidebar-item" href="/#servers">My servers</a>
</div>
<div class="sidebar-bottom">
<button id="profileCard">
<span id="profileEmail">—</span>
<span id="profileStatusLabel">Available</span>
</button>
<select id="statusDuration">
<option value="86400000">1 day</option>
</select>
<input id="statusInput" class="statusinputs" type="text" />
<button id="cancelStatus">Cancel</button>
<button id="saveStatus">Save</button>
</div>
</aside>
<div class="app-wrap">
<div class="topbar">
<div class="brands"></div>
<div class="top-actions">
<button id="filesBtn" data-action="open-files">Files</button>
<button id="activityBtn" data-action="open-activity">Activity</button>
<button id="moreBtn" data-action="toggle-more">More</button>
<button id="backupsBtn" data-action="open-backups">Backups</button>
<button id="storeBtn" data-action="open-store">Store</button>
<button id="schedulerBtn" data-action="open-scheduler">Scheduler</button>
<% if (locals.agentEnabled) { %><button id="aiHelpBtn" data-action="open-ai-help">Agent</button><% } %>
<button id="reinstallBtn" data-action="open-reinstall">Reinstall</button>
</div>
</div>
<div class="main-stage">
<div class="console-panel">
<div class="console-window" id="consoleWindow">
<span id="statusLabel">idle</span>
<button id="miniRunBtn" data-action="run"></button>
<button id="miniStopBtn" data-action="stop"></button>
<button id="miniKillBtn" data-action="kill"></button>
<button id="sendBtn" data-action="send"></button>
<button id="clearBtn" data-action="clear"></button>
<div class="cmd-row" id="cmdRow"></div>
</div>
</div>
</div>
</div>
</div>
<div id="filesModal" class="modal-overlay adpanel-page fm-page" data-page-id="files"
data-page-title="Managing <%= displayName %>" data-page-description="Explore and manage files" aria-hidden="true">
<div class="ptero-flash-bar" id="filesFlashBar">
<div class="ptero-flash-fill" id="filesFlashFill"></div>
</div>
<div id="dropOverlay" aria-hidden="true">
<div class="inner">
<h3 id="dropTitle">Drop to upload</h3>
<p id="dropSubtitle">Release to upload to current folder</p>
</div>
</div>
<!-- Top Bar: Breadcrumb Pill on Left, Action Buttons on Right -->
<div class="fm-topbar">
<div class="fm-path-pill">
<input type="checkbox" id="selectAllToggle" class="entry-select-checkbox fm-select-all" title="Select all" />
<div id="breadcrumbs" class="fm-breadcrumbs"></div>
<div id="progressWheel" class="progress-wheel hidden" title="Current Operation - Click to view progress" role="button" tabindex="0" aria-label="Upload progress">
<svg viewBox="0 0 36 36">
<circle class="ring-track" cx="18" cy="18" r="15"></circle>
<circle id="progressFill" class="ring-progress" cx="18" cy="18" r="15" stroke-dasharray="0 100"></circle>
</svg>
</div>
</div>
<div class="fm-actions" id="fmActions">
<div class="fm-default-actions" id="fmDefaultActions">
<button class="fm-action-btn" id="newBtn" data-action="create-new" title="New file/folder" aria-label="New file or folder">
<img src="/images/new-icon.svg" width="13" height="13" alt="" />
<span>New</span>
</button>
<label class="fm-action-btn" id="uploadLabel" for="fileUploadModal" title="Upload file" aria-label="Upload file" style="cursor:pointer">
<img src="/images/upload-icon.svg" width="14" height="13" alt="" />
<span>Upload</span>
</label>
<input id="fileUploadModal" type="file" multiple style="display:none;" />
<button class="fm-action-btn url-uploader-btn" id="urlUploaderBtn" type="button" title="Upload from URL" aria-label="Upload from URL">
<img src="/images/uploader-icon.svg" width="14" height="13" alt="" />
<span>Uploader</span>
</button>
</div>
<div class="fm-selection-actions hidden" id="fmSelectionActions" style="display:none;">
<button class="fm-action-btn" id="fmDownloadBtn" type="button" title="Download file" aria-label="Download file">
<i class="fa-solid fa-download"></i>
<span>Download</span>
</button>
<button class="fm-action-btn" id="fmRenameBtn" type="button" title="Rename" aria-label="Rename">
<i class="fa-solid fa-pen-to-square"></i>
<span>Rename</span>
</button>
<button class="fm-action-btn" id="fmUnarchiveBtn" type="button" title="Unarchive" aria-label="Unarchive">
<i class="fa-solid fa-box-open"></i>
<span>Unarchive</span>
</button>
<button class="fm-action-btn" id="fmArchiveBtn" type="button" title="Archive selected" aria-label="Archive selected">
<i class="fa-solid fa-file-zipper"></i>
<span>Archive</span>
</button>
<button class="fm-action-btn" id="fmDeleteBtn" type="button" title="Delete selected" aria-label="Delete selected">
<i class="fa-solid fa-trash"></i>
<span>Delete</span>
</button>
</div>
</div>
</div>
<!-- Main 1758px Box Container -->
<div class="fm-box">
<ul id="entries" class="fm-entries-list" role="list"></ul>
</div>
<!-- Hidden elements for JS compatibility -->
<div style="display: none !important;" aria-hidden="true">
<button class="modal-close" id="filesModalClose" title="Close (Esc)"></button>
<button class="bulk-delete" id="bulkDeleteBtn" title="Delete selected"></button>
<button class="bulk-archive" id="bulkArchiveBtn" title="Archive selected"></button>
</div>
</div>
<div id="urlUploaderModal" class="activity-modal url-uploader-activity" aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="activity-panel" role="dialog" aria-modal="true" aria-labelledby="urlUploaderModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header">
<div class="activity-header-left">
<div class="activity-icon-wrap">
<div class="activity-icon-pulse"></div>
<div class="activity-icon"><i class="fa-solid fa-link"></i></div>
</div>
<div class="activity-header-text">
<div class="activity-title" id="urlUploaderModalTitle">Uploader</div>
<div class="activity-subtitle"><span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="activity-close" id="urlUploaderClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="activity-body">
<div class="url-uploader-body">
<div class="url-uploader-desc">
<i class="fa-solid fa-circle-info"></i>
<span>Upload files to the current folder via URL. This supports all file extensions.</span>
</div>
<div class="url-uploader-field">
<label for="urlUploaderInput">File URL</label>
<input type="text" id="urlUploaderInput" placeholder="https://example.com/server.tar" autocomplete="off"
spellcheck="false" maxlength="2048" />
<div class="url-uploader-hint">
Target folder: <span id="urlUploaderTargetPath" class="url-uploader-target">/</span>
</div>
</div>
<div class="url-uploader-error" id="urlUploaderError" style="display:none"></div>
</div>
</div>
<div class="url-uploader-footer">
<button class="backup-create-cancel" id="urlUploaderCancel" type="button">Cancel</button>
<button class="backup-create-confirm" id="urlUploaderConfirm" type="button">
<i class="fa-solid fa-cloud-arrow-down" style="color: white;"></i>
<span style="color: white;">Start Upload</span>
</button>
</div>
</div>
</div>
<div id="editorModal" class="modal-overlay editor-modal" aria-hidden="true">
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="editorModalTitle" style="position:relative;">
<div class="ptero-flash-bar" id="editorFlashBar">
<div class="ptero-flash-fill" id="editorFlashFill"></div>
</div>
<div class="editor-header">
<div>
<div class="editor-title" id="editorModalTitle">
<%= branding.appName %> Editor
</div>
<div style="color:var(--muted);font-size:13px" id="editorPath"></div>
</div>
<div class="editor-actions">
<button class="modal-close" id="editorModalClose" title="Close (Esc)"><i
class="fa-solid fa-xmark"></i></button>
</div>
</div>
<div id="bigEditor">
<div id="codeShell" class="code-shell" style="display:none">
<div class="code-shell-editor">
<div id="monacoContainer" style="width:100%;height:100%;"></div>
<div id="aceContainer" style="width:100%;height:100%;display:none;"></div>
<div id="lineGutter" class="line-gutter" style="display:none"></div>
<div class="code-pane" style="display:none">
<pre id="codeOverlay" class="code-overlay"></pre>
<textarea id="codeInput" class="code-input" spellcheck="false"></textarea>
<div id="codeSpacer" class="code-spacer" aria-hidden="true"></div>
</div>
</div>
<button id="miniFmToggle" class="mini-fm-toggle" type="button" title="Toggle file manager"
aria-label="Toggle file manager" aria-expanded="true">
<i class="fa-solid fa-chevron-right"></i>
</button>
<button id="miniFmCloseEditor" class="mini-fm-close-editor" type="button" title="Discard and close"
aria-label="Discard and close">
<i class="fa-solid fa-xmark"></i>
</button>
<aside id="miniFm" class="mini-fm" aria-label="File manager">
<div class="mini-fm-header">
<div class="mini-fm-header-main">
<div class="mini-fm-header-icon"><i class="fa-solid fa-folder-tree"></i></div>
<div class="mini-fm-header-text">
<div class="mini-fm-title">Files</div>
<div id="miniFmBreadcrumbs" class="mini-fm-breadcrumbs"></div>
</div>
</div>
<div class="mini-fm-header-actions">
<label class="mini-fm-icon-btn" id="miniFmUploadLabel" for="miniFmUpload" title="Upload file"
aria-label="Upload file"><i class="fa-solid fa-upload"></i></label>
<input id="miniFmUpload" type="file" multiple style="display:none" />
<button class="mini-fm-icon-btn" id="miniFmRefresh" type="button" title="Refresh"
aria-label="Refresh"><i class="fa-solid fa-rotate"></i></button>
</div>
</div>
<ul id="miniFmEntries" class="mini-fm-entries" role="list"></ul>
</aside>
</div>
<textarea id="textArea" style="display:none" spellcheck="false"></textarea>
<div class="editor-footer-actions">
<button class="icon-btn editor-discard-btn" id="editorDiscard" type="button">
<i class="fa-solid fa-rotate-left"></i>
<span>Discard</span>
</button>
<button class="icon-btn editor-save-btn" id="editorSave" type="button">
<i class="fa-solid fa-floppy-disk"></i>
<span>Save</span>
</button>
</div>
</div>
</div>
</div>
<div id="imageViewerModal" class="modal-overlay editor-modal image-viewer-modal" aria-hidden="true">
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="imageViewerModalTitle"
style="position:relative;">
<div class="editor-header">
<div>
<div class="editor-title" id="imageViewerModalTitle">Image Viewer</div>
<div style="color:var(--muted);font-size:13px" id="imageViewerPath"></div>
</div>
<div class="editor-actions">
<button class="modal-close" id="imageViewerModalClose" title="Close (Esc)"><i
class="fa-solid fa-xmark"></i></button>
</div>
</div>
<div id="imageViewerBody">
<div id="imgViewerShell" class="code-shell img-viewer-shell">
<div class="code-shell-editor img-viewer-stage">
<div class="img-viewer-canvas" id="imgViewerCanvas">
<div class="img-viewer-spinner" id="imgViewerSpinner"><i class="fa-solid fa-spinner fa-spin"></i>
</div>
<img id="imgViewerImage" alt="" draggable="false" />
<div class="img-viewer-error" id="imgViewerError">
<i class="fa-solid fa-triangle-exclamation"></i>
<span>Couldn't load this image.</span>
</div>
</div>
<div class="img-viewer-confirm" id="imgViewerConfirm" hidden>
<div class="img-viewer-confirm-box">
<div class="img-viewer-confirm-icon"><i class="fa-solid fa-triangle-exclamation"></i></div>
<div class="img-viewer-confirm-text">The image size is large. Do you want to continue?</div>
<div class="img-viewer-confirm-actions">
<button class="img-viewer-continue" id="imgViewerContinue" type="button">Continue</button>
<button class="img-viewer-cancel" id="imgViewerCancel" type="button">Cancel</button>
</div>
</div>
</div>
</div>
<button id="imgViewerMiniFmToggle" class="mini-fm-toggle" type="button" title="Toggle file manager"
aria-label="Toggle file manager" aria-expanded="true">
<i class="fa-solid fa-chevron-right"></i>
</button>
<button id="imgViewerMiniFmClose" class="mini-fm-close-editor" type="button" title="Close"
aria-label="Close">
<i class="fa-solid fa-xmark"></i>
</button>
<aside id="imgViewerMiniFm" class="mini-fm" aria-label="File manager">
<div class="mini-fm-header">
<div class="mini-fm-header-main">
<div class="mini-fm-header-icon"><i class="fa-solid fa-folder-tree"></i></div>
<div class="mini-fm-header-text">
<div class="mini-fm-title">Files</div>
<div id="imgViewerMiniFmBreadcrumbs" class="mini-fm-breadcrumbs"></div>
</div>
</div>
<div class="mini-fm-header-actions">
<label class="mini-fm-icon-btn" id="imgViewerMiniFmUploadLabel" for="imgViewerMiniFmUpload"
title="Upload file" aria-label="Upload file"><i class="fa-solid fa-upload"></i></label>
<input id="imgViewerMiniFmUpload" type="file" multiple style="display:none" />
<button class="mini-fm-icon-btn" id="imgViewerMiniFmRefresh" type="button" title="Refresh"
aria-label="Refresh"><i class="fa-solid fa-rotate"></i></button>
</div>
</div>
<ul id="imgViewerMiniFmEntries" class="mini-fm-entries" role="list"></ul>
</aside>
</div>
</div>
</div>
</div>
<div id="storeModal" class="modal-overlay adpanel-page" data-page-id="store"
data-page-title="Store — <%= displayName %>"
data-page-description="Choose your core distribution and manage plugins." aria-hidden="true">
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="storeModalTitle" style="position:relative;">
<div class="ptero-flash-bar" id="storeFlashBar">
<div class="ptero-flash-fill" id="storeFlashFill"></div>
</div>
<div class="store-header">
<div class="store-header-main">
<div>
<div class="modal-title" id="storeModalTitle">
Store — <span style="color:#fff;font-weight:700">
<%= displayName %>
</span>
</div>
<div class="store-subtitle" id="storeSubtitle">Choose your core distribution and manage plugins.</div>
</div>
</div>
<div class="store-header-right">
<div class="store-tabs" id="storeTabs">
<button class="store-tab active" id="storeTabVersions"><i class="fa-solid fa-cubes-stacked"></i>&nbsp;
Versions</button>
<button class="store-tab" id="storeTabPlugins"><i class="fa-solid fa-plug"></i>&nbsp;
Plugins/Mods</button>
</div>
<button class="modal-close store-close" id="storeModalClose" title="Close (Esc)">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
</div>
<div class="store-body">
<div id="storeContent"></div>
</div>
</div>
</div>
<div id="storePrefModal" class="modal-overlay store-pref-modal" aria-hidden="true">
<div class="modal store-pref-shell" role="dialog" aria-modal="true" aria-labelledby="storePrefTitle">
<div class="store-header store-pref-header">
<div class="store-header-main">
<div>
<div class="modal-title" id="storePrefTitle">What should the Store show?</div>
<div class="store-subtitle">Choose the experience for this server.</div>
</div>
</div>
<div class="store-header-right">
<button class="modal-close store-close" id="storePrefClose" title="Close">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
</div>
<div class="modal-body store-pref-body">
<div class="store-pref-grid" id="storePrefOptions"></div>
</div>
</div>
</div>
<div id="mrPluginModal" class="activity-modal mr-plugin-install-activity" aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="activity-panel mr-plugin-install-modal" role="dialog" aria-modal="true"
aria-labelledby="mrPluginModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header mr-plugin-install-header">
<div class="activity-header-left">
<div class="mr-plugin-title-icon">
<i class="fa-solid fa-plug-circle-plus"></i>
</div>
<div class="activity-header-text">
<div class="activity-title" id="mrPluginModalTitle">Install Plugin</div>
<div class="activity-subtitle mr-title-sub" id="mrPluginName"></div>
</div>
</div>
<button class="activity-close" id="mrPluginModalClose" type="button" title="Close (Esc)"
aria-label="Close install plugin popup">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="activity-body mr-plugin-install-body">
<div class="mr-plugin-install-panel">
<div class="select-control custom-select-wrapper">
<label for="mrPlatformSelect">Platform</label>
<div class="select-wrap">
<select id="mrPlatformSelect" aria-label="Select platform" style="display: none;"></select>
<span class="current">Select a platform</span>
<i class="fa-solid fa-chevron-down arrow"></i>
</div>
<div class="custom-options"></div>
</div>
<div class="select-control custom-select-wrapper">
<label for="mrVersionSelect">Minecraft Version</label>
<div class="select-wrap">
<select id="mrVersionSelect" aria-label="Select Minecraft version" style="display: none;"></select>
<span class="current">Select Minecraft version</span>
<i class="fa-solid fa-chevron-down arrow"></i>
</div>
<div class="custom-options"></div>
</div>
</div>
</div>
<div class="backup-create-footer mr-plugin-install-footer">
<button class="backup-create-cancel" id="mrPluginCancel" type="button">Cancel</button>
<button id="mrPluginInstallBtn" class="backup-create-confirm mr-plugin-install-action" type="button" disabled>
<i class="fa-solid fa-download"></i>
<span>Install Plugin</span>
</button>
</div>
</div>
</div>
<div id="activityModal" class="activity-modal adpanel-page" data-page-id="activity" data-page-title="Activity"
data-page-description="Track who, what, and when changes were made to your system." aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="activity-panel" role="dialog" aria-modal="true" aria-labelledby="activityModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header">
<div class="activity-header-left">
<div class="activity-icon-wrap">
<div class="activity-icon-pulse"></div>
<div class="activity-icon"><i class="fa-solid fa-clock-rotate-left"></i></div>
</div>
<div class="activity-header-text">
<div class="activity-title" id="activityModalTitle">Activity</div>
<div class="activity-subtitle"><span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="activity-close" id="activityModalClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="activity-search-wrap">
<div class="activity-search">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="text" id="activitySearchInput" placeholder="Search by user, IP, actions..." autocomplete="off">
</div>
<div class="activity-filter-pills" style="gap: 10px;">
<button class="activity-pill active" data-filter="all">All</button>
<button class="activity-pill" data-filter="power" title="Power actions (start, stop, restart, kill)"><i
class="fa-solid fa-power-off"></i></button>
<button class="activity-pill" data-filter="console" title="Console commands"><i
class="fa-solid fa-terminal"></i></button>
<button class="activity-pill" data-filter="file" title="File operations"><i
class="fa-solid fa-file"></i></button>
</div>
</div>
<div class="activity-body">
<div class="activity-list" id="activityList">
<div class="activity-loading">
<div class="activity-loading-spinner"></div>
<span>Loading activity...</span>
</div>
</div>
</div>
<div class="activity-footer">
<button class="activity-load-more" id="activityLoadMore">
<span class="activity-load-more-text">Load More</span>
<span class="activity-load-more-icon"><i class="fa-solid fa-chevron-down"></i></span>
</button>
</div>
</div>
</div>
<div id="backupsModal" class="activity-modal adpanel-page" data-page-id="backups" data-page-title="Server Backups"
data-page-description="Create, restore, and manage your server snapshots." aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="activity-panel" role="dialog" aria-modal="true" aria-labelledby="backupsModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header">
<div class="activity-header-left">
<img class="backups-header-icon" src="<%= branding.logoUrl %>" alt="Backups" draggable="false" />
<div class="activity-header-text">
<div class="activity-title" id="backupsModalTitle">Server Backups</div>
<div class="activity-subtitle"><span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="activity-close" id="backupsModalClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="activity-search-wrap">
<div class="activity-filter-pills" style="gap: 10px;">
<button class="activity-pill" id="backupsCreateBtn" title="Create Backup">
<i class="fa-solid fa-plus"></i>
<span>Create Backup</span>
</button>
<button class="activity-pill" id="backupsRefreshBtn" title="Refresh">
<i class="fa-solid fa-rotate-right"></i>
</button>
</div>
</div>
<div class="activity-body">
<div class="activity-list" id="backupsList">
<div class="backups-loading"><i class="fa-solid fa-spinner fa-spin"></i> Loading backups...</div>
</div>
</div>
</div>
</div>
<div id="backupCreateModal" class="activity-modal backup-create-activity" aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="activity-panel" role="dialog" aria-modal="true" aria-labelledby="backupCreateModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header">
<div class="activity-header-left">
<img class="backups-header-icon" src="<%= branding.logoUrl %>" alt="Backups" draggable="false" />
<div class="activity-header-text">
<div class="activity-title" id="backupCreateModalTitle">Create New Backup</div>
<div class="activity-subtitle"><span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="activity-close" id="backupCreateClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="activity-body">
<div class="backup-create-body">
<div class="backup-create-field">
<label for="backupNameInput">Backup Name</label>
<input type="text" id="backupNameInput" placeholder="My Backup" maxlength="100" />
</div>
<div class="backup-create-field">
<label for="backupDescInput">Description (optional)</label>
<textarea id="backupDescInput" placeholder="Notes about this backup..." maxlength="500"
rows="3"></textarea>
</div>
<div class="backup-create-info">
<i class="fa-solid fa-info-circle"></i>
<span>Backups copy regular files, not symbolic links or special files. If the server is running, the copy may be inconsistent.</span>
</div>
</div>
</div>
<div class="backup-create-footer">
<button class="backup-create-cancel" id="backupCreateCancel">Cancel</button>
<button class="backup-create-confirm" id="backupCreateConfirm">
<i class="fa-solid fa-box-archive" style="color: white;"></i>
<span style="color: white;">Create Backup</span>
</button>
</div>
</div>
</div>
<div id="schedulerModal" class="scheduler-modal adpanel-page" data-page-id="scheduler"
data-page-title="Task Scheduler" data-page-description="Automate your server tasks and keep operations organized."
data-agent-auto-edit-warning="<%= locals.agentEnabled ? automaticAgentEditWarning : '' %>"
aria-hidden="true">
<div class="scheduler-glass-layer scheduler-glass-layer-1"></div>
<div class="scheduler-glass-layer scheduler-glass-layer-2"></div>
<div class="scheduler-panel" role="dialog" aria-modal="true" aria-labelledby="schedulerModalTitle">
<div class="scheduler-header">
<div class="scheduler-header-left">
<div class="scheduler-icon-wrap">
<img src="<%= branding.logoUrl %>" alt="Scheduler" class="scheduler-header-img">
</div>
<div class="scheduler-header-text">
<div class="scheduler-title" id="schedulerModalTitle">Task Scheduler</div>
<div class="scheduler-subtitle">Server: <span class="scheduler-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="scheduler-close" id="schedulerModalClose" title="Close (Esc)">
<span class="scheduler-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="scheduler-tabs">
<button class="scheduler-tab active" data-tab="tasks">
<i class="fa-solid fa-list-check"></i> Scheduled Tasks
</button>
<button class="scheduler-tab" data-tab="create">
<i class="fa-solid fa-plus"></i> Create New
</button>
</div>
<div class="scheduler-body">
<div class="scheduler-content" id="schedulerTasksTab">
<div class="scheduler-tasks-header">
<div class="scheduler-tasks-title">Active &amp; Pending Tasks</div>
<button class="scheduler-refresh-btn" id="schedulerRefreshBtn" title="Refresh">
<i class="fa-solid fa-rotate-right"></i>
</button>
</div>
<div class="scheduler-tasks-list" id="schedulerTasksList">
<div class="scheduler-loading">
<div class="scheduler-loading-spinner"></div>
<span>Loading tasks...</span>
</div>
</div>
</div>
<div class="scheduler-content hidden" id="schedulerCreateTab">
<div class="scheduler-form">
<div class="scheduler-form-section">
<label class="scheduler-label">Task Name</label>
<input type="text" class="scheduler-input" id="schedulerTaskName" placeholder="My Scheduled Task"
maxlength="100">
</div>
<div class="scheduler-form-section">
<label class="scheduler-label">Schedule Type</label>
<div class="scheduler-schedule-options">
<button class="scheduler-schedule-option active" data-schedule="once">
<i class="fa-solid fa-clock"></i>
<span>One Time</span>
</button>
<button class="scheduler-schedule-option" data-schedule="recurring">
<i class="fa-solid fa-repeat"></i>
<span>Recurring</span>
</button>
</div>
</div>
<div class="scheduler-form-section" id="schedulerOnceSection">
<label class="scheduler-label">Run At</label>
<div class="scheduler-datetime-row">
<input type="date" class="scheduler-input" id="schedulerDate">
<input type="time" class="scheduler-input" id="schedulerTime" value="00:00">
</div>
</div>
<div class="scheduler-form-section hidden" id="schedulerRecurringSection">
<label class="scheduler-label">Repeat</label>
<div class="scheduler-recurring-options">
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select" id="schedulerRecurringType" style="display: none;">
<option value="seconds">Every X Seconds</option>
<option value="minutes">Every X Minutes</option>
<option value="hourly">Every X Hours</option>
<option value="daily">Daily at Time</option>
<option value="weekly">Weekly on Day</option>
</select>
<div class="select-wrap">
<span class="current">Every X Seconds</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
</div>
<div class="scheduler-recurring-config" id="schedulerSecondsConfig">
<label class="scheduler-label-small">Every</label>
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select scheduler-select-small" id="schedulerSecondsInterval"
style="display: none;">
<option value="10">10 seconds</option>
<option value="15">15 seconds</option>
<option value="30" selected>30 seconds</option>
<option value="45">45 seconds</option>
</select>
<div class="select-wrap">
<span class="current">30 seconds</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
</div>
<div class="scheduler-recurring-config hidden" id="schedulerMinutesConfig">
<label class="scheduler-label-small">Every</label>
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select scheduler-select-small" id="schedulerMinutesInterval"
style="display: none;">
<option value="1">1 minute</option>
<option value="2">2 minutes</option>
<option value="5" selected>5 minutes</option>
<option value="10">10 minutes</option>
<option value="15">15 minutes</option>
<option value="20">20 minutes</option>
<option value="30">30 minutes</option>
</select>
<div class="select-wrap">
<span class="current">5 minutes</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
</div>
<div class="scheduler-recurring-config hidden" id="schedulerHourlyConfig">
<label class="scheduler-label-small">Every</label>
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select scheduler-select-small" id="schedulerHourlyInterval"
style="display: none;">
<option value="1">1 hour</option>
<option value="2">2 hours</option>
<option value="3">3 hours</option>
<option value="4">4 hours</option>
<option value="6">6 hours</option>
<option value="8">8 hours</option>
<option value="12">12 hours</option>
<option value="24">24 hours</option>
</select>
<div class="select-wrap">
<span class="current">1 hour</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
</div>
<div class="scheduler-recurring-config hidden" id="schedulerDailyConfig">
<label class="scheduler-label-small">At</label>
<input type="time" class="scheduler-input" id="schedulerDailyTime" value="00:00">
</div>
<div class="scheduler-recurring-config hidden" id="schedulerWeeklyConfig">
<label class="scheduler-label-small">On</label>
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select" id="schedulerWeeklyDay" style="display: none;">
<option value="0">Sunday</option>
<option value="1">Monday</option>
<option value="2">Tuesday</option>
<option value="3">Wednesday</option>
<option value="4">Thursday</option>
<option value="5">Friday</option>
<option value="6">Saturday</option>
</select>
<div class="select-wrap">
<span class="current">Sunday</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
<label class="scheduler-label-small">at</label>
<input type="time" class="scheduler-input" id="schedulerWeeklyTime" value="00:00">
</div>
</div>
<div class="scheduler-or-divider">
<span>ACTION</span>
</div>
<div class="scheduler-form-section">
<label class="scheduler-label">Action Type</label>
<div class="custom-select-wrapper" style="position: relative;">
<select class="scheduler-select" id="schedulerActionType" style="display: none;">
<option value="">Select an action...</option>
<option value="console_command">📟 Console Command</option>
<option value="server_start">▶️ Server Start</option>
<option value="server_stop">⏹️ Server Stop</option>
<option value="create_file">📄 Create File</option>
<option value="modify_file">✏️ Modify File</option>
<option value="backup">💾 Backup</option>
<% if (locals.agentEnabled) { %>
<option value="planner_next_to_agent">🧠 Send Next Plan to <%= branding.appName %> Agent</option>
<option value="agent_prompt">🤖 Send Prompt to <%= branding.appName %> Agent</option>
<% } %>
</select>
<div class="select-wrap">
<span class="current">Select an action...</span>
<i class="fa-solid fa-chevron-down"></i>
</div>
<div class="custom-options"></div>
</div>
<%# adpanel:scheduler-action-perm-mirror — shown only when every
action type requires a permission the user does not hold;
the create route would 403 each of them server-side. %>
<div class="scheduler-action-info hidden" id="schedulerActionPermWarning">
<i class="fa-solid fa-lock"></i>
<span>You don't have permission to schedule any action type on this server. Ask an administrator to grant the permission for the action you need.</span>
</div>
</div>
<div class="scheduler-action-config hidden" id="schedulerActionConsole">
<label class="scheduler-label">Command</label>
<input type="text" class="scheduler-input scheduler-input-mono" id="schedulerCommand"
placeholder="say Hello World">
<div class="scheduler-hint">The command will be sent to the server console.</div>
</div>
<div class="scheduler-action-config hidden" id="schedulerActionServerControl">
<div class="scheduler-action-info">
<i class="fa-solid fa-info-circle"></i>
<span id="schedulerServerControlText">The server will be started/stopped at the scheduled
time.</span>
</div>
</div>
<div class="scheduler-action-config hidden" id="schedulerActionFile">
<label class="scheduler-label">File Path</label>
<input type="text" class="scheduler-input scheduler-input-mono" id="schedulerFilePath"
placeholder="config/settings.yml">
<label class="scheduler-label">Content</label>
<textarea class="scheduler-textarea scheduler-input-mono" id="schedulerFileContent"
placeholder="File content here..." rows="5" maxlength="262144"></textarea>
</div>
<div class="scheduler-action-config hidden" id="schedulerActionBackup">
<label class="scheduler-label">Backup Name</label>
<input type="text" class="scheduler-input" id="schedulerBackupName" placeholder="Scheduled Backup">
<label class="scheduler-label">Description (optional)</label>
<input type="text" class="scheduler-input" id="schedulerBackupDesc" placeholder="Automated backup">
</div>
<% if (locals.agentEnabled) { %>
<div class="scheduler-action-config hidden" id="schedulerActionPlanner">
<label class="scheduler-label">Next Planner Prompt</label>
<button class="scheduler-refresh-btn" id="schedulerPlannerRefreshBtn" type="button"
title="Refresh planner prompts">
<i class="fa-solid fa-rotate-right"></i>
</button>
<textarea class="scheduler-textarea scheduler-input-mono" id="schedulerPlannerPromptPreview"
placeholder="The first active planner prompt will run when this schedule fires." rows="5"
readonly></textarea>
<div class="scheduler-hint">Each run sends the next eligible planner prompt to the <%= branding.appName %>
Agent model selected when this schedule is created.</div>
<div class="scheduler-action-info">
<i class="fa-solid fa-triangle-exclamation" aria-hidden="true"></i>
<span><%= automaticAgentEditWarning %> This applies to every run, including prompts added later.</span>
</div>
</div>
<div class="scheduler-action-config hidden" id="schedulerActionAgentPrompt">
<label class="scheduler-label" for="schedulerAgentPrompt">Prompt</label>
<textarea class="scheduler-textarea scheduler-input-mono" id="schedulerAgentPrompt"
placeholder="Write the prompt <%= branding.appName %> Agent should run on this server..." rows="5"
maxlength="12000"></textarea>
<label class="scheduler-label">AI Model</label>
<div class="ai-model-selector scheduler-ai-model-selector" id="schedulerAiModelSelector">
<select id="schedulerAiModelSelect" aria-hidden="true" tabindex="-1">
<option value="" disabled>Select model...</option>
</select>
<button class="ai-model-trigger" id="schedulerAiModelTrigger" type="button" aria-haspopup="listbox"
aria-expanded="false" aria-controls="schedulerAiModelOptions">
<span class="ai-model-current" id="schedulerAiModelCurrent">Select model...</span>
<i class="fa-solid fa-chevron-down"></i>
</button>
<div class="ai-model-options-shell">
<div class="ai-model-options" id="schedulerAiModelOptions" role="listbox"
aria-label="Scheduler AI models"></div>
</div>
</div>
<div class="scheduler-hint">This prompt will run server-side and appear in a new <%= branding.appName %>
Agent chat on your account.</div>
<div class="scheduler-action-info">
<i class="fa-solid fa-triangle-exclamation" aria-hidden="true"></i>
<span><%= automaticAgentEditWarning %> This applies to every run of this task.</span>
</div>
</div>
<% } %>
<div class="scheduler-form-footer">
<button class="scheduler-create-btn" id="schedulerCreateBtn">
<i class="fa-solid fa-plus"></i>
<span>Create Task</span>
</button>
</div>
</div>
</div>
</div>
<div class="scheduler-status-bar">
<div class="scheduler-status-indicator" id="schedulerStatusIndicator">
<span class="scheduler-status-dot"></span>
<span class="scheduler-status-text">Checking status…</span>
</div>
</div>
</div>
</div>
<div id="plannerModal" class="planner-modal adpanel-page" data-page-id="planner" data-page-title="Planner"
data-page-description="Plan and schedule automated workflows" data-agent-auto-edit-warning="<%= locals.agentEnabled ? automaticAgentEditWarning : '' %>" aria-hidden="true">
<div class="planner-glass-layer planner-glass-layer-1"></div>
<div class="planner-glass-layer planner-glass-layer-2"></div>
<div class="planner-panel" role="dialog" aria-modal="true" aria-labelledby="plannerModalTitle">
<div class="planner-header">
<div class="planner-header-left">
<div class="planner-icon-wrap">
<div class="planner-icon-pulse"></div>
<div class="planner-icon"><i class="fa-solid fa-list-check"></i></div>
</div>
<div class="planner-header-text">
<div class="planner-title" id="plannerModalTitle">Planner</div>
<div class="planner-subtitle">Shared prompts for <span class="planner-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<div class="planner-header-actions">
<button class="planner-refresh-btn" id="plannerRefreshBtn" title="Refresh">
<i class="fa-solid fa-rotate-right"></i>
</button>
<button class="planner-close" id="plannerModalClose" title="Close (Esc)">
<span class="planner-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
</div>
<div class="planner-tabs">
<button class="planner-tab active" data-tab="board">
<i class="fa-solid fa-layer-group"></i> Board
</button>
<button class="planner-tab" data-tab="compose">
<i class="fa-solid fa-pen-to-square"></i> Compose
</button>
</div>
<div class="planner-body">
<div class="planner-content" id="plannerBoardTab">
<div class="planner-summary" id="plannerSummary"></div>
<div class="planner-board-section">
<div class="planner-section-header">
<div>
<div class="planner-section-title">Priority Queue</div>
<div class="planner-section-subtitle">Drag prompts to change priority.</div>
</div>
<button class="planner-add-inline" id="plannerOpenComposeBtn" type="button">
<i class="fa-solid fa-plus"></i>
<span>New Prompt</span>
</button>
</div>
<div class="planner-list" id="plannerActiveList">
<div class="planner-loading">
<div class="planner-loading-spinner"></div>
<span>Loading planner...</span>
</div>
</div>
</div>
<div class="planner-board-section planner-completed-section" id="plannerCompletedSection">
<div class="planner-section-header">
<div>
<div class="planner-section-title">Completed</div>
<div class="planner-section-subtitle">Finished prompts stay here until someone reopens or deletes
them.
</div>
</div>
</div>
<div class="planner-list planner-list-completed" id="plannerCompletedList"></div>
</div>
</div>
<div class="planner-content hidden" id="plannerComposeTab">
<div class="planner-form">
<input type="hidden" id="plannerItemId">
<div class="planner-edit-indicator hidden" id="plannerEditIndicator">
<span class="planner-edit-text">
<i class="fa-solid fa-pen"></i>
Editing: <strong id="plannerEditIndicatorTitle"></strong>
</span>
<button class="planner-edit-cancel" id="plannerEditCancelBtn" type="button"
title="Stop editing and start a new prompt">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<div class="planner-form-section">
<label class="planner-label" for="plannerTitleInput">Prompt Name</label>
<input type="text" class="planner-input" id="plannerTitleInput"
placeholder="Fix spawn points / Update txAdmin / Prepare weekend event" maxlength="120">
</div>
<div class="planner-form-section">
<label class="planner-label" for="plannerPromptInput">Prompt</label>
<textarea class="planner-textarea" id="plannerPromptInput" placeholder="Write your next move" rows="8"
maxlength="4000"></textarea>
<div class="planner-hint">Saved prompts stay shared on this server, and clicking a card sends the
prompt
straight to <%= branding.appName %> Agent.</div>
</div>
<div class="planner-form-footer">
<button class="planner-secondary-btn" id="plannerResetBtn" type="button">Clear</button>
<button class="planner-primary-btn" id="plannerSaveBtn" type="button">
<i class="fa-solid fa-plus"></i>
<span>Save Prompt</span>
</button>
</div>
</div>
</div>
</div>
<div class="planner-status-bar">
<div class="planner-status-indicator" id="plannerStatusIndicator">
<span class="planner-status-dot"></span>
<span class="planner-status-text">Planner ready</span>
</div>
</div>
</div>
</div>
<!-- Hidden dock wrapper for compatibility -->
<div style="display: none !important;" aria-hidden="true">
<div class="dock-wrap" role="navigation" aria-label="taskbar">
<div class="dock">
<div class="dock-item" id="dockHome" data-action="go-home" title="Dashboard">
<div class="icon"><i class="fa-solid fa-house" style="color:white;"></i></div>
<div class="label">Home</div>
</div>
<div class="sep" aria-hidden="true"></div>
<div class="dock-item" id="dockFilesBottom" data-action="open-files" title="Files">
<div class="icon"><i class="fa-solid fa-folder-open" id="dockfiles"></i></div>
<div class="label">Files</div>
</div>
<div class="dock-item" id="dockStoreBottom" data-action="open-store" title="Store">
<div class="icon"><i class="fa-solid fa-store"></i></div>
<div class="label">Store</div>
</div>
<div class="dock-item" id="dockActivityBottom" data-action="open-activity" title="Activity Logs">
<div class="icon"><i class="fa-solid fa-clock-rotate-left" style="color:white;"></i></div>
<div class="label">Activity</div>
</div>
<div class="dock-item" id="dockBackupsBottom" data-action="open-backups" title="Backups">
<div class="icon"><i class="fa-solid fa-box-archive" style="color:white;"></i></div>
<div class="label">Backups</div>
</div>
<div class="dock-item" id="dockSchedulerBottom" data-action="open-scheduler" title="Scheduler">
<div class="icon"><i class="fa-solid fa-calendar-days" style="color:white;"></i></div>
<div class="label">Scheduler</div>
</div>
<div class="dock-item" id="dockPlannerBottom" data-action="open-planner" title="Planner">
<div class="icon"><i class="fa-solid fa-list-check" style="color:white;"></i></div>
<div class="label">Planner</div>
</div>
<% if (locals.agentEnabled) { %>
<div class="dock-item ai-help-dock" id="dockAiHelpBottom" data-action="open-ai-help"
title="<%= branding.appName %> Agent">
<div class="icon"><img src="<%= branding.logoUrl %>" alt="<%= branding.appName %> Agent" width="32"
height="32" /></div>
<div class="label">
<%= branding.appName %> Agent
</div>
</div>
<% } %>
<div class="dock-item" id="dockRunBottom" data-action="run" title="Run">
<div class="icon"><i class="fa-solid fa-play" style="color:white;"></i></div>
<div class="label">Run</div>
</div>
<div class="dock-item" id="dockStopBottom" data-action="stop" title="Stop">
<div class="icon"><i class="fa-solid fa-stop" style="color:white;"></i></div>
<div class="label">Stop</div>
</div>
<div class="dock-item" id="dockReinstallBottom" data-action="open-reinstall" title="Reinstall">
<div class="icon"><i class="fa-solid fa-rotate" style="color:white;"></i></div>
<div class="label">Reinstall</div>
</div>
</div>
</div>
</div>
<div id="progressPopup" class="progress-popup" role="dialog" aria-hidden="true">
<div class="row">
<div>
<div class="title">Current Operation</div>
<div class="percent" id="popupPercent">0%</div>
</div>
<div><button id="popupClose" class="close-btn" title="Close">✕</button></div>
</div>
<div class="progress-bar" aria-hidden="true">
<div class="bar" id="popupBar" style="width:0%"></div>
</div>
<div class="meta">
<div id="popupMsg">Processing...</div>
<div id="popupTime" style="font-size:12px;color:#88929b">—</div>
</div>
<div class="progress-file-list" id="popupFileList" aria-live="polite"></div>
</div>
<div class="resource-stats-popup" id="resourceStatsPopup" role="dialog" aria-modal="true"
aria-label="Resource Statistics">
<div class="resource-stats-header">
<div class="resource-stats-title"><i class="fa-solid fa-chart-pie"></i> Resource Statistics</div>
<button class="resource-stats-action" id="openResourceStatsTab" title="Open in small tab"
style="margin-left:auto;margin-right:10px;background:none;border:none;color:inherit;cursor:pointer;">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</button>
<button class="resource-stats-close" id="resourceStatsClose" type="button" aria-label="Close"><i
class="fa-solid fa-xmark"></i></button>
</div>
<div class="resource-stats-body">
<div class="resource-stat-row">
<div class="resource-stat-icon memory-icon"><i class="fa-solid fa-memory"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label-line">
<div class="resource-stat-label">Memory</div>
<div class="resource-stat-bar">
<div class="resource-stat-fill memory-fill" id="resMemoryBar" style="width:0%"></div>
</div>
</div>
<div class="resource-stat-value" id="resMemoryLabel">Loading...</div>
</div>
</div>
<div class="resource-stat-row">
<div class="resource-stat-icon disk-icon"><i class="fa-solid fa-hard-drive"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label-line">
<div class="resource-stat-label">Storage</div>
<div class="resource-stat-bar">
<div class="resource-stat-fill disk-fill" id="resDiskBar" style="width:0%"></div>
</div>
</div>
<div class="resource-stat-value" id="resDiskLabel">Loading...</div>
</div>
</div>
<div class="resource-stat-row">
<div class="resource-stat-icon cpu-icon"><i class="fa-solid fa-microchip"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label-line">
<div class="resource-stat-label">CPU</div>
<div class="resource-stat-bar">
<div class="resource-stat-fill cpu-fill" id="resCpuBar" style="width:0%"></div>
</div>
</div>
<div class="resource-stat-value" id="resCpuLabel">Loading...</div>
</div>
</div>
<div class="resource-stat-row">
<div class="resource-stat-icon network-inbound-icon"><i class="fa-solid fa-arrow-down"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label">Network Inbound</div>
<div class="resource-stat-value" id="resNetworkInboundLabel">Loading...</div>
</div>
</div>
<div class="resource-stat-row">
<div class="resource-stat-icon network-outbound-icon"><i class="fa-solid fa-arrow-up"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label">Network Outbound</div>
<div class="resource-stat-value" id="resNetworkOutboundLabel">Loading...</div>
</div>
</div>
<div class="resource-stat-row">
<div class="resource-stat-icon uptime-icon"><i class="fa-solid fa-clock"></i></div>
<div class="resource-stat-content">
<div class="resource-stat-label">Uptime</div>
<div class="resource-stat-value" id="resUptimeLabel">Loading...</div>
</div>
</div>
</div>
</div>
<% if (locals.agentEnabled) { %>
<div id="aiHelpModal" class="ai-help-modal adpanel-page" data-page-id="aihelp" data-page-title="Agent"
data-page-description="AI assistant for <%= displayName %>" aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="ai-help-panel" role="dialog" aria-modal="true" aria-labelledby="aiHelpModalTitle">
<div class="activity-inner-glow"></div>
<div class="ai-help-header">
<div class="ai-help-header-left">
<div class="ai-avatar-wrap">
<div class="ai-avatar-pulse"></div>
<img src="<%= branding.logoUrl %>" alt="AI" class="ai-avatar-img">
</div>
<div class="activity-header-text">
<div class="activity-title" id="aiHelpModalTitle">
<%= branding.appName %> Agent
</div>
<div class="activity-subtitle">Your intelligent assistant for <span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<div class="ai-help-header-actions">
<button class="activity-close" id="aiHelpModalClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
</div>
<div class="ai-help-setup" id="aiHelpSetup">
<button class="ai-chat-settings-btn ai-setup-settings-btn" id="aiSetupSettingsBtn" title="Settings">
<i class="fa-solid fa-gear"></i>
</button>
<div class="ai-setup-welcome">
<div class="ai-setup-emoji">🤖</div>
<h2>Select your Intelligence</h2>
<p>Connect your preferred AI provider to get started</p>
</div>
<div class="ai-provider-grid" id="aiProviderGrid">
<button class="ai-provider-card" data-provider="openai">
<div class="ai-provider-icon openai-icon"><img
src="/images/chatgpt.webp" alt="OpenAI"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">OpenAI</div>
<div class="ai-provider-desc">Access any OpenAI model available</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-openai"></div>
<span class="ai-provider-status-label" id="status-label-openai"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="anthropic">
<div class="ai-provider-icon anthropic-icon"><img
src="/images/anthropic.webp" alt="Anthropic"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">Anthropic</div>
<div class="ai-provider-desc">Get helped from the most powerful AI right in your <%= branding.appName %>
</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-anthropic"></div>
<span class="ai-provider-status-label" id="status-label-anthropic"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="openai-compatible">
<div class="ai-provider-icon openai-compatible-icon"><i class="fa-solid fa-plug-circle-bolt"></i></div>
<div class="ai-provider-info">
<div class="ai-provider-name">OpenAI Compatible</div>
<div class="ai-provider-desc">You can attach any OpenAI Compatible API</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-openai-compatible"></div>
<span class="ai-provider-status-label" id="status-label-openai-compatible"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="google">
<div class="ai-provider-icon google-icon"><img
src="/images/gemini.webp" alt="Google"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">Google AI</div>
<div class="ai-provider-desc">Access Gemini and many others</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-google"></div>
<span class="ai-provider-status-label" id="status-label-google"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="groq">
<div class="ai-provider-icon groq-icon"><img src="/images/groq.webp"
alt="Groq">
</div>
<div class="ai-provider-info">
<div class="ai-provider-name">Groq</div>
<div class="ai-provider-desc">Llama, Mixtral (Fast)</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-groq"></div>
<span class="ai-provider-status-label" id="status-label-groq"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="huggingface">
<div class="ai-provider-icon hf-icon"><img
src="/images/huggingface.webp" alt="HuggingFace"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">HuggingFace</div>
<div class="ai-provider-desc">Open source models</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-huggingface"></div>
<span class="ai-provider-status-label" id="status-label-huggingface"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="together">
<div class="ai-provider-icon together-icon"><img
src="/images/togetherai.webp" alt="Together AI"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">Together AI</div>
<div class="ai-provider-desc">Llama, Mistral, more</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-together"></div>
<span class="ai-provider-status-label" id="status-label-together"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="cohere">
<div class="ai-provider-icon"><i class="fa-solid fa-plug-circle-bolt"></i></div>
<div class="ai-provider-info">
<div class="ai-provider-name">Cohere</div>
<div class="ai-provider-desc">Command models</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-cohere"></div>
<span class="ai-provider-status-label" id="status-label-cohere"></span>
</div>
</button>
<button class="ai-provider-card" data-provider="openrouter">
<div class="ai-provider-icon openrouter-icon"><img
src="/images/openrouter.webp" alt="OpenRouter"></div>
<div class="ai-provider-info">
<div class="ai-provider-name">OpenRouter</div>
<div class="ai-provider-desc">Multiple providers</div>
</div>
<div class="ai-provider-status-wrap">
<div class="ai-provider-status" id="status-openrouter"></div>
<span class="ai-provider-status-label" id="status-label-openrouter"></span>
</div>
</button>
</div>
<div class="ai-api-key-form" id="aiApiKeyForm" style="display:none;">
<div class="ai-key-form-header">
<button class="ai-key-back" id="aiKeyBack"><i class="fa-solid fa-arrow-left"></i></button>
<span id="aiKeyProviderName">Provider</span>
</div>
<div class="ai-config-field" id="aiBaseUrlField" style="display:none;">
<label class="ai-config-label" for="aiBaseUrlInput">Base URL</label>
<div class="ai-key-input-wrap ai-base-url-input-wrap">
<input type="text" id="aiBaseUrlInput" placeholder="https://your-provider.example.com/v1"
autocomplete="off" spellcheck="false" />
</div>
</div>
<div class="ai-config-field" id="aiManualModelField" hidden>
<label class="ai-config-label" for="aiManualModelInput">Model IDs (optional, one per line)</label>
<div class="ai-key-input-wrap">
<textarea id="aiManualModelInput" rows="3" maxlength="4096" placeholder="Automatic discovery if left blank"
autocomplete="off" spellcheck="false"></textarea>
</div>
</div>
<div class="ai-config-field">
<label class="ai-config-label" for="aiApiKeyInput">API Key</label>
<div class="ai-key-input-wrap">
<input type="password" id="aiApiKeyInput" placeholder="Enter your API key" autocomplete="off" />
<button class="ai-key-toggle" id="aiKeyToggle" type="button"><i class="fa-solid fa-eye"></i></button>
</div>
</div>
<button class="ai-key-save" id="aiKeySave" disabled>Save & Connect</button>
</div>
</div>
<div class="ai-help-chat" id="aiHelpChat" style="display:none;">
<div class="ai-chat-sidebar" id="aiChatSidebar">
<div class="ai-sidebar-header">
<span>Chats</span>
<button class="ai-new-chat-btn" id="aiNewChatBtn" title="New Chat">
<i class="fa-solid fa-plus"></i>
</button>
</div>
<div class="ai-chats-list" id="aiChatsList">
<div class="ai-no-chats">
<i class="fa-regular fa-comments"></i>
<p>No chats yet</p>
</div>
</div>
<button class="ai-sidebar-toggle" id="aiSidebarToggle" title="Toggle Sidebar">
<i class="fa-solid fa-chevron-left"></i>
</button>
</div>
<div class="ai-chat-main">
<div class="ai-chat-toolbar">
<button class="ai-sidebar-expand-btn" id="aiSidebarExpand" title="Show Chats">
<i class="fa-solid fa-bars"></i>
</button>
<div class="ai-model-selector" id="aiModelSelector">
<select id="aiModelSelect" aria-hidden="true" tabindex="-1">
<option value="" disabled>Select model...</option>
</select>
<button class="ai-model-trigger" id="aiModelTrigger" type="button" aria-haspopup="listbox"
aria-expanded="false" aria-controls="aiModelOptions">
<span class="ai-model-current" id="aiModelCurrent">Select model...</span>
<i class="fa-solid fa-chevron-down"></i>
</button>
<div class="ai-model-options-shell">
<div class="ai-model-options" id="aiModelOptions" role="listbox" aria-label="AI models"></div>
</div>
</div>
<select class="ai-model-trigger agent-access-picker" id="aiAgentAccessMode" aria-label="Agent access">
<option value="file_plan">General access</option>
<option value="read_only">Read only</option>
</select>
<button class="ai-chat-clear" id="aiChatClear" title="Clear chat">
<i class="fa-solid fa-trash-can"></i>
</button>
<button class="ai-chat-settings-btn" id="aiHelpSettingsBtn" title="Settings">
<i class="fa-solid fa-gear"></i>
</button>
</div>
<button class="ai-chat-older" type="button" id="aiChatOlder" hidden>
<i class="fa-solid fa-arrow-up" aria-hidden="true"></i> Load earlier messages
</button>
<section class="agent-review" id="aiReviewCard" aria-labelledby="aiReviewHeading" hidden>
<h3 id="aiReviewHeading">Proposed action</h3>
<pre class="agent-review-target" id="aiReviewSummary"></pre>
<details open hidden><summary>Changes</summary><pre id="aiReviewDiff"></pre></details>
<details hidden><summary>Current file</summary><pre id="aiReviewBefore"></pre></details>
<details hidden><summary>Proposed file</summary><pre id="aiReviewAfter"></pre></details>
<ol class="agent-review-plan" id="aiReviewPlan" hidden></ol>
<p id="aiReviewStatus" role="status"></p>
<div class="agent-review-controls">
<button type="button" id="aiReviewRetry" hidden><i class="fa-solid fa-rotate-right" aria-hidden="true"></i> Reload preview</button>
<button type="button" id="aiReviewDismiss" disabled><i class="fa-solid fa-xmark" aria-hidden="true"></i> <span id="aiReviewDismissLabel">Decline</span></button>
<button type="button" id="aiReviewApply" disabled><i class="fa-solid fa-check" aria-hidden="true"></i> <span id="aiReviewApplyLabel">Accept</span></button>
</div>
</section>
<div class="ai-chat-messages" id="aiChatMessages">
<div class="ai-chat-welcome">
<div class="ai-welcome-emoji">👋</div>
<h3>Hello there!</h3>
<p>Server diagnostics and reviewed actions.</p>
<div class="ai-welcome-suggestions">
<button class="ai-suggestion">Check server status</button>
<button class="ai-suggestion">Help me troubleshoot an error</button>
</div>
</div>
</div>
<div class="ai-chat-input-container">
<div class="ai-chat-input-box" id="aiChatInputBox">
<div class="ai-chat-input-row">
<textarea id="aiChatInput" placeholder="Message <%= branding.appName %> Agent..." rows="1"
spellcheck="false"></textarea>
<div class="ai-chat-input-actions">
<input type="file" id="aiFileInput" style="display:none"
accept="image/*,.txt,.json,.yml,.yaml,.xml,.md,.log,.cfg,.conf,.properties,.ini">
<button class="ai-chat-attach-btn" id="aiChatAttach" title="Attach file">
<i class="fa-solid fa-paperclip"></i>
</button>
<button class="ai-chat-send-btn" id="aiChatSend" disabled>
<i class="fa-solid fa-arrow-up"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ai-undo-toast" id="aiUndoToast">
<i class="fa-solid fa-rotate-left"></i>
<span>File modified</span>
<button class="ai-undo-btn" id="aiUndoBtn">Undo</button>
<button class="ai-undo-dismiss" id="aiUndoDismiss"><i class="fa-solid fa-xmark"></i></button>
</div>
<div class="ai-file-changes-bar" id="aiFileChangesBar">
<div class="ai-file-changes-header">
<div class="ai-file-changes-title">
<i class="fa-solid fa-file-pen"></i>
<span>Modified Files</span>
<span class="ai-file-changes-count" id="aiFileChangesCount">0</span>
</div>
<div class="ai-file-changes-actions">
<button class="ai-file-changes-accept-all" id="aiAcceptAllChanges" title="Accept all changes">
<i class="fa-solid fa-check-double"></i> Accept All
</button>
<button class="ai-file-changes-undo-all" id="aiUndoAllChanges" title="Undo all changes">
<i class="fa-solid fa-rotate-left"></i> Undo All
</button>
<button class="ai-file-changes-toggle" id="aiFileChangesToggle" title="Toggle list">
<i class="fa-solid fa-chevron-down"></i>
</button>
</div>
</div>
<div class="ai-file-changes-list" id="aiFileChangesList">
</div>
</div>
<div class="ai-confirm-dialog" id="aiConfirmDialog">
<div class="ai-confirm-content">
<div class="ai-confirm-header">
<i class="fa-solid fa-triangle-exclamation"></i>
<span>Confirm File Operation</span>
</div>
<div class="ai-confirm-body">
<p id="aiConfirmMessage">The AI wants to perform the following operation:</p>
<div class="ai-confirm-operation" id="aiConfirmOperation">
<div class="ai-confirm-action" id="aiConfirmAction"></div>
<div class="ai-confirm-path" id="aiConfirmPath"></div>
</div>
<div class="ai-confirm-preview" id="aiConfirmPreview"></div>
</div>
<div class="ai-confirm-footer">
<button class="ai-confirm-deny" id="aiConfirmDeny">
<i class="fa-solid fa-xmark"></i> Deny
</button>
<button class="ai-confirm-allow" id="aiConfirmAllow">
<i class="fa-solid fa-check"></i> Allow
</button>
</div>
</div>
</div>
</div>
</div>
<% } %>
<div id="reinstallModal" class="activity-modal adpanel-page" data-page-id="reinstall"
data-page-title="Reinstall Server" data-page-description="Reinstall the server software for <%= displayName %>"
aria-hidden="true">
<div class="activity-glass-layer activity-glass-layer-1"></div>
<div class="activity-glass-layer activity-glass-layer-2"></div>
<div class="activity-glass-layer activity-glass-layer-3"></div>
<div class="reinstall-panel" role="dialog" aria-modal="true" aria-labelledby="reinstallModalTitle">
<div class="activity-inner-glow"></div>
<div class="activity-header">
<div class="activity-header-left">
<div class="activity-icon-wrap">
<div class="activity-icon-pulse"></div>
<div class="activity-icon reinstall-icon-accent"><i class="fa-solid fa-rotate"></i></div>
</div>
<div class="activity-header-text">
<div class="activity-title" id="reinstallModalTitle">Reinstall Server</div>
<div class="activity-subtitle"><span class="activity-server-name">
<%= displayName %>
</span></div>
</div>
</div>
<button class="activity-close" id="reinstallModalClose" title="Close (Esc)">
<span class="activity-close-icon"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="reinstall-body">
<div class="reinstall-content" id="reinstallDefaultView">
<div class="reinstall-warning-card">
<div class="reinstall-warning-icon"><i class="fa-solid fa-triangle-exclamation"></i></div>
<div class="reinstall-warning-text">
<div class="reinstall-warning-title">This will wipe your server clean</div>
<div class="reinstall-warning-desc">Every file on this server will be permanently deleted and the
server
will be set up from scratch. Backups will not be affected, so make sure you've saved anything
important
before proceeding.</div>
</div>
</div>
<div class="reinstall-info-cards">
<div class="reinstall-info-card">
<div class="reinstall-info-icon"><i class="fa-solid fa-trash-can"></i></div>
<div class="reinstall-info-label">All server files removed</div>
</div>
<div class="reinstall-info-card">
<div class="reinstall-info-icon"><i class="fa-solid fa-box-archive"></i></div>
<div class="reinstall-info-label">Backups stay untouched</div>
</div>
<div class="reinstall-info-card">
<div class="reinstall-info-icon"><i class="fa-solid fa-arrows-rotate"></i></div>
<div class="reinstall-info-label">Fresh deployment with saved server configuration</div>
</div>
</div>
<div class="reinstall-actions">
<button class="reinstall-cancel-btn" id="reinstallCancelBtn">Cancel</button>
<button class="reinstall-confirm-btn" id="reinstallConfirmBtn"><i class="fa-solid fa-rotate"></i>
Reinstall
Server</button>
</div>
</div>
<div class="reinstall-content reinstall-confirm-view" id="reinstallConfirmView" style="display:none;">
<div class="reinstall-confirm-icon-wrap">
<div class="reinstall-confirm-big-icon"><i class="fa-solid fa-exclamation"></i></div>
</div>
<div class="reinstall-confirm-title">Are you absolutely sure?</div>
<div class="reinstall-confirm-desc">This action cannot be undone. All server data will be erased and the
server will be freshly deployed.</div>
<div class="reinstall-credential-block" id="reinstallCredentialBlock" style="display:none;">
<label class="reinstall-credential-label" for="reinstallCredentialInput" id="reinstallCredentialLabel">Enter
your current password to confirm</label>
<input class="reinstall-credential-input" type="password" id="reinstallCredentialInput"
autocomplete="current-password" placeholder="Current password" maxlength="128" />
<div class="reinstall-credential-error" id="reinstallCredentialError" style="display:none;"></div>
</div>
<div class="reinstall-confirm-actions">
<button class="reinstall-cancel-btn" id="reinstallConfirmNo">No, go back</button>
<button class="reinstall-danger-btn" id="reinstallConfirmYes"><i class="fa-solid fa-check"></i> Yes,
reinstall now</button>
</div>
</div>
<div class="reinstall-content reinstall-progress-view" id="reinstallProgressView" style="display:none;">
<div class="reinstall-progress-spinner">
<div class="reinstall-spinner"></div>
</div>
<div class="reinstall-progress-title" id="reinstallProgressTitle">Reinstalling server...</div>
<div class="reinstall-progress-desc" id="reinstallProgressDesc">Removing old files and setting up a fresh
deployment. This may take a moment.</div>
</div>
<div class="reinstall-content reinstall-success-view" id="reinstallSuccessView" style="display:none;">
<div class="reinstall-success-icon-wrap">
<div class="reinstall-success-big-icon"><i class="fa-solid fa-check"></i></div>
</div>
<div class="reinstall-success-title">Server reinstalled successfully</div>
<div class="reinstall-success-desc" id="reinstallSuccessDesc">Your server files were replaced and the
template was redeployed.</div>
<div class="reinstall-success-actions">
<button class="reinstall-done-btn" id="reinstallDoneBtn"><i class="fa-solid fa-check"></i> Done</button>
</div>
</div>
<div class="reinstall-content reinstall-error-view" id="reinstallErrorView" style="display:none;">
<div class="reinstall-error-icon-wrap">
<div class="reinstall-error-big-icon"><i class="fa-solid fa-xmark"></i></div>
</div>
<div class="reinstall-error-title" id="reinstallErrorTitle">Reinstall failed</div>
<div class="reinstall-error-desc" id="reinstallErrorDesc">Something went wrong during the reinstall
process.
Please try again or contact an administrator.</div>
<div class="reinstall-error-actions">
<button class="reinstall-cancel-btn" id="reinstallErrorClose">Close</button>
</div>
</div>
</div>
</div>
</div>
<div id="clearConsoleModal" class="clear-console-modal" style="display: none;" aria-hidden="true">
<div class="clear-console-glass-layer"></div>
<div class="clear-console-content">
<h3 class="clear-console-title">Clear Console</h3>
<p class="clear-console-desc">This clears your local console view only. Other users and the server-side history are not affected.</p>
<div class="clear-console-toggle-wrapper" id="clearConsoleToggleWrapper">
<span class="clear-console-label-text">Do not ask me again</span>
<!-- No inline onclick here: CSP sets script-src-attr 'none', so inline
handler attributes are silently dead. bot.js owns the toggle via
its click listener on #clearConsoleToggleWrapper. -->
<label class="switch">
<input type="checkbox" id="clearConsoleNoAsk">
<span class="slider"></span>
</label>
</div>
<div class="clear-console-actions">
<button id="clearConsoleCancel" class="btn-cancel">Cancel</button>
<button id="clearConsoleConfirm" class="btn-clear">Clear Console</button>
</div>
</div>
</div>
<div id="eulaModal" class="clear-console-modal" style="display: none;" aria-hidden="true">
<div class="clear-console-glass-layer"></div>
<div class="clear-console-content">
<h3 class="clear-console-title">Minecraft EULA</h3>
<p class="clear-console-desc">This server runs the Minecraft template and its <code>eula.txt</code> is not accepted yet, so the server cannot start. Do you accept the Minecraft EULA on behalf of this server? Accepting writes <code>eula=true</code> to the server files.</p>
<div class="eula-terms-box">
<span>By continuing you agree to the Minecraft End User License Agreement, which governs usage of Minecraft server software.</span>
<a class="console-link" href="https://aka.ms/MinecraftEULA" target="_blank" rel="noopener noreferrer">Read the Minecraft EULA</a>
</div>
<div class="clear-console-actions">
<button id="eulaCancel" class="btn-cancel">Cancel</button>
<button id="eulaAccept" class="btn-accept">Accept</button>
</div>
</div>
</div>
<script nonce="<%= cspNonce %>">
(function () {
// Sync connectivity IP/Port
async function loadConnInfo() {
try {
const res = await fetch(`/api/server-info/<%- encodeURIComponent(bot) %>`);
if (res.ok) {
const data = await res.json();
const ip = data.ip || '100.69.69.69';
const port = data.port || '25565';
const connEl = document.getElementById('figmaConnectivityVal');
if (connEl) {
connEl.textContent = `${ip}:${port}`;
}
}
} catch (e) {
console.error(e);
}
}
loadConnInfo();
setInterval(loadConnInfo, 30000);
// Click to copy logic for connectivity IP/Port
const connCard = document.getElementById('connectivityStatCard');
if (connCard) {
connCard.addEventListener('click', function () {
const connEl = document.getElementById('figmaConnectivityVal');
if (connEl) {
const text = connEl.textContent.trim();
if (text && text !== 'Loading...') {
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(text).then(() => {
if (typeof showStoreToast === 'function') {
showStoreToast('Copied connectivity IP/Port to clipboard!', 'success');
}
}).catch(err => {
fallbackCopyText(text);
});
} else {
fallbackCopyText(text);
}
}
}
});
}
function fallbackCopyText(text) {
const textArea = document.createElement('textarea');
textArea.value = text;
textArea.style.position = 'fixed';
textArea.style.opacity = '0';
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
document.execCommand('copy');
if (typeof showStoreToast === 'function') {
showStoreToast('Copied connectivity IP/Port to clipboard!', 'success');
}
} catch (err) {
console.error('Fallback copy failed', err);
}
document.body.removeChild(textArea);
}
})();
</script>
</body>
</html>
<script nonce="<%= cspNonce %>">
document.addEventListener('DOMContentLoaded', function () {
const moreBtn = document.getElementById('moreBtn');
const topActions = document.querySelector('.top-actions');
if (moreBtn && topActions) {
moreBtn.addEventListener('click', function (e) {
e.preventDefault();
topActions.classList.add('expanded');
});
}
// Dynamic console window scaling - scale entire console window and all inner elements
function adjustConsoleHeight() {
const consoleWindow = document.getElementById('consoleWindow');
const dockWrap = document.querySelector('.dock-wrap');
const consoleElement = document.getElementById('console');
if (consoleWindow && dockWrap) {
const consoleRect = consoleWindow.getBoundingClientRect();
const dockWrapRect = dockWrap.getBoundingClientRect();
// Calculate available height with 40px gap from dock-wrap
const availableHeight = dockWrapRect.top - consoleRect.top - 40;
if (availableHeight > 200) {
consoleWindow.style.height = availableHeight + 'px';
// Scale the console content area to fill the window
if (consoleElement) {
// Account for window-header, controls, and cmd-row heights
const windowHeader = consoleWindow.querySelector('.window-header');
const controls = consoleWindow.querySelector('.controls');
const cmdRow = consoleWindow.querySelector('.cmd-row');
const headerHeight = windowHeader ? windowHeader.offsetHeight : 0;
const controlsHeight = controls ? controls.offsetHeight : 0;
const cmdRowHeight = cmdRow ? cmdRow.offsetHeight : 0;
// Reduce console content by 10px to ensure cmd-row has proper space
const consoleContentHeight = availableHeight - headerHeight - controlsHeight - cmdRowHeight - 30;
consoleElement.style.height = consoleContentHeight + 'px';
}
}
}
}
setTimeout(adjustConsoleHeight, 100);
window.addEventListener('resize', adjustConsoleHeight);
window.addEventListener('load', adjustConsoleHeight);
});
</script>
<!-- Store toast & confirm -->
<div id="storeToast" class="store-toast" aria-live="polite" aria-atomic="true"></div>
<div id="storeConfirmOverlay" class="store-confirm-overlay" aria-hidden="true">
<div class="store-confirm-box" role="dialog" aria-modal="true">
<div class="store-confirm-icon"><i class="fa-solid fa-triangle-exclamation"></i></div>
<div class="store-confirm-msg" id="storeConfirmMsg"></div>
<div class="store-confirm-actions">
<button class="backup-create-cancel" id="storeConfirmCancel" type="button">Cancel</button>
<button class="backup-create-confirm" id="storeConfirmOk" type="button">
<i class="fa-solid fa-check"></i>
<span>Continue</span>
</button>
</div>
</div>
</div>
</div>