/* AI TOOLBOX V-2.1.67 — language-aware application fonts.
   Licensed Purno Pran files are placed manually in assets/fonts/purno-pran/. */
@font-face {
    font-family: "AI Toolbox Purno Pran";
    src: url("../fonts/purno-pran/Li Purno Pran Unicode.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}
@font-face {
    font-family: "AI Toolbox Purno Pran";
    src: url("../fonts/purno-pran/Li Purno Pran Unicode Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-background);
    color: var(--app-text);
}

.app-main {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    background: var(--app-surface);
    padding: 1rem 0;
    border-color: var(--app-border) !important;
}

body,
.form-control,
.form-select,
.btn,
.card,
.nav-link {
    color: var(--app-text);
}

.text-muted,
.form-text,
small {
    color: var(--app-text-muted) !important;
}

.border,
.card,
.form-control,
.form-select,
.input-group-text,
.table,
.table > :not(caption) > * > * {
    border-color: var(--app-border) !important;
}

.bg-light {
    background: var(--app-background) !important;
}

.card-soft {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.05);
}

.app-form-shell {
    max-width: 640px;
    margin: 0 auto;
}

.auth-card,
.form-card-unified {
    max-width: 640px;
    margin: 0 auto;
}

.auth-screen-body {
    min-height: 100vh;
}

.auth-screen-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo-wrap,
.auth-logo-wrap,
.dashboard-logo-wrap {
    width: 250px;
    height: 50px;
    max-width: 250px;
    max-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.auth-logo-wrap {
    justify-content: center;
}

.auth-logo,
.app-brand img,
.dashboard-logo {
    width: 250px !important;
    height: 50px !important;
    min-width: 250px;
    max-width: 250px !important;
    min-height: 50px;
    max-height: 50px !important;
    object-fit: contain !important;
    display: block;
}

.app-navbar {
    background: var(--app-dark);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.app-brand img {
    width: 250px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.navbar .btn-outline-light:hover {
    background: #fff;
    color: var(--app-dark);
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--app-secondary) !important;
    border-color: var(--app-secondary) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--app-dark);
    color: var(--app-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--app-primary-rgb), 0.7) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.18);
}

.password-toggle-btn {
    min-width: 52px;
}

.avatar-preview,
.profile-avatar-large {
    border-radius: 50%;
    object-fit: cover;
    background: rgba(var(--app-secondary-rgb), 0.08);
    border: 2px solid rgba(var(--app-primary-rgb), 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--app-secondary);
}

.avatar-preview img,
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.dashboard-avatar {
    width: 50px;
    height: 50px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

.profile-avatar-100 {
    width: 100px;
    height: 100px;
}

.dashboard-summary-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
}

.stat-card .card-body,
.stat-card .card-body div,
.stat-card .card-body small {
    color: var(--app-text) !important;
}

.dashboard-logo {
    flex-shrink: 0;
}

.app-surface-box {
    background: var(--app-surface);
}

.alert-info {
    color: #083344;
    background: rgba(var(--app-info-rgb), 0.12);
    border-color: rgba(var(--app-info-rgb), 0.25);
}

.toast.text-bg-success {
    background-color: var(--app-success) !important;
}

.toast.text-bg-danger {
    background-color: var(--app-error) !important;
}

.toast.text-bg-warning {
    background-color: var(--app-warning) !important;
    color: #1f2937 !important;
}

.toast.text-bg-info {
    background-color: var(--app-info) !important;
}

.app-toast-container {
    z-index: 1085;
}

.user-table-wrap {
    overflow-x: auto;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--app-text);
}

.user-manage-actions {
    min-width: 140px;
}

@media (max-width: 767.98px) {
    .brand-logo-wrap,
    .auth-logo-wrap,
    .dashboard-logo-wrap,
    .auth-logo,
    .app-brand img,
    .dashboard-logo {
        width: 220px !important;
        max-width: 220px !important;
    }
}

.user-list-avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    flex-shrink: 0;
}


.signup-amount-box {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(var(--app-primary-rgb), 0.08);
    padding: 1rem 1.25rem;
}

.signup-amount-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 0.25rem;
}

.signup-amount-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--app-dark);
}

.bkash-config-note {
    border: 1px dashed var(--app-border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.congrats-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--app-success-rgb), 0.12);
    color: var(--app-success);
    font-size: 2.25rem;
}

.tool-section-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dashboard-tools-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tool-item {
    width: 100%;
    min-height: 86px;
    border-radius: 1.1rem;
    padding: 1rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(var(--app-primary-rgb), 0.18);
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(var(--app-primary-rgb), 0.08));
    color: var(--app-text);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
    pointer-events: none;
}

.tool-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(var(--app-primary-rgb), 0.38);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255,255,255,0.95);
}

.tool-item:active {
    transform: translateY(-2px) scale(0.995);
}

.tool-item-label {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}


.profile-action-row .btn {
    min-width: 160px;
}

.btn-bkash {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #DF146E;
    --bs-btn-border-color: #DF146E;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #c41264;
    --bs-btn-hover-border-color: #c41264;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #ab1057;
    --bs-btn-active-border-color: #ab1057;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #DF146E;
    color: #ffffff;
    border-color: #DF146E;
}

.bkash-button-logo {
    width: 28px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.app-transactions-shell {
    max-width: 100%;
}

.app-table thead th {
    background: var(--app-surface);
    white-space: nowrap;
}

.pagination .page-link {
    color: var(--app-text);
    border-color: var(--app-border);
    background: var(--app-surface);
}

.pagination .page-item.active .page-link {
    background: var(--app-primary);
    border-color: var(--app-dark);
    color: #fff;
}

.amount-positive {
    color: #166534 !important;
}

.amount-negative {
    color: var(--app-error) !important;
}

.txn-info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    border: 1px solid var(--app-border);
    color: var(--app-info);
    cursor: help;
    background: var(--app-surface);
    user-select: none;
}

.txn-info-icon:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--app-info-rgb), 0.16);
}


.btn-bkash {
    background: #DF146E;
    border-color: #DF146E;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-bkash:hover,
.btn-bkash:focus,
.btn-bkash:active {
    background: #c51261 !important;
    border-color: #c51261 !important;
    color: #fff !important;
}

.bkash-button-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.dashboard-transactions-preview {
    border-top: 1px solid var(--app-border);
    padding-top: 1rem;
}

.app-table-sm th,
.app-table-sm td {
    font-size: 0.92rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.credit-prompt-modal .modal-content {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
    box-shadow: 0 1.2rem 2.5rem rgba(15, 23, 42, 0.16);
}

.credit-prompt-modal .modal-header,
.credit-prompt-modal .modal-footer {
    border-color: var(--app-border);
}

.credit-prompt-title {
    font-weight: 700;
}

.credit-prompt-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credit-prompt-input {
    height: 52px;
    font-size: 1.05rem;
    text-align: center;
    border-radius: 0.85rem;
}

.credit-prompt-hint {
    text-align: center;
}


.btn-bkash {
    text-align: center;
}

.btn-bkash span {
    flex: 0 1 auto;
    text-align: center;
}

.dashboard-actions .btn-bkash,
.dashboard-credit-button {
    width: 100%;
    justify-content: center;
}

.profile-action-row .btn-bkash {
    justify-content: center;
}


.section-title {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.12;
    margin: 0;
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.6rem;
    }
}


.app-form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
}

.app-form-switch .form-check-input {
    cursor: pointer;
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.app-form-switch .form-check-label {
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}


.ticket-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.ticket-message-box{border:1px solid var(--app-border);border-radius:1rem;padding:1rem;background:var(--app-surface)}
.ticket-reply{border:1px solid var(--app-border);border-radius:1rem;padding:1rem;background:#fff}
.ticket-reply.admin{border-left:4px solid var(--app-primary)}
.ticket-reply.user{border-left:4px solid var(--app-accent)}
.ticket-attachments a{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border:1px solid var(--app-border);border-radius:999px;text-decoration:none;color:var(--app-text);margin:.15rem .35rem .15rem 0;background:#fff}
.ticket-status-badge{padding:.35rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;border:1px solid var(--app-border);display:inline-block}
.ticket-status-Open{background:rgba(var(--app-primary-rgb), .06);color:var(--app-dark)}.ticket-status-Answered{background:#ecfeff;color:#0f766e}.ticket-status-Customer-Reply{background:#fff7ed;color:#c2410c}.ticket-status-Closed{background:#f3f4f6;color:#374151}
.ticket-priority-Low{color:#0f766e}.ticket-priority-Medium{color:#c2410c}.ticket-priority-Heigh{color:#b91c1c}


.user-menu-dropdown .dropdown-toggle::after {
    display: none;
}

.user-avatar-toggle {
    padding: 0.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-menu-panel {
    min-width: 340px;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    padding: 0.5rem;
    background: var(--app-surface);
}

.user-menu-meta {
    padding: 0.5rem 0.625rem;
}

.user-menu-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--app-text);
}

.user-menu-email {
    font-size: 0.9rem;
    color: var(--app-text-muted);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.user-menu-divider {
    margin: 0.45rem 0 0.6rem;
}

.user-menu-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.user-menu-line .label {
    color: var(--app-text-muted);
    font-weight: 700;
}

.user-menu-line .value {
    color: var(--app-text);
    font-weight: 400;
    text-align: right;
}

.user-menu-panel .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.user-menu-panel .dropdown-item.active,
.user-menu-panel .dropdown-item:active {
    background: rgba(var(--app-primary-rgb), 0.12);
    color: var(--app-text);
}


.ai-chat-shell{max-width:100%;margin:0 auto}.ai-chat-card{border-radius:1.25rem}.ai-chat-messages{min-height:420px;max-height:65vh;overflow-y:auto;padding:1rem;border:1px solid var(--app-border);border-radius:1rem;background:linear-gradient(180deg,rgba(var(--app-primary-rgb), .04),rgba(247,198,0,.04))}.ai-message-row{display:flex;margin-bottom:1rem}.ai-message-row.user{justify-content:flex-end}.ai-message-row.assistant{justify-content:flex-start}.ai-message-bubble{max-width:min(100%,780px);border-radius:1.15rem;padding:1rem 1rem .85rem;box-shadow:0 .5rem 1.2rem rgba(15,23,42,.06)}.ai-message-bubble.user{background:var(--app-dark);color:#fff;border-bottom-right-radius:.45rem}.ai-message-bubble.assistant{background:#fff;border:1px solid var(--app-border);border-bottom-left-radius:.45rem}.ai-message-meta{text-transform:uppercase;font-size:.72rem;letter-spacing:.04em;font-weight:700;margin-bottom:.45rem;opacity:.85}.ai-message-content{line-height:1.7}.ai-message-content p:last-child{margin-bottom:0}.ai-message-content pre{background:#0f172a;color:#fff;padding:.9rem;border-radius:.85rem;overflow:auto}.ai-message-content code{background:rgba(15,23,42,.08);padding:.1rem .35rem;border-radius:.3rem}.ai-message-content pre code{background:transparent;padding:0}.ai-message-actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.ai-message-actions .btn-link{text-decoration:none}.ai-input-wrap{border:1px solid var(--app-border);border-radius:1rem;padding:.85rem;background:var(--app-surface)}.ai-chat-textarea{border:none!important;box-shadow:none!important;resize:none;min-height:120px;background:transparent!important}.ai-input-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;padding-top:.75rem;border-top:1px solid var(--app-border)}.ai-template-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.ai-template-btn{width:100%;white-space:normal;text-align:center;justify-content:center;min-height:44px}.ai-selected-files{display:flex;gap:.5rem;flex-wrap:wrap}.ai-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:320px;color:var(--app-text)}.ai-empty-icon{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(var(--app-primary-rgb), .1);font-size:1.9rem;margin-bottom:1rem;color:var(--app-dark)}.ai-empty-image-wrap{overflow:hidden;padding:0;background:rgba(var(--app-primary-rgb), .08)}.ai-empty-image-wrap img{width:100%;height:100%;object-fit:contain;padding:14px}.ai-settings-shell{max-width:100%}@media (max-width:991.98px){.ai-template-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:767.98px){.ai-chat-messages{min-height:340px;padding:.8rem}.ai-message-bubble{max-width:100%}.ai-input-actions{justify-content:stretch}.ai-input-actions .btn{flex:1 1 auto}.ai-template-strip{grid-template-columns:1fr}}
.ai-modal-open{overflow:hidden}.ai-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:1rem;z-index:1080}.ai-modal-backdrop.show{display:flex}.ai-modal-card{width:min(100%,480px);background:#fff;border-radius:1.25rem;padding:1.6rem 1.4rem;box-shadow:0 1.5rem 3rem rgba(15,23,42,.18);text-align:center;border:1px solid var(--app-border)}.ai-modal-icon{width:72px;height:72px;border-radius:50%;margin:0 auto 1rem;background:linear-gradient(135deg,rgba(var(--app-primary-rgb), .15),rgba(247,198,0,.22));display:flex;align-items:center;justify-content:center;color:var(--app-dark);font-size:1.7rem}.ai-modal-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem}@media (max-width:767.98px){.ai-modal-card{padding:1.25rem}.ai-modal-actions .btn{width:100%}}


.app-form-shell.app-transactions-shell,
.app-form-shell.ai-settings-shell {
    max-width: 100%;
}

.app-form-shell.app-transactions-shell .form-card-unified,
.app-form-shell.ai-settings-shell .form-card-unified {
    max-width: 100%;
}


.app-file-chip-list {
    margin-top: .65rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.app-file-chip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .62rem .9rem;
    border: 1px solid #d3dbe6;
    border-radius: .6rem;
    background: #f3f6fb;
    color: #1f2a44;
}
.app-file-chip-name {
    font-size: .925rem;
    font-weight: 500;
    word-break: break-word;
}
.app-file-chip-remove {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.app-file-chip-remove img {
    height: 1em;
    width: auto;
    display: block;
}
.app-file-chip-remove:hover {
    opacity: .8;
}

/* AI TOOLBOX 07_08 - requested topbar solid color and menu text color */
.navbar.app-navbar,
.topbar {
    background: var(--app-primary) !important;
}

.navbar.app-navbar .navbar-nav .nav-link,
.navbar.app-navbar .navbar-nav .nav-link:visited,
.topbar .nav-link,
.topbar .nav-link:visited {
    color: var(--app-dark) !important;
    font-weight: 700;
    text-shadow: none;
}

.navbar.app-navbar .navbar-nav .nav-link:hover,
.navbar.app-navbar .navbar-nav .nav-link:focus,
.navbar.app-navbar .navbar-nav .nav-link.active,
.topbar .nav-link:hover,
.topbar .nav-link:focus,
.topbar .nav-link.active {
    color: var(--app-primary-deep) !important;
    background: rgba(var(--app-primary-rgb), 0.10);
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .navbar.app-navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .navbar.app-navbar .navbar-nav .nav-link {
        color: var(--app-dark) !important;
        font-weight: 700;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        text-shadow: none;
    }

    .navbar.app-navbar .navbar-nav .nav-link:hover,
    .navbar.app-navbar .navbar-nav .nav-link:focus,
    .navbar.app-navbar .navbar-nav .nav-link.active {
        color: var(--app-primary-deep) !important;
        background: rgba(var(--app-primary-rgb), 0.12);
    }
}


/* AI TOOLBOX 07_10 - requested button color update */
.btn-primary,
.btn-primary:visited,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary,
a.btn-primary {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: var(--app-dark) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.show {
    background: var(--app-secondary) !important;
    border-color: var(--app-secondary) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--app-primary) !important;
    color: var(--app-dark) !important;
    font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: var(--app-dark) !important;
}

/* AI TOOLBOX workspace shell + dashboard refresh */
body.app-shell-body {
    background: #f6f6f8;
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    width: 100%;
}

.app-sidebar {
    width: 250px;
    flex: 0 0 250px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 1040;
}

.app-sidebar-brand-row {
    padding: 18px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    min-width: 0;
}

.app-sidebar-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--app-primary), #a855f7);
    box-shadow: 0 10px 20px rgba(var(--app-primary-rgb), 0.24);
    flex: 0 0 42px;
}

.app-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.app-sidebar-title {
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-subtitle {
    color: #7c8393;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-collapse,
.app-topbar-menu {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar-new-chat {
    margin: 10px 14px 12px;
    min-height: 46px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: #5b48c8;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(91, 72, 200, 0.18);
}

.app-sidebar-new-chat:hover {
    color: #ffffff;
    background: #4f3fba;
}

.app-sidebar-nav {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.app-sidebar-link {
    min-height: 42px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.app-sidebar-link i {
    width: 20px;
    text-align: center;
    color: #566173;
}

.app-sidebar-link span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-link small {
    font-size: 0.66rem;
    color: var(--app-primary);
    background: rgba(var(--app-primary-rgb), .08);
    border-radius: 999px;
    padding: 2px 6px;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
    color: #302276;
    background: #eeebff;
}

.app-sidebar-link:hover i,
.app-sidebar-link.active i {
    color: #5b48c8;
}

.app-sidebar-link.is-disabled {
    opacity: 0.68;
    cursor: default;
}

.app-sidebar-section-title {
    padding: 14px 13px 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa3b2;
    font-weight: 800;
}

.app-sidebar-bottom {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-sidebar-user-card {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-sidebar-user-avatar {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
}

.app-sidebar-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.app-sidebar-user-text strong {
    color: #111827;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-user-text a {
    color: #7c8393;
    font-size: 0.78rem;
}

.app-shell-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 68px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-topbar-left,
.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.app-topbar-search {
    width: min(520px, 45vw);
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid #d9dce3;
    border-radius: 10px;
    background: #f8f8fb;
    color: #778092;
}

.app-topbar-search input {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    color: #111827;
    font-size: 0.95rem;
}

.app-topbar-version,
.app-topbar-balance,
.app-topbar-icon {
    min-height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    background: #f8f8fb;
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

.app-topbar-balance {
    color: #06705f;
    background: #e7f8f4;
    border-color: #c6eee5;
}

.app-topbar-balance em {
    font-style: normal;
    font-size: 0.76rem;
    padding-left: 6px;
    border-left: 1px solid rgba(6, 112, 95, 0.24);
}

.app-topbar-version-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: inherit;
    padding-left: 6px;
    border-left: 1px solid rgba(6, 112, 95, 0.24);
}

.app-topbar-icon {
    width: 38px;
    padding: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
}

.app-topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(var(--app-primary-rgb), .08);
    color: #5b48c8;
    font-weight: 800;
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    min-width: 280px;
    padding: 10px;
}

.user-menu-meta {
    padding: 8px 10px;
}

.user-menu-name {
    font-weight: 800;
    color: #111827;
}

.user-menu-email {
    color: #6b7280;
    font-size: 0.82rem;
    word-break: break-all;
}

.user-menu-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #111827;
    font-size: 0.86rem;
}

.user-menu-line .label {
    color: #6b7280;
}

.user-menu-line .value {
    font-weight: 700;
    text-align: right;
}

.app-shell-content {
    padding: 24px 28px 32px;
}

.app-shell-footer {
    background: transparent;
    border-color: #e5e7eb !important;
}

.command-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.command-hero-card,
.usage-card,
.dashboard-panel,
.wallet-strip,
.command-mini-stat,
.quick-action-card {
    border: 1px solid #e1e4ea;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.command-hero-card {
    padding: 28px 30px;
}

.command-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.command-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #057a55;
}

.command-hero-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
    margin: 0 0 7px;
    font-weight: 800;
    color: #030712;
}

.command-hero-card p {
    color: #4b5563;
    margin-bottom: 15px;
}

.command-soft-btn {
    border: 1px solid #e5e7eb;
    color: #4f3fba;
    background: #ffffff;
    border-radius: 999px;
    font-weight: 800;
    padding: 7px 14px;
}

.command-soft-btn:hover {
    background: #f4f1ff;
    color: #4f3fba;
}

.command-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #263244;
    font-size: 0.9rem;
}

.command-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.command-hero-meta .bi-circle-fill {
    font-size: 0.56rem;
    color: #057a55;
}

.command-hero-meta .pill {
    padding: 5px 11px;
    background: #daf8ef;
    color: #06705f;
    border-radius: 999px;
    font-weight: 800;
}

.usage-card {
    padding: 22px;
}

.usage-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.usage-icon,
.wallet-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--app-primary-rgb), .08);
    color: #5140b8;
    flex: 0 0 46px;
}

.usage-card h2,
.dashboard-panel h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.usage-card p {
    margin: 0;
    color: #7c8393;
    font-size: 0.82rem;
}

.usage-card-head a,
.dashboard-panel-head a {
    margin-left: auto;
    color: #4f3fba;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
}

.usage-main-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(110px, 170px);
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.usage-main-row strong {
    display: block;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1;
    color: #111827;
    font-weight: 800;
}

.usage-main-row span,
.usage-footer-row span,
.wallet-strip span {
    display: block;
    text-transform: lowercase;
    color: #7c8393;
    font-size: 0.82rem;
}

.usage-main-row span {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.usage-chart-bar {
    height: 58px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.usage-chart-bar span {
    width: 100%;
    height: 58px;
    background: #5b48c8;
    display: block;
    border-radius: 0;
}

.usage-footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 18px;
}

.usage-footer-row strong {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.command-mini-stat {
    min-height: 94px;
    padding: 16px 18px;
    position: relative;
}

.command-mini-stat span {
    display: block;
    color: #7c8393;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.command-mini-stat i {
    position: absolute;
    top: 17px;
    right: 18px;
    color: #7c8393;
}

.command-mini-stat strong {
    display: block;
    color: #111827;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-top: 10px;
}

.command-mini-stat small {
    color: var(--app-primary);
    font-weight: 800;
}

.wallet-strip {
    min-height: 96px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-icon {
    background: #dcf7ef;
    color: #06705f;
}

.wallet-strip strong {
    display: block;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
}

.wallet-strip span {
    text-transform: uppercase;
    font-weight: 700;
}

.wallet-strip em {
    margin-left: auto;
    color: #06705f;
    background: #d9f8ef;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}

.wallet-strip .btn {
    border: 1px solid #e5e7eb;
    font-weight: 800;
    border-radius: 10px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    height: 100%;
}

.quick-action-card {
    min-height: 122px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #111827;
}

.quick-action-card:hover {
    color: #111827;
    transform: translateY(-1px);
}

.quick-action-card i {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.quick-action-card strong {
    font-weight: 800;
}

.quick-action-card span {
    color: #6b7280;
    font-size: 0.88rem;
}

.quick-action-card.purple { background: #efedff; border-color: #ddd7ff; color: #4f3fba; }
.quick-action-card.orange { background: #fff0e8; border-color: #ffd7c5; color: #c2410c; }
.quick-action-card.green { background: #e7f8f1; border-color: #c9efe2; color: #06705f; }
.quick-action-card.pink { background: #fdebf2; border-color: #f8ccd9; color: #be185d; }
.quick-action-card.is-disabled { cursor: default; opacity: 0.78; }

.dashboard-panel {
    padding: 24px;
}

.dashboard-panel-head,
.dashboard-tools-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.recent-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-chat-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: #111827;
    padding: 7px 4px;
    border-radius: 8px;
}

.recent-chat-row:hover {
    background: #f8f8fb;
    color: #111827;
}

.recent-chat-row i {
    color: #7c8393;
}

.recent-chat-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-chat-row small {
    color: #9aa3b2;
    white-space: nowrap;
}

.quick-agent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-agent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2e236f;
    background: #eeebff;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 800;
    font-size: 0.86rem;
}

.quick-agent-chip:hover {
    background: #e3ddff;
    color: #2e236f;
}

.all-tools-panel {
    scroll-margin-top: 90px;
}

.tool-section-card {
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 16px 16px 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15,23,42,.04);
}

.tool-section-heading-card {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    font-weight: 700;
    margin-bottom: 14px;
}

.tool-item-dashboard {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 10px 14px 14px;
}

.tool-card-row {
    display: flex;
    width: 100%;
}

.dashboard-tools-search-wrap {
    flex: 1 1 auto;
    min-width: min(420px, 100%);
    max-width: 620px;
}

.dashboard-tools-search-group {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #c9d6e8;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
    min-height: 48px;
}

.dashboard-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #5f6f86;
    font-size: 18px;
    flex: 0 0 44px;
}

.dashboard-tools-search-input {
    border: 0;
    outline: none;
    box-shadow: none;
    width: 100%;
    padding: 10px 8px;
    font-size: 15px;
    min-width: 0;
    background: transparent;
    min-height: 46px;
}

.dashboard-tools-search-input:focus {
    outline: none;
    box-shadow: none;
}

.dashboard-tools-search-button {
    border: 0;
    border-left: 1px solid #dbe4f0;
    background: #eef4ff;
    color: #23406a;
    font-weight: 700;
    padding: 0 20px;
    white-space: nowrap;
    transition: all .2s ease;
    align-self: stretch;
    min-height: 46px;
}

.dashboard-tools-search-button:hover {
    background: #dfeafe;
}

.tool-card-row-icons {
    justify-content: flex-end;
    min-height: 24px;
    margin-bottom: 10px;
}

.tool-card-row-label {
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 2px;
}

.tool-card-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.tool-card-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tool-card-badge-image {
    height: 22px;
    width: auto;
    max-width: 22px;
    display: block;
    object-fit: contain;
}

.tool-item-coming-soon {
    background: #f3edff !important;
    border-color: #d6c3ff !important;
    cursor: default;
    pointer-events: auto;
}

.tool-coming-soon-text {
    color: #7c63b8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
    text-align: center;
}

.tool-help-video-wrap {
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
}

.tool-item-label {
    display: block;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.35;
}

.tool-item-under-development {
    background: linear-gradient(180deg,#fff7ed 0%,#ffedd5 100%);
    border-color: #fdba74;
}

.tool-item-under-development:hover {
    background: linear-gradient(180deg,#fffbeb 0%,#fef3c7 100%);
    border-color: #f59e0b;
}

.tool-under-development-text {
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
    text-align: center;
}

.btn-update-subscription {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.btn-update-subscription:hover {
    background: var(--app-secondary);
    border-color: var(--app-secondary);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .app-topbar-search {
        width: min(420px, 42vw);
    }
    .app-topbar-version,
    .app-topbar-balance em {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 20px 0 40px rgba(15, 23, 42, 0.16);
    }
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .app-mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.34);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 1039;
    }
    body.sidebar-open .app-mobile-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .app-topbar {
        padding: 0 16px;
    }
    .app-topbar-search {
        width: min(520px, 62vw);
    }
    .app-shell-content {
        padding: 18px 14px 28px;
    }
    .dashboard-tools-top {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-tools-search-wrap {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .app-topbar-search {
        width: auto;
        flex: 1 1 auto;
    }
    .app-topbar-actions {
        gap: 8px;
    }
    .app-topbar-balance span {
        display: none;
    }
    .command-hero-card,
    .usage-card,
    .dashboard-panel {
        padding: 20px;
    }
    .wallet-strip {
        align-items: flex-start;
        flex-direction: column;
    }
    .wallet-strip em {
        margin-left: 0;
    }
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
    .usage-main-row,
    .usage-footer-row {
        grid-template-columns: 1fr;
    }
    .recent-chat-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }
    .recent-chat-row small {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .app-topbar {
        gap: 8px;
    }
    .app-topbar-search input::placeholder {
        color: transparent;
    }
    .app-topbar-icon {
        display: none;
    }
    .dashboard-tools-search-group {
        min-height: 46px;
    }
    .dashboard-tools-search-button {
        padding: 0 16px;
    }
}

/* AI TOOLBOX interface refinements */
html,
body,
button,
input,
select,
option,
textarea,
.btn,
.dropdown-menu,
.form-control,
.form-select,
.modal,
.offcanvas,
.tooltip,
.popover {
    font-family: "AI Toolbox Purno Pran", "Calibri Light", Calibri, "Segoe UI Light", "Segoe UI", Arial, sans-serif;
}

body.app-shell-body {
    font-size: 14px;
}

.app-footer {
    padding: 0.5rem 0;
    line-height: 1.15;
}

.app-shell-footer {
    min-height: 30px;
}

.app-sidebar {
    transition: width 0.2s ease, flex-basis 0.2s ease, transform 0.22s ease;
}

.app-sidebar-brand-row {
    min-height: 56px;
    padding: 12px 12px 8px;
}

.app-sidebar-brand {
    flex: 1 1 auto;
    max-width: 150px;
}

.app-sidebar-logo {
    display: block;
    object-fit: contain;
}

.app-sidebar-logo-full {
    width: 124px;
    max-height: 38px;
}

.app-sidebar-logo-mini {
    display: none;
    width: 34px;
    height: 34px;
}

.app-sidebar-minimize,
.app-sidebar-close,
.app-topbar-menu {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    padding: 0;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar-minimize:hover,
.app-sidebar-close:hover,
.app-topbar-menu:hover {
    background: #f6f4ff;
    border-color: #d9d4ff;
    color: #5b48c8;
}

.app-sidebar-new-chat,
.app-sidebar-link,
.app-topbar-version,
.app-topbar-balance,
.app-topbar-icon,
.command-soft-btn,
.quick-action-card,
.dashboard-tools-search-button,
.wallet-strip .btn {
    font-size: 14px;
}

.app-sidebar-new-chat {
    min-height: 43px;
    border-radius: 8px;
    font-weight: 700;
}

.app-sidebar-link {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 600;
}

.app-sidebar-link i {
    font-size: 15px;
}

.app-topbar {
    height: 60px;
    padding: 0 22px;
}

.app-topbar-search {
    height: 38px;
    width: min(520px, 46vw);
    border-radius: 8px;
    background: #f7f7fa;
    border-color: #dcdfe7;
    padding: 0 13px;
}

.app-topbar-search input {
    font-size: 14px;
}

.app-topbar-search input::placeholder {
    color: #8b95a7;
}

.app-topbar-version,
.app-topbar-balance,
.app-topbar-icon {
    min-height: 34px;
    font-weight: 600;
}

.app-topbar-icon {
    width: 36px;
    border-radius: 10px;
}

.app-sidebar-user-dropdown {
    min-width: 0;
}

.app-sidebar-user-card {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 6px 4px;
    border-radius: 12px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.app-sidebar-user-card:hover,
.app-sidebar-user-card[aria-expanded="true"] {
    background: #f6f4ff;
}

.app-sidebar-user-text span {
    color: #7c8393;
    font-size: 0.76rem;
}

.app-sidebar-user-dropdown .user-menu-panel {
    margin-bottom: 8px !important;
    min-width: 286px;
}

body.sidebar-minimized .app-sidebar {
    width: 76px;
    flex-basis: 76px;
}

body.sidebar-minimized .app-sidebar-brand-row {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

body.sidebar-minimized .app-sidebar-brand {
    flex: 0 0 100%;
    justify-content: center;
    max-width: none;
}

body.sidebar-minimized .app-sidebar-logo-full {
    display: none;
}

body.sidebar-minimized .app-sidebar-logo-mini {
    display: block;
}

body.sidebar-minimized .app-sidebar-minimize {
    width: 30px;
    height: 30px;
    min-width: 30px;
}

body.sidebar-minimized .app-sidebar-new-chat {
    width: 42px;
    min-height: 42px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

body.sidebar-minimized .app-sidebar-new-chat span,
body.sidebar-minimized .app-sidebar-link span,
body.sidebar-minimized .app-sidebar-link small,
body.sidebar-minimized .app-sidebar-section-title,
body.sidebar-minimized .app-sidebar-user-text {
    display: none;
}

body.sidebar-minimized .app-sidebar-nav,
body.sidebar-minimized .app-sidebar-bottom {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-minimized .app-sidebar-link {
    width: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
    margin-left: auto;
    margin-right: auto;
}

body.sidebar-minimized .app-sidebar-link i {
    width: auto;
}

body.sidebar-minimized .app-sidebar-user-card {
    justify-content: center;
    padding: 6px 0;
}

body.sidebar-minimized .app-sidebar-user-avatar {
    margin: 0 auto;
}

body.sidebar-minimized .app-sidebar-user-dropdown .user-menu-panel {
    margin-left: 56px !important;
}

@media (max-width: 991.98px) {
    .app-sidebar-minimize {
        display: none;
    }
    .app-sidebar-close {
        display: inline-flex !important;
    }
    body.sidebar-minimized .app-sidebar {
        width: 250px;
        flex-basis: 250px;
    }
    body.sidebar-minimized .app-sidebar-logo-full,
    body.sidebar-minimized .app-sidebar-new-chat span,
    body.sidebar-minimized .app-sidebar-link span,
    body.sidebar-minimized .app-sidebar-link small,
    body.sidebar-minimized .app-sidebar-user-text {
        display: initial;
    }
    body.sidebar-minimized .app-sidebar-logo-mini {
        display: none;
    }
    body.sidebar-minimized .app-sidebar-link,
    body.sidebar-minimized .app-sidebar-new-chat {
        width: auto;
    }
    body.sidebar-minimized .app-sidebar-link {
        justify-content: flex-start;
        gap: 12px;
        padding: 0 13px;
    }
    body.sidebar-minimized .app-sidebar-new-chat {
        padding: 0 14px;
    }
    .app-topbar {
        height: 58px;
        padding: 0 14px;
    }
}


/* AI TOOLBOX V-1.2.3 sidebar + topbar refinements */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.app-shell-main {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    transition: margin-left 0.2s ease, width 0.2s ease;
}

body.sidebar-minimized .app-shell-main {
    margin-left: 76px;
    width: calc(100% - 76px);
}

.app-sidebar-brand-row {
    min-height: 48px;
    padding: 9px 10px 6px;
    gap: 8px;
}

.app-sidebar-brand {
    max-width: 172px;
    flex: 1 1 auto;
    gap: 8px;
}

.app-sidebar-favicon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: contain;
    flex: 0 0 30px;
}

.app-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.app-sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
}

.app-sidebar-subtitle {
    font-size: 0.65rem;
    color: #7c8393;
}

.app-sidebar-new-chat {
    min-height: 34px;
    margin: 6px 10px 8px;
    gap: 7px;
    font-size: 12px;
    border-radius: 7px;
}

.app-sidebar-nav {
    padding: 0 10px;
    gap: 1px;
}

.app-sidebar-link {
    min-height: 31px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.app-sidebar-link i {
    width: 17px;
    font-size: 13px;
}

.app-sidebar-link small {
    font-size: 0.56rem;
    padding: 1px 5px;
}

.app-sidebar-section-title {
    padding: 8px 10px 4px;
    font-size: 0.62rem;
}

.app-sidebar-bottom {
    padding: 8px 10px;
    gap: 1px;
}

.app-sidebar-user-card {
    margin-top: 5px;
    padding: 4px 2px;
    gap: 8px;
}

.app-sidebar-user-avatar {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px;
}

.app-sidebar-user-text strong {
    font-size: 0.76rem;
}

.app-sidebar-user-text span {
    font-size: 0.64rem;
}

.app-sidebar-minimize,
.app-sidebar-close,
.app-topbar-menu {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    font-size: 11px;
}

.app-topbar {
    height: 36px;
    padding: 0 14px;
    gap: 10px;
}

.app-topbar-left,
.app-topbar-actions {
    gap: 8px;
}

.app-topbar-search {
    height: 24px;
    width: min(420px, 42vw);
    border-radius: 6px;
    padding: 0 8px;
    gap: 6px;
}

.app-topbar-search i {
    font-size: 12px;
}

.app-topbar-search input {
    font-size: 12px;
}

.app-topbar-balance {
    min-height: 24px;
    padding: 0 8px;
    gap: 5px;
    font-size: 12px;
}

.app-topbar-balance em {
    font-size: 0.62rem;
    padding-left: 5px;
}

.app-topbar-version-text {
    font-size: 0.62rem;
    padding-left: 5px;
}

.app-shell-content {
    padding-top: 18px;
}

body.sidebar-minimized .app-sidebar-brand-row {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
}

body.sidebar-minimized .app-sidebar-brand {
    flex-basis: 100%;
    justify-content: center;
}

body.sidebar-minimized .app-sidebar-brand-copy {
    display: none;
}

body.sidebar-minimized .app-sidebar-favicon {
    width: 30px;
    height: 30px;
}

body.sidebar-minimized .app-sidebar-new-chat {
    width: 38px;
    min-height: 34px;
}

body.sidebar-minimized .app-sidebar-link {
    width: 38px;
    min-height: 31px;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        height: 100vh;
        min-height: 100vh;
    }

    .app-shell-main,
    body.sidebar-minimized .app-shell-main {
        margin-left: 0;
        width: 100%;
    }

    body.sidebar-minimized .app-sidebar-brand-copy {
        display: flex;
    }

    body.sidebar-minimized .app-sidebar-brand {
        justify-content: flex-start;
    }

    .app-topbar {
        height: 36px;
        padding: 0 10px;
    }
}

@media (max-width: 575.98px) {
    .app-topbar-search {
        height: 24px;
        width: auto;
    }

    .app-topbar-balance {
        min-height: 24px;
        padding: 0 7px;
    }
}

/* AI TOOLBOX V-1.2.4 sidebar branding, user menu and topbar refinements */
.app-sidebar-brand-row {
    min-height: 52px;
    padding: 10px 10px 8px;
    align-items: center;
}

.app-sidebar-brand {
    gap: 9px;
    align-items: center;
}

.app-sidebar-favicon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    margin-top: 1px;
    margin-bottom: 1px;
}

.app-sidebar-brand-copy {
    line-height: 1.16;
    gap: 2px;
}

.app-sidebar-title {
    font-size: 0.8rem;
    line-height: 1.12;
}

.app-sidebar-subtitle {
    font-size: 0.58rem;
    line-height: 1.18;
}

.app-sidebar-user-card {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 5px 4px;
    gap: 8px;
}

.app-sidebar-user-avatar {
    margin-left: 0;
}

.app-sidebar-user-text {
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
}

.app-sidebar-user-text strong {
    font-size: 0.74rem;
    line-height: 1.15;
}

.app-sidebar-user-text span {
    font-size: 0.6rem;
    line-height: 1.1;
}

.app-sidebar-user-dropdown .user-menu-panel {
    padding: 5px;
    font-size: 0.72rem;
}

.app-sidebar-user-dropdown .user-menu-meta {
    padding: 5px 6px 3px;
}

.app-sidebar-user-dropdown .user-menu-name {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.18;
}

.app-sidebar-user-dropdown .user-menu-email {
    font-size: 0.66rem;
    line-height: 1.15;
}

.app-sidebar-user-dropdown .user-menu-line {
    padding: 2px 0;
    font-size: 0.68rem;
    line-height: 1.18;
}

.app-sidebar-user-dropdown .user-menu-line .label,
.app-sidebar-user-dropdown .user-menu-line .value {
    font-weight: 400;
}

.app-sidebar-user-dropdown .dropdown-item {
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.15;
}

.app-sidebar-user-dropdown .dropdown-item i {
    font-size: 0.78rem;
}

.app-sidebar-user-dropdown .dropdown-divider,
.app-sidebar-user-dropdown .user-menu-divider {
    margin: 4px 0;
}

.app-topbar {
    height: 44px;
    padding: 5px 14px;
    align-items: center;
}

.app-topbar-search {
    height: 30px;
}

.app-topbar-balance {
    min-height: 30px;
}

.app-topbar-menu {
    width: 30px;
    height: 30px;
    min-width: 30px;
}

@media (max-width: 991.98px) {
    .app-topbar {
        height: 44px;
        padding: 5px 10px;
    }
}

@media (max-width: 575.98px) {
    .app-topbar-search {
        height: 30px;
    }

    .app-topbar-balance {
        min-height: 30px;
    }
}

/* AI TOOLBOX V-1.2.5 bottom user menu + active dark/light theme */
.app-sidebar-user-dropdown .user-menu-panel {
    width: 228px;
    min-width: 228px;
    max-width: 228px;
}

.app-sidebar-user-dropdown .app-theme-toggle {
    width: 100%;
    text-align: left;
}

body.sidebar-minimized .app-sidebar-user-dropdown .user-menu-panel {
    margin-left: 52px !important;
}

html.app-dark-mode {
    --app-background: #0b1120;
    --app-surface: #111827;
    --app-text: #e5e7eb;
    --app-text-muted: #9ca3af;
    --app-border: #263244;
    --app-dark: #a78bfa;
}

html.app-dark-mode body,
html.app-dark-mode body.app-shell-body,
body.app-dark-mode,
body.app-dark-mode.app-shell-body {
    background: #0b1120;
    color: #e5e7eb;
}

html.app-dark-mode .app-shell,
html.app-dark-mode .app-shell-main,
html.app-dark-mode .app-main,
html.app-dark-mode .app-shell-content,
html.app-dark-mode .bg-light {
    background: #0b1120 !important;
    color: #e5e7eb;
}

html.app-dark-mode .app-sidebar,
html.app-dark-mode .app-topbar,
html.app-dark-mode .app-footer,
html.app-dark-mode .app-navbar,
html.app-dark-mode .dropdown-menu,
html.app-dark-mode .user-menu-panel,
html.app-dark-mode .card,
html.app-dark-mode .card-soft,
html.app-dark-mode .auth-card,
html.app-dark-mode .form-card-unified,
html.app-dark-mode .dashboard-panel,
html.app-dark-mode .command-hero-card,
html.app-dark-mode .usage-card,
html.app-dark-mode .wallet-strip,
html.app-dark-mode .command-mini-stat,
html.app-dark-mode .quick-action-card,
html.app-dark-mode .tool-item,
html.app-dark-mode .package-card,
html.app-dark-mode .pricing-card,
html.app-dark-mode .table-responsive,
html.app-dark-mode .modal-content,
html.app-dark-mode .ai-modal-card,
html.app-dark-mode .ai-input-wrap,
html.app-dark-mode .ai-message-bubble.assistant {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #263244 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

html.app-dark-mode .app-sidebar,
html.app-dark-mode .app-topbar,
html.app-dark-mode .app-shell-footer,
html.app-dark-mode .app-sidebar-bottom {
    border-color: #263244 !important;
}

html.app-dark-mode .app-sidebar-title,
html.app-dark-mode .app-sidebar-user-text strong,
html.app-dark-mode .user-menu-name,
html.app-dark-mode .user-menu-line,
html.app-dark-mode .dashboard-panel-head h2,
html.app-dark-mode .command-hero-card h1,
html.app-dark-mode .usage-main-row strong,
html.app-dark-mode .command-mini-stat strong,
html.app-dark-mode h1,
html.app-dark-mode h2,
html.app-dark-mode h3,
html.app-dark-mode h4,
html.app-dark-mode h5,
html.app-dark-mode h6,
html.app-dark-mode label,
html.app-dark-mode .form-label,
html.app-dark-mode .table,
html.app-dark-mode .table > :not(caption) > * > *,
html.app-dark-mode .ai-message-content {
    color: #e5e7eb !important;
}

html.app-dark-mode .text-muted,
html.app-dark-mode .form-text,
html.app-dark-mode small,
html.app-dark-mode .app-sidebar-subtitle,
html.app-dark-mode .app-sidebar-user-text span,
html.app-dark-mode .user-menu-email,
html.app-dark-mode .user-menu-line .label,
html.app-dark-mode .command-kicker,
html.app-dark-mode .quick-action-card span,
html.app-dark-mode .tool-category,
html.app-dark-mode .tool-description {
    color: #9ca3af !important;
}

html.app-dark-mode .app-sidebar-link,
html.app-dark-mode .app-sidebar-new-chat,
html.app-dark-mode .dropdown-item,
html.app-dark-mode .nav-link,
html.app-dark-mode .list-group-item {
    color: #d1d5db !important;
}

html.app-dark-mode .app-sidebar-link i,
html.app-dark-mode .dropdown-item i,
html.app-dark-mode .app-topbar-search i {
    color: #a5b4fc !important;
}

html.app-dark-mode .app-sidebar-link:hover,
html.app-dark-mode .app-sidebar-link.active,
html.app-dark-mode .app-sidebar-user-card:hover,
html.app-dark-mode .app-sidebar-user-card[aria-expanded="true"],
html.app-dark-mode .dropdown-item:hover,
html.app-dark-mode .dropdown-item.active,
html.app-dark-mode .dropdown-item:focus {
    background: #1f2937 !important;
    color: #ffffff !important;
}

html.app-dark-mode .app-topbar-search,
html.app-dark-mode .form-control,
html.app-dark-mode .form-select,
html.app-dark-mode .input-group-text,
html.app-dark-mode textarea,
html.app-dark-mode input,
html.app-dark-mode select,
html.app-dark-mode .dashboard-tools-search-group,
html.app-dark-mode .dashboard-tools-search-input,
html.app-dark-mode .ai-chat-textarea {
    background: #0f172a !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

html.app-dark-mode .form-control::placeholder,
html.app-dark-mode .app-topbar-search input::placeholder,
html.app-dark-mode .dashboard-tools-search-input::placeholder,
html.app-dark-mode textarea::placeholder,
html.app-dark-mode input::placeholder {
    color: #64748b !important;
}

html.app-dark-mode .app-topbar-balance {
    background: #064e3b !important;
    color: #d1fae5 !important;
    border-color: #047857 !important;
}

html.app-dark-mode .btn,
html.app-dark-mode .command-soft-btn,
html.app-dark-mode .dashboard-tools-search-button,
html.app-dark-mode .app-sidebar-minimize,
html.app-dark-mode .app-sidebar-close,
html.app-dark-mode .app-topbar-menu {
    border-color: #334155 !important;
}

html.app-dark-mode .btn-light,
html.app-dark-mode .btn-outline-secondary,
html.app-dark-mode .command-soft-btn,
html.app-dark-mode .app-sidebar-minimize,
html.app-dark-mode .app-sidebar-close,
html.app-dark-mode .app-topbar-menu {
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

html.app-dark-mode .btn-light:hover,
html.app-dark-mode .btn-outline-secondary:hover,
html.app-dark-mode .command-soft-btn:hover,
html.app-dark-mode .app-sidebar-minimize:hover,
html.app-dark-mode .app-sidebar-close:hover,
html.app-dark-mode .app-topbar-menu:hover {
    background: #263244 !important;
    color: #ffffff !important;
}

html.app-dark-mode .btn-primary,
html.app-dark-mode .dashboard-tools-search-button,
html.app-dark-mode .app-sidebar-new-chat {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #ffffff !important;
}

html.app-dark-mode .btn-primary:hover,
html.app-dark-mode .dashboard-tools-search-button:hover,
html.app-dark-mode .app-sidebar-new-chat:hover {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #ffffff !important;
}

html.app-dark-mode .dropdown-divider,
html.app-dark-mode .user-menu-divider,
html.app-dark-mode hr,
html.app-dark-mode .border,
html.app-dark-mode .card,
html.app-dark-mode .table,
html.app-dark-mode .table > :not(caption) > * > * {
    border-color: #263244 !important;
}

html.app-dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #e5e7eb;
    background-color: rgba(255, 255, 255, 0.03);
}

html.app-dark-mode .alert-info,
html.app-dark-mode .alert-warning,
html.app-dark-mode .alert-success,
html.app-dark-mode .alert-danger {
    background: #111827;
    color: #e5e7eb;
    border-color: #334155;
}

html.app-dark-mode .quick-action-card.purple,
html.app-dark-mode .quick-action-card.orange,
html.app-dark-mode .quick-action-card.green,
html.app-dark-mode .quick-action-card.pink {
    background: #111827 !important;
}

html.app-dark-mode .ai-message-bubble.user {
    background: var(--app-primary) !important;
    color: #ffffff !important;
}

html.app-dark-mode .ai-chat-messages {
    background: #0f172a !important;
    border-color: #263244 !important;
}

html.app-dark-mode .text-danger {
    color: #fca5a5 !important;
}

/* AI TOOLBOX V-1.2.12 - global Purple primary theme. */
:root{
    --app-primary:#055CB2;
    --app-secondary:#044F99;
    --app-dark:#04478A;
    --app-primary-deep:#033B72;
    --app-primary-hover:#044F99;
    --app-primary-rgb:5,92,178;
    --app-secondary-rgb:4,79,153;
    --bs-primary:var(--app-primary);
    --bs-primary-rgb:5,92,178;
    --bs-link-color:var(--app-secondary);
    --bs-link-hover-color:var(--app-primary-hover);
}
.navbar,
.navbar.app-navbar,
.topbar,
.app-topbar{
    background:rgba(var(--app-primary-rgb), .08)!important;
}
.navbar .nav-link,
.topbar .nav-link,
.navbar.app-navbar .navbar-nav .nav-link,
.app-topbar a,
.app-topbar button{
    color:var(--app-dark)!important;
}
.navbar .nav-link:hover,
.topbar .nav-link:hover,
.navbar .nav-link.active,
.topbar .nav-link.active,
.navbar.app-navbar .navbar-nav .nav-link:hover,
.navbar.app-navbar .navbar-nav .nav-link.active{
    color:var(--app-primary-deep)!important;
    background:rgba(var(--app-primary-rgb), .1)!important;
}
.navbar .dropdown-menu .dropdown-item i,
.topbar .dropdown-menu .dropdown-item i{color:var(--app-secondary)!important}
.navbar .dropdown-menu .dropdown-item:hover,
.topbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active,
.topbar .dropdown-menu .dropdown-item.active{
    background:rgba(var(--app-primary-rgb), .06)!important;
    color:var(--app-primary-deep)!important;
}
.btn-primary,
.btn-primary:visited,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary,
a.btn-primary{
    background:var(--app-primary)!important;
    border-color:var(--app-primary)!important;
    color:#fff!important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.show{
    background:var(--app-secondary)!important;
    border-color:var(--app-secondary)!important;
    color:#fff!important;
}
.btn-outline-primary{
    border-color:var(--app-primary)!important;
    color:var(--app-secondary)!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active{
    background:var(--app-primary)!important;
    border-color:var(--app-primary)!important;
    color:#fff!important;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus{
    border-color:rgba(var(--app-primary-rgb), .7)!important;
    box-shadow:0 0 0 .25rem rgba(var(--app-primary-rgb), .16)!important;
}
.form-check-input:checked{
    background-color:var(--app-primary)!important;
    border-color:var(--app-primary)!important;
}
.text-primary{color:var(--app-secondary)!important}
.bg-primary,.text-bg-primary{background-color:var(--app-primary)!important;color:#fff!important}
.border-primary{border-color:var(--app-primary)!important}
.page-link{color:var(--app-secondary)}
.page-item.active .page-link{background:var(--app-primary);border-color:var(--app-primary);color:#fff}
.app-sidebar-new-chat,
.app-sidebar-link.active{
    background:var(--app-primary)!important;
    color:#fff!important;
}
.app-sidebar-link:hover{background:rgba(var(--app-primary-rgb), .1);color:var(--app-dark)}
.app-topbar-balance{border-color:rgba(var(--app-primary-rgb), .26)!important;background:rgba(var(--app-primary-rgb), .08)!important;color:var(--app-dark)!important}
.btn-update-subscription{background:var(--app-primary)!important;border-color:var(--app-primary)!important;color:#fff!important}
.btn-update-subscription:hover{background:var(--app-secondary)!important;border-color:var(--app-secondary)!important}

/* AI TOOLBOX V-1.2.13 - keep the global Top Bar visible while page content scrolls. */
.app-topbar{
    position:sticky!important;
    top:0!important;
    z-index:1035!important;
    flex:0 0 auto;
    box-shadow:0 4px 14px rgba(59,34,116,.08);
}
body.app-shell-body .app-shell-main{overflow:visible}
.topbar{position:sticky;top:0;z-index:1035}

/* AI TOOLBOX V-1.2.15 — original AI BOSS Control Room dashboard. */
.bos-command-center{
    --bos-ink:#171326;
    --bos-muted:#746f84;
    display:flex;
    flex-direction:column;
    gap:1rem;
    padding-bottom:1.5rem;
}
.bos-command-hero{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);
    gap:1rem;
    min-height:330px;
    padding:clamp(1.5rem,3vw,3rem);
    border-radius:28px;
    overflow:hidden;
    color:#fff;
    background:
        radial-gradient(circle at 78% 24%,rgba(255,255,255,.18),transparent 24%),
        radial-gradient(circle at 10% 100%,rgba(231,210,255,.18),transparent 34%),
        linear-gradient(120deg,#24103f 0%,#5a2bc5 48%,#8c5cff 100%);
    box-shadow:0 24px 65px rgba(73,39,139,.24);
}
.bos-command-hero::before{
    content:'';
    position:absolute;
    inset:0;
    opacity:.2;
    background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to right,#000,transparent 76%);
}
.bos-command-hero::after{
    content:'';
    position:absolute;
    width:210px;
    height:210px;
    right:-55px;
    bottom:-65px;
    border:42px solid rgba(255,255,255,.08);
    border-radius:50%;
}
.bos-command-hero-copy,.bos-readiness-orbit{position:relative;z-index:2}
.bos-command-eyebrow{display:flex;align-items:center;gap:.55rem;margin-bottom:1rem;font-size:.72rem;font-weight:800;letter-spacing:.18em;color:rgba(255,255,255,.72)}
.bos-command-eyebrow span{width:30px;height:2px;border-radius:99px;background:#d8c7ff}
.bos-command-hero h1{max-width:760px;margin:0 0 .8rem;font-size:clamp(2rem,4vw,4.4rem);line-height:.98;letter-spacing:-.055em;font-weight:800;color:#fff}
.bos-command-hero p{max-width:690px;margin:0 0 1.55rem;color:rgba(255,255,255,.76);font-size:clamp(.95rem,1.45vw,1.12rem);line-height:1.75}
.bos-command-hero-actions{display:flex;flex-wrap:wrap;gap:.65rem}
.bos-command-hero-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:13px;padding:.65rem 1rem;font-weight:700}
.bos-command-ghost{border:1px solid rgba(255,255,255,.28)!important;background:rgba(255,255,255,.09)!important;color:#fff!important;backdrop-filter:blur(9px)}
.bos-command-ghost:hover{background:rgba(255,255,255,.16)!important}
.bos-command-signal-row{display:flex;flex-wrap:wrap;gap:.55rem 1.1rem;margin-top:1.6rem;color:rgba(255,255,255,.68);font-size:.73rem;font-weight:600}
.bos-command-signal-row span{display:inline-flex;align-items:center;gap:.38rem}
.bos-command-signal-row .bi-circle-fill{font-size:.45rem;color:#72f6c0;filter:drop-shadow(0 0 5px rgba(114,246,192,.7))}
.bos-readiness-orbit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-width:0}
.bos-readiness-ring{
    --angle:calc(var(--readiness) * 3.6deg);
    position:relative;
    width:190px;
    aspect-ratio:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:conic-gradient(#fff var(--angle),rgba(255,255,255,.17) 0);
    box-shadow:0 16px 42px rgba(20,8,47,.28);
}
.bos-readiness-ring::before{content:'';position:absolute;inset:11px;border-radius:50%;background:linear-gradient(145deg,rgba(36,16,63,.86),rgba(89,43,197,.86));box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.bos-readiness-ring>*{position:relative;z-index:1}
.bos-readiness-ring strong{font-size:2.65rem;line-height:1;font-weight:800;letter-spacing:-.05em}
.bos-readiness-ring span{margin-top:.35rem;color:rgba(255,255,255,.68);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}
.bos-readiness-note{display:flex;align-items:flex-start;gap:.55rem;max-width:260px;padding:.72rem .82rem;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(20,8,47,.16);color:rgba(255,255,255,.76);font-size:.73rem;line-height:1.45;backdrop-filter:blur(8px)}
.bos-readiness-note i{margin-top:.05rem;color:#fff}

.bos-command-metrics{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:.65rem;
    padding:.65rem;
    border:1px solid var(--bs-border-color);
    border-radius:20px;
    background:var(--bs-body-bg);
    box-shadow:0 12px 34px rgba(30,20,55,.06);
}
.bos-command-metrics a{position:relative;display:flex;min-width:0;flex-direction:column;padding:.9rem 1rem;border-radius:14px;text-decoration:none;color:var(--bs-body-color);overflow:hidden;transition:transform .18s ease,background .18s ease}
.bos-command-metrics a:hover{transform:translateY(-2px);background:rgba(var(--bs-primary-rgb),.055)}
.bos-command-metrics a:not(:last-child)::after{content:'';position:absolute;right:-.34rem;top:18%;bottom:18%;width:1px;background:var(--bs-border-color)}
.bos-command-metrics span{color:var(--bs-secondary-color);font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.045em}
.bos-command-metrics strong{max-width:100%;margin-top:.35rem;font-size:1.42rem;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bos-command-metrics i{position:absolute;right:.85rem;bottom:.75rem;color:rgba(var(--bs-primary-rgb),.18);font-size:1.55rem}

.bos-command-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr);gap:1rem;align-items:stretch}
.bos-command-lower-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr);gap:1rem;align-items:stretch}
.bos-command-panel{position:relative;min-width:0;padding:1.15rem;border:1px solid var(--bs-border-color);border-radius:22px;background:var(--bs-body-bg);box-shadow:0 15px 38px rgba(30,20,55,.055);overflow:hidden}
.bos-command-panel::before{content:'';position:absolute;left:0;top:0;width:74px;height:3px;border-radius:0 99px 99px 0;background:linear-gradient(90deg,var(--bs-primary),rgba(var(--bs-primary-rgb),.18))}
.bos-command-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.bos-command-panel-head>div{min-width:0}
.bos-command-panel-head h2{display:inline;margin:0;font-size:1rem;font-weight:800;letter-spacing:-.02em}
.bos-command-panel-head p{margin:.2rem 0 0 2.1rem;color:var(--bs-secondary-color);font-size:.72rem}
.bos-command-panel-head>a{flex:0 0 auto;font-size:.72rem;font-weight:700;text-decoration:none}
.bos-panel-index{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-right:.45rem;border-radius:8px;background:rgba(var(--bs-primary-rgb),.1);color:var(--bs-primary);font-size:.65rem;font-weight:800}

.bos-project-radar-list{display:flex;flex-direction:column;gap:.45rem}
.bos-project-radar-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto 18px;align-items:center;gap:.65rem;padding:.72rem .65rem;border:1px solid transparent;border-radius:14px;color:var(--bs-body-color);text-decoration:none;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.bos-project-radar-row:hover{background:rgba(var(--bs-primary-rgb),.045);border-color:rgba(var(--bs-primary-rgb),.13);transform:translateX(2px)}
.bos-project-radar-mark{width:8px;height:28px;border-radius:999px;background:linear-gradient(var(--bs-primary),rgba(var(--bs-primary-rgb),.24))}
.bos-project-radar-copy{min-width:0}
.bos-project-radar-copy strong,.bos-project-radar-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bos-project-radar-copy strong{font-size:.8rem}
.bos-project-radar-copy small{margin-top:.16rem;color:var(--bs-secondary-color);font-size:.67rem}
.bos-project-radar-row>i{color:var(--bs-secondary-color)}
.bos-command-status{display:inline-flex;align-items:center;padding:.22rem .46rem;border-radius:999px;font-size:.62rem;font-weight:700;white-space:nowrap}
.bos-command-status.is-positive{background:rgba(25,135,84,.11);color:#198754}
.bos-command-status.is-waiting{background:rgba(255,193,7,.15);color:#9c7300}
.bos-command-status.is-negative{background:rgba(220,53,69,.11);color:#dc3545}
.bos-command-status.is-neutral{background:rgba(108,117,125,.11);color:var(--bs-secondary-color)}

.bos-operation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.62rem}
.bos-operation-grid a{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.68rem;padding:.82rem;border:1px solid var(--bs-border-color);border-radius:15px;color:var(--bs-body-color);text-decoration:none;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.bos-operation-grid a::after{content:'';position:absolute;width:65px;height:65px;right:-30px;bottom:-30px;border-radius:50%;background:rgba(var(--bs-primary-rgb),.07);transition:transform .18s ease}
.bos-operation-grid a:hover{transform:translateY(-3px);border-color:rgba(var(--bs-primary-rgb),.3);box-shadow:0 10px 22px rgba(var(--bs-primary-rgb),.08)}
.bos-operation-grid a:hover::after{transform:scale(1.35)}
.bos-operation-grid i{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:rgba(var(--bs-primary-rgb),.1);color:var(--bs-primary);font-size:1rem}
.bos-operation-grid strong{align-self:end;font-size:.76rem}
.bos-operation-grid span{align-self:start;color:var(--bs-secondary-color);font-size:.65rem;line-height:1.35}

.bos-decision-stack{display:flex;flex-direction:column;gap:.55rem}
.bos-decision-stack>a{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:.65rem;padding:.7rem;border:1px solid var(--bs-border-color);border-radius:14px;color:var(--bs-body-color);text-decoration:none}
.bos-decision-stack>a:hover{border-color:rgba(var(--bs-primary-rgb),.28);background:rgba(var(--bs-primary-rgb),.035)}
.bos-decision-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:rgba(var(--bs-primary-rgb),.09);color:var(--bs-primary)}
.bos-decision-stack strong,.bos-decision-stack small{display:block}
.bos-decision-stack strong{font-size:.76rem}.bos-decision-stack small{margin-top:.12rem;color:var(--bs-secondary-color);font-size:.64rem;line-height:1.35}
.bos-decision-stack>a>i{color:var(--bs-secondary-color);font-size:.72rem}
.bos-decision-footer{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.75rem}
.bos-decision-footer span{padding:.65rem;border-radius:12px;background:rgba(var(--bs-primary-rgb),.045);color:var(--bs-secondary-color);font-size:.65rem;text-align:center}
.bos-decision-footer strong{display:block;margin-bottom:.15rem;color:var(--bs-body-color);font-size:1rem}

.bos-activity-timeline{display:flex;flex-direction:column;gap:.2rem}
.bos-activity-timeline>div:not(.bos-command-empty){position:relative;display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:.55rem;padding:.53rem 0}
.bos-activity-timeline>div:not(.bos-command-empty)::after{content:'';position:absolute;left:5px;top:24px;bottom:-5px;width:1px;background:var(--bs-border-color)}
.bos-activity-timeline>div:last-child::after{display:none}
.bos-activity-timeline>div>span{position:relative;z-index:1;width:11px;height:11px;margin-top:.15rem;border:2px solid var(--bs-body-bg);border-radius:50%;background:var(--bs-primary);box-shadow:0 0 0 2px rgba(var(--bs-primary-rgb),.14)}
.bos-activity-timeline p{min-width:0;margin:0;color:var(--bs-secondary-color);font-size:.69rem;line-height:1.42;overflow-wrap:anywhere}
.bos-activity-timeline p strong{display:block;margin-bottom:.08rem;color:var(--bs-body-color);font-size:.74rem}
.bos-activity-timeline time{color:var(--bs-secondary-color);font-size:.61rem;white-space:nowrap}

.bos-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.bos-resource-grid a{position:relative;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;gap:0 .55rem;padding:.7rem;border:1px solid var(--bs-border-color);border-radius:14px;color:var(--bs-body-color);text-decoration:none}
.bos-resource-grid a:hover{border-color:rgba(var(--bs-primary-rgb),.28);background:rgba(var(--bs-primary-rgb),.035)}
.bos-resource-grid i{grid-row:1/3;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:rgba(var(--bs-primary-rgb),.1);color:var(--bs-primary)}
.bos-resource-grid strong{font-size:1rem;line-height:1}.bos-resource-grid span{color:var(--bs-secondary-color);font-size:.63rem}
.bos-tool-dock{margin-top:.8rem;padding:.72rem;border-radius:14px;background:rgba(var(--bs-primary-rgb),.045)}
.bos-tool-dock>span{display:block;margin-bottom:.45rem;color:var(--bs-secondary-color);font-size:.63rem;text-transform:uppercase;letter-spacing:.05em}
.bos-tool-dock>div{display:flex;flex-wrap:wrap;gap:.35rem}.bos-tool-dock a{padding:.27rem .48rem;border:1px solid rgba(var(--bs-primary-rgb),.17);border-radius:999px;background:var(--bs-body-bg);font-size:.62rem;text-decoration:none}

.bos-usage-pulse-main{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.bos-usage-pulse-main>div{padding:.72rem;border:1px solid var(--bs-border-color);border-radius:14px;background:rgba(var(--bs-primary-rgb),.025)}
.bos-usage-pulse-main strong,.bos-usage-pulse-main span{display:block}.bos-usage-pulse-main strong{font-size:1.25rem}.bos-usage-pulse-main span{color:var(--bs-secondary-color);font-size:.65rem}
.bos-usage-wave{display:flex;align-items:end;gap:4px;height:50px;margin:.65rem 0;padding:.4rem .1rem;border-bottom:1px solid var(--bs-border-color)}
.bos-usage-wave span{flex:1;border-radius:4px 4px 1px 1px;background:linear-gradient(var(--bs-primary),rgba(var(--bs-primary-rgb),.2))}
.bos-usage-wave span:nth-child(1){height:20%}.bos-usage-wave span:nth-child(2){height:48%}.bos-usage-wave span:nth-child(3){height:35%}.bos-usage-wave span:nth-child(4){height:76%}.bos-usage-wave span:nth-child(5){height:55%}.bos-usage-wave span:nth-child(6){height:90%}.bos-usage-wave span:nth-child(7){height:62%}.bos-usage-wave span:nth-child(8){height:78%}
.bos-usage-account{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.42rem 0;border-bottom:1px dashed var(--bs-border-color);font-size:.69rem}.bos-usage-account span{display:inline-flex;align-items:center;gap:.35rem;color:var(--bs-secondary-color)}.bos-usage-account strong{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bos-command-empty{display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;padding:1rem;color:var(--bs-secondary-color);text-align:center}.bos-command-empty>i{font-size:1.8rem;color:var(--bs-primary)}.bos-command-empty>strong{color:var(--bs-body-color)}.bos-command-empty>span{max-width:300px;font-size:.72rem}.bos-command-empty.compact{min-height:150px}

html.app-dark-mode .bos-command-panel,html.app-dark-mode .bos-command-metrics{background:#181520;border-color:#302a3c;box-shadow:none}
html.app-dark-mode .bos-command-metrics a:hover,html.app-dark-mode .bos-operation-grid a:hover,html.app-dark-mode .bos-decision-stack>a:hover,html.app-dark-mode .bos-resource-grid a:hover{background:rgba(139,92,246,.08)}
html.app-dark-mode .bos-project-radar-row:hover{background:rgba(139,92,246,.08)}

@media(max-width:1199.98px){
    .bos-command-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    .bos-decision-console{grid-column:1/-1}
    .bos-command-lower-grid{grid-template-columns:1fr 1fr}
    .bos-usage-pulse{grid-column:1/-1}
}
@media(max-width:991.98px){
    .bos-command-hero{grid-template-columns:1fr;min-height:0}
    .bos-readiness-orbit{flex-direction:row;justify-content:flex-start}
    .bos-readiness-ring{width:150px;flex:0 0 150px}.bos-readiness-ring strong{font-size:2.15rem}
    .bos-command-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bos-command-metrics a:last-child{grid-column:1/-1}.bos-command-metrics a::after{display:none}
    .bos-command-grid,.bos-command-lower-grid{grid-template-columns:1fr}.bos-decision-console,.bos-usage-pulse{grid-column:auto}
}
@media(max-width:575.98px){
    .bos-command-hero{padding:1.3rem;border-radius:22px}.bos-command-hero h1{font-size:2.35rem}.bos-readiness-orbit{align-items:flex-start}.bos-readiness-ring{width:126px;flex-basis:126px}.bos-readiness-ring strong{font-size:1.75rem}.bos-readiness-note{font-size:.66rem}
    .bos-command-metrics{grid-template-columns:1fr 1fr;padding:.45rem}.bos-command-metrics a{padding:.75rem}.bos-command-metrics strong{font-size:1.12rem}.bos-command-metrics span{font-size:.62rem}
    .bos-command-panel{padding:.95rem;border-radius:18px}.bos-operation-grid{grid-template-columns:1fr}.bos-project-radar-row{grid-template-columns:7px minmax(0,1fr) 16px}.bos-command-status{display:none}.bos-activity-timeline>div:not(.bos-command-empty){grid-template-columns:12px minmax(0,1fr)}.bos-activity-timeline time{grid-column:2}.bos-resource-grid{grid-template-columns:1fr 1fr}
}

/* AI TOOLBOX V-1.2.16 — transaction-backed Usage Pulse. */
.bos-usage-pulse-real{grid-template-columns:repeat(2,minmax(0,1fr))}
.bos-usage-pulse-real strong{font-size:1.03rem;overflow-wrap:anywhere}
.bos-usage-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:.4rem;height:118px;margin:.8rem 0;padding:.65rem .4rem .35rem;border:1px solid var(--bs-border-color);border-radius:15px;background:rgba(var(--bs-primary-rgb),.025)}
.bos-usage-day{display:flex;height:100%;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;gap:.35rem}
.bos-usage-bar{display:flex;width:100%;height:78px;align-items:flex-end;justify-content:center}
.bos-usage-bar i{display:block;width:min(22px,72%);min-height:4px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--bs-primary),rgba(var(--bs-primary-rgb),.35));box-shadow:0 5px 12px rgba(var(--bs-primary-rgb),.16)}
.bos-usage-day small{color:var(--bs-secondary-color);font-size:.58rem;font-weight:700;text-transform:uppercase}
@media(max-width:575.98px){.bos-usage-pulse-real{grid-template-columns:1fr 1fr}.bos-usage-chart{gap:.22rem}.bos-usage-bar i{width:min(16px,78%)}}


/* AI TOOLBOX V-1.2.21 — AI Ready Business Profile and resource provenance. */
.bos-profile-logo{display:block;width:104px;height:104px;object-fit:contain;border:1px solid var(--bs-border-color);border-radius:18px;background:var(--bs-body-bg);padding:.45rem}
.bos-profile-logo-placeholder{display:flex;align-items:center;justify-content:center;border-style:dashed;background:rgba(var(--bs-primary-rgb),.035);color:var(--bs-secondary-color)}
.bos-profile-logo.bos-profile-logo-placeholder{width:104px;height:104px;border:1px dashed var(--bs-border-color);border-radius:18px;font-size:1.65rem}
.bos-profile-logo-sm.bos-profile-logo-placeholder{font-size:1rem}

/* AI TOOLBOX V-2.1.33 — dynamic blue/cyan/yellow UI and dashboard control room. */
.app-sidebar-link small,
.command-mini-stat small { color: var(--app-primary) !important; }
.app-sidebar-link:hover,
.app-sidebar-link.active { color: var(--app-primary-deep); background: rgba(var(--app-primary-rgb), .09); }
.app-sidebar-link:hover i,
.app-sidebar-link.active i { color: currentColor; }
html.app-dark-mode .btn-primary,
html.app-dark-mode .dashboard-tools-search-button,
html.app-dark-mode .app-sidebar-new-chat {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}

.bos-command-center {
    --bos-ink: var(--app-text);
    --bos-muted: var(--app-text-muted);
    gap: .9rem;
}
.bos-command-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, .62fr);
    gap: 1.25rem;
    min-height: 250px;
    padding: 1.55rem 1.75rem 1.35rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 86%, rgba(var(--app-secondary-rgb), .24), transparent 26%),
        radial-gradient(circle at 72% 18%, rgba(255,255,255,.12), transparent 23%),
        linear-gradient(118deg, var(--app-primary-deep) 0%, var(--app-primary) 58%, var(--app-secondary) 145%);
    box-shadow: 0 18px 42px rgba(var(--app-primary-rgb), .22);
}
.bos-command-hero::before {
    opacity: .13;
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, #000, transparent 82%);
}
.bos-command-hero::after {
    width: 185px;
    height: 185px;
    right: -48px;
    bottom: -62px;
    border-width: 34px;
}
.bos-command-hero-copy {
    align-self: center;
    padding-top: 1.15rem;
}
.bos-command-hero-tools {
    position: absolute;
    z-index: 4;
    top: .72rem;
    right: .82rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .42rem;
}
.bos-command-hero-tools > button,
.bos-command-hero-tools > a,
.bos-command-hero-tools > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .34rem;
    min-height: 28px;
    padding: .28rem .58rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font: inherit;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(8px);
}
.bos-command-hero-tools > button { cursor: pointer; }
.bos-command-hero-tools > button:hover,
.bos-command-hero-tools > a:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.bos-command-eyebrow {
    margin-bottom: .58rem;
    font-size: .62rem;
    letter-spacing: .14em;
    color: rgba(255,255,255,.76);
}
.bos-command-eyebrow span { width: 25px; background: var(--app-secondary); }
.bos-command-hero h1 {
    max-width: 760px;
    margin: 0 0 .45rem;
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.bos-command-hero h1 > span { color: var(--app-accent); }
.bos-command-hero p {
    max-width: 720px;
    margin: 0 0 .88rem;
    color: rgba(255,255,255,.78);
    font-size: clamp(.82rem, 1.05vw, .98rem);
    line-height: 1.5;
}
.bos-command-hero-actions { gap: .55rem; }
.bos-command-hero-actions .btn {
    min-height: 36px;
    padding: .48rem .82rem;
    border-radius: 9px;
    font-size: .72rem;
}
.bos-command-ghost { background: rgba(255,255,255,.10) !important; }
.bos-command-signal-row {
    gap: .48rem 1rem;
    margin-top: .82rem;
    font-size: .62rem;
}
.bos-command-signal-row .bi-circle-fill { font-size: .38rem; }
.bos-command-signal-row .is-ready .bi-circle-fill { color: var(--app-success); filter: drop-shadow(0 0 5px rgba(var(--app-success-rgb),.68)); }
.bos-command-signal-row .is-active .bi-circle-fill { color: var(--app-info); filter: drop-shadow(0 0 5px rgba(var(--app-info-rgb),.68)); }
.bos-command-signal-row .is-waiting .bi-circle-fill { color: var(--app-danger); filter: drop-shadow(0 0 5px rgba(var(--app-danger-rgb),.68)); }
.bos-readiness-orbit {
    justify-content: flex-end;
    gap: .62rem;
    padding-top: 1.2rem;
}
.bos-readiness-ring {
    width: 145px;
    background: conic-gradient(var(--app-accent) var(--angle), rgba(255,255,255,.18) 0);
    box-shadow: 0 12px 32px rgba(0,28,91,.28);
}
.bos-readiness-ring::before {
    inset: 9px;
    background: linear-gradient(145deg, var(--app-primary-deep), var(--app-primary));
}
.bos-readiness-ring strong { font-size: 2.25rem; }
.bos-readiness-ring span { margin-top: .25rem; font-size: .57rem; }
.bos-readiness-note {
    max-width: 235px;
    padding: .52rem .62rem;
    border-radius: 10px;
    background: rgba(0,25,80,.19);
    font-size: .61rem;
}
.bos-readiness-note i { color: var(--app-accent); }

.bos-command-metrics,
.bos-command-panel {
    background: var(--app-card-background);
    border-color: var(--app-border);
    box-shadow: 0 10px 28px rgba(13,27,42,.055);
}
.bos-command-panel::before { background: linear-gradient(90deg, var(--app-primary), var(--app-secondary)); }
.bos-panel-index,
.bos-decision-icon,
.bos-resource-grid i { background: rgba(var(--app-primary-rgb), .09); color: var(--app-primary); }
.bos-operation-grid i { background: rgba(var(--app-secondary-rgb), .12); color: var(--app-primary); }
.bos-command-status.is-positive { color: #087333; background: rgba(var(--app-success-rgb),.13); }
.bos-command-status.is-waiting { color: #8A4A00; background: rgba(var(--app-warning-rgb),.15); }
.bos-command-status.is-negative { color: #A51D1D; background: rgba(var(--app-danger-rgb),.12); }
.bos-command-status.is-neutral { color: var(--app-text-secondary, var(--app-text-muted)); background: rgba(var(--app-primary-rgb),.055); }
.bos-usage-bar i { background: linear-gradient(180deg, var(--app-secondary), var(--app-primary)); }

html.app-dark-mode .bos-command-panel,
html.app-dark-mode .bos-command-metrics {
    background: #111827;
    border-color: #263244;
}
html.app-dark-mode .bos-command-metrics a:hover,
html.app-dark-mode .bos-operation-grid a:hover,
html.app-dark-mode .bos-decision-stack > a:hover,
html.app-dark-mode .bos-resource-grid a:hover,
html.app-dark-mode .bos-project-radar-row:hover { background: rgba(var(--app-primary-rgb), .10); }

@media (max-width: 991.98px) {
    .bos-command-hero { grid-template-columns: 1fr; padding-top: 3.2rem; }
    .bos-command-hero-copy { padding-top: 0; }
    .bos-readiness-orbit { flex-direction: row; align-items: center; justify-content: flex-start; padding-top: 0; }
    .bos-readiness-ring { width: 132px; flex: 0 0 132px; }
}
@media (max-width: 575.98px) {
    .bos-command-hero { padding: 4.1rem 1rem 1rem; border-radius: 18px; }
    .bos-command-hero-tools { left: .72rem; right: .72rem; justify-content: flex-start; }
    .bos-command-hero-tools > button,
    .bos-command-hero-tools > a,
    .bos-command-hero-tools > span { font-size: .58rem; }
    .bos-command-hero h1 { font-size: 2rem; }
    .bos-command-hero p { font-size: .78rem; }
    .bos-command-hero-actions .btn { flex: 1 1 auto; }
    .bos-readiness-orbit { align-items: center; }
    .bos-readiness-ring { width: 112px; flex-basis: 112px; }
    .bos-readiness-ring strong { font-size: 1.65rem; }
    .bos-readiness-note { max-width: none; }
}

/* V-2.1.33 shared component palette enforcement. */
body,
body.app-shell-body,
.app-shell,
.app-shell-main,
.app-main,
.app-shell-content { background-color: var(--app-background); color: var(--app-text); }
.app-sidebar,
.app-topbar,
.app-footer,
.card,
.card-soft,
.modal-content,
.dropdown-menu,
.list-group-item,
.bos-card,
.app-surface-box { background-color: var(--app-card-background); color: var(--app-text); }
.text-muted,
.form-text,
small { color: var(--app-text-muted) !important; }
.form-control,
.form-select,
.input-group-text,
.table-responsive { background-color: var(--app-card-background); color: var(--app-text); border-color: var(--app-border); }
.btn-secondary { background: var(--app-secondary) !important; border-color: var(--app-secondary) !important; color: var(--app-text) !important; }
.btn-secondary:hover,.btn-secondary:focus,.btn-secondary:active { background: var(--app-primary) !important; border-color: var(--app-primary) !important; color: #fff !important; }
.btn-success,.text-bg-success,.bg-success { background-color: var(--app-success) !important; border-color: var(--app-success) !important; }
.btn-info,.text-bg-info,.bg-info { background-color: var(--app-info) !important; border-color: var(--app-info) !important; }
.btn-warning,.text-bg-warning,.bg-warning { background-color: var(--app-warning) !important; border-color: var(--app-warning) !important; color: var(--app-text) !important; }
.btn-danger,.text-bg-danger,.bg-danger { background-color: var(--app-danger) !important; border-color: var(--app-danger) !important; }
.text-success { color: var(--app-success) !important; }
.text-info { color: var(--app-info) !important; }
.text-warning { color: var(--app-warning) !important; }
.text-danger { color: var(--app-danger) !important; }


/* AI TOOLBOX V-2.1.61 — clear typography, regular sidebar labels and regular tag text. */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body,
button,
input,
select,
textarea,
.btn,
.dropdown-menu {
    font-kerning: normal;
    font-synthesis: none;
}
h1, h2, h3, h4, h5, h6,
strong, b,
.fw-bold,
.fw-semibold {
    text-shadow: none !important;
    -webkit-text-stroke: 0;
}

/* Left-side navigation text is intentionally regular, including active items. */
.app-sidebar-nav .app-sidebar-link,
.app-sidebar-nav .app-sidebar-link span,
.app-sidebar-nav .app-sidebar-link small,
.app-sidebar-nav .app-sidebar-section-title,
.app-sidebar-nav .app-sidebar-link.active,
.app-sidebar-nav .app-sidebar-link:hover {
    font-weight: 400 !important;
}

/* Every application tag, badge, chip and pill uses regular text. */
.badge,
.badge *,
[class*="-tag"],
[class*="-tag"] *,
[class^="tag-"],
[class^="tag-"] *,
[class*=" tag-"],
[class*=" tag-"] *,
[class*="-badge"],
[class*="-badge"] *,
[class^="badge-"],
[class^="badge-"] *,
[class*=" badge-"],
[class*=" badge-"] *,
[class*="-chip"],
[class*="-chip"] *,
[class^="chip-"],
[class^="chip-"] *,
[class*=" chip-"],
[class*=" chip-"] *,
[class*="-pill"],
[class*="-pill"] *,
[class^="pill-"],
[class^="pill-"] *,
[class*=" pill-"],
[class*=" pill-"] *,
.rounded-pill,
.rounded-pill *,
.pill,
.pill *,
.ticket-attachments a,
.wallet-strip em,
.tool-section-heading-card {
    font-weight: 400 !important;
}

/* AI TOOLBOX V-2.1.62 — every input value, placeholder and dropdown option uses regular text. */
input,
textarea,
select,
option,
.form-control,
.form-select,
.form-control-plaintext,
.input-group-text,
.dropdown-menu input,
.dropdown-menu textarea,
.dropdown-menu select,
.select2-container .select2-selection__rendered,
.choices__inner,
.choices__item,
.bootstrap-select .dropdown-toggle,
.bootstrap-select .dropdown-menu,
[contenteditable="true"],
[role="textbox"],
[role="combobox"] {
    font-weight: 400 !important;
    font-synthesis: none;
}
input::placeholder,
textarea::placeholder {
    font-weight: 400 !important;
    opacity: .72;
}
input::file-selector-button,
input::-webkit-file-upload-button {
    font-weight: 400 !important;
}

/* AI TOOLBOX V-2.1.67 — only headings and header titles may use bold weight. */
body :where(
    p, span, a, button, label, legend, summary, li, dt, dd, td, caption,
    small, em, strong, b, code, pre, blockquote,
    .btn, .nav-link, .dropdown-item, .list-group-item, .page-link,
    .form-label, .form-text, .input-group-text,
    .fw-medium, .fw-semibold, .fw-bold, .fw-bolder
) {
    font-weight: 400 !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

body :where(
    h1, h2, h3, h4, h5, h6,
    .h1, .h2, .h3, .h4, .h5, .h6,
    .modal-title,
    thead th,
    header .app-title,
    .app-topbar-title,
    .bos-page-header h1,
    .bos-page-header h2,
    .bos-card-header h1,
    .bos-card-header h2,
    .bos-card-header h3,
    .bos-card-header h4,
    .bos-card-header h5,
    .bos-card-header h6,
    .modal-header h1,
    .modal-header h2,
    .modal-header h3,
    .modal-header h4,
    .modal-header h5,
    .modal-header h6
) {
    font-weight: 700 !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Controls, tags and action text remain regular even inside a header. */
body :where(
    input, textarea, select, option, [contenteditable="true"], [role="textbox"], [role="combobox"],
    .btn, .badge, [class*="-tag"], [class*="-badge"], [class*="-chip"], [class*="-pill"],
    .dropdown-item, .nav-link, .page-link
),
body :where(input, textarea)::placeholder,
body input::file-selector-button,
body input::-webkit-file-upload-button {
    font-weight: 400 !important;
    font-synthesis: none !important;
}
/* V-2.1.67 heading descendants inherit the approved heading weight. */
body :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.modal-title) :where(span,strong,b,small){font-weight:inherit!important}
body :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.modal-title) :where(.badge,.btn,[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.modal-title) :where(.badge,.btn,[class*="-tag"],[class*="-chip"],[class*="-pill"]) *{font-weight:400!important}
/* V-2.1.67 final typography enforcement pass: every non-heading element is regular. */
body *{font-weight:400!important}
body :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.modal-title,.offcanvas-title,.app-brand-title,.app-topbar-title,.app-sidebar-title,thead th),
body :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.modal-title,.offcanvas-title,.app-brand-title,.app-topbar-title,.app-sidebar-title,thead th) *{font-weight:700!important}
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"],.btn,.badge,[class*="-tag"],[class*="-badge"],[class*="-chip"],[class*="-pill"],.dropdown-item,.nav-link,.page-link),
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"],.btn,.badge,[class*="-tag"],[class*="-badge"],[class*="-chip"],[class*="-pill"],.dropdown-item,.nav-link,.page-link) *{font-weight:400!important}
body input::placeholder,body textarea::placeholder,body input::file-selector-button,body input::-webkit-file-upload-button{font-weight:400!important}
/* V-2.1.67 third-pass Bootstrap utility override. These selectors intentionally
   outrank Bootstrap's !important font-weight utilities outside approved headings. */
body .fw-medium,
body .fw-semibold,
body .fw-bold,
body .fw-bolder { font-weight: 400 !important; }
body h1 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body h2 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body h3 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body h4 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body h5 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body h6 :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body .modal-title :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body .offcanvas-title :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body .app-brand-title :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body .app-topbar-title :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body .app-sidebar-title :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder),
body thead th :where(.fw-medium,.fw-semibold,.fw-bold,.fw-bolder) { font-weight: inherit !important; }
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"]).fw-medium,
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"]).fw-semibold,
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"]).fw-bold,
body :where(input,textarea,select,option,[contenteditable="true"],[role="textbox"],[role="combobox"]).fw-bolder { font-weight: 400 !important; }


/* V-2.1.67 input and control audit: no bold controls anywhere in the application. */
body :where(
    input, textarea, select, option, optgroup,
    [contenteditable="true"], [role="textbox"], [role="combobox"],
    .form-control, .form-select, .form-check-label, .input-group-text,
    .btn, .dropdown-item, .nav-link, .page-link, .badge,
    [class*="-tag"], [class*="-chip"], [class*="-pill"]
),
body :where(
    input, textarea, select, option, optgroup,
    [contenteditable="true"], [role="textbox"], [role="combobox"],
    .form-control, .form-select, .form-check-label, .input-group-text,
    .btn, .dropdown-item, .nav-link, .page-link, .badge,
    [class*="-tag"], [class*="-chip"], [class*="-pill"]
) *{
    font-weight:400!important;
    font-synthesis:none!important;
}

/* AI TOOLBOX V-2.1.67 — personal Connections management. */
.connection-security-grid{display:grid;gap:.72rem}
.connection-security-grid>div{display:grid;grid-template-columns:minmax(145px,.42fr) minmax(0,1fr);align-items:start;gap:.75rem;padding:.72rem .8rem;border:1px solid var(--app-border);border-radius:.72rem;background:color-mix(in srgb,var(--app-primary) 3%,var(--app-card-background))}
.connection-security-grid span,.connection-security-grid strong,.connection-security-grid code{font-weight:400}
.connection-security-grid code{overflow-wrap:anywhere;color:var(--app-text-primary)}
.connection-summary-list{display:grid;gap:.55rem}
.connection-summary-list>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.62rem .72rem;border:1px solid var(--app-border);border-radius:.65rem;background:var(--app-card-background)}
.connection-summary-list span,.connection-summary-list strong{font-weight:400}
.connection-name{display:flex;align-items:center;gap:.68rem;min-width:220px}
.connection-name>div{min-width:0}
.connection-name>div>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connection-name small{display:block;color:var(--app-text-muted);font-weight:400}
.connection-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--app-primary) 10%,transparent);color:var(--app-primary);font-size:1rem}
.connection-table td,.connection-table th{vertical-align:middle}
.connection-auth-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.connection-auth-card{position:relative;display:block;margin:0;cursor:pointer}
.connection-auth-card>input{position:absolute;opacity:0;pointer-events:none}
.connection-auth-card>span{display:grid;grid-template-columns:34px minmax(0,1fr);gap:.12rem .65rem;align-items:center;min-height:86px;padding:.82rem;border:1px solid var(--app-border);border-radius:.8rem;background:var(--app-card-background);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.connection-auth-card>span>i{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:color-mix(in srgb,var(--app-primary) 10%,transparent);color:var(--app-primary)}
.connection-auth-card strong,.connection-auth-card small{font-weight:400}
.connection-auth-card small{color:var(--app-text-muted);line-height:1.35}
.connection-auth-card>input:checked+span{border-color:var(--app-primary);background:color-mix(in srgb,var(--app-primary) 5%,var(--app-card-background));box-shadow:0 0 0 2px color-mix(in srgb,var(--app-primary) 12%,transparent)}
.connection-auth-card>input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--app-primary) 45%,transparent);outline-offset:2px}
.connection-type-fields[hidden],.connection-auth-card[hidden]{display:none!important}
.connection-capabilities .badge{max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
html.app-dark-mode .connection-security-grid>div,html.app-dark-mode .connection-summary-list>div,html.app-dark-mode .connection-auth-card>span{background:#111c2d}
@media(max-width:767.98px){.connection-auth-options{grid-template-columns:1fr}.connection-security-grid>div{grid-template-columns:1fr;gap:.25rem}.connection-table{min-width:880px}}

/* AI TOOLBOX V-2.1.67 — every page title, semantic heading and header label is bold. */
body :where(
    h1, h2, h3, h4, h5, h6,
    .h1, .h2, .h3, .h4, .h5, .h6,
    .page-title, .section-title, .card-title, .modal-title, .offcanvas-title,
    .app-title, .app-brand-title, .app-topbar-title, .app-sidebar-title,
    .app-sidebar-section-title, .bos-workspace-project-title,
    .element-card-title, .element-card-group-title, .element-form-section-title,
    .package-tools-popup-card-title, .credit-prompt-title,
    [class*="page-title"], [class*="section-title"], [class*="header-title"]
),
body :where(
    header, .app-header, .app-topbar, .page-header, .bos-page-header,
    .card-header, .bos-card-header, .modal-header, .offcanvas-header,
    .accordion-header, .dropdown-header, thead
),
body :where(
    header, .app-header, .app-topbar, .page-header, .bos-page-header,
    .card-header, .bos-card-header, .modal-header, .offcanvas-header,
    .accordion-header, .dropdown-header, thead
) :where(*) {
    font-weight: 700 !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Controls and entered values stay regular, including when they are placed in a header. */
body :where(
    input, textarea, select, option, optgroup,
    button, .btn, .badge, .dropdown-item, .nav-link, .page-link,
    [contenteditable="true"], [role="textbox"], [role="combobox"],
    .form-control, .form-select, .form-check-label, .input-group-text,
    [class*="-tag"], [class*="-chip"], [class*="-pill"]
),
body :where(
    input, textarea, select, option, optgroup,
    button, .btn, .badge, .dropdown-item, .nav-link, .page-link,
    [contenteditable="true"], [role="textbox"], [role="combobox"],
    .form-control, .form-select, .form-check-label, .input-group-text,
    [class*="-tag"], [class*="-chip"], [class*="-pill"]
) * {
    font-weight: 400 !important;
    font-synthesis: none !important;
}

/* AI TOOLBOX V-2.1.68 — canonical title, heading and header typography.
   This final cascade layer fixes custom application headings that were still
   overridden by the earlier global regular-weight protection. */
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"]),
body [class][class*="-title"],
body [class][class*="-heading"],
body [class][class*="-header"],
body [class][class*="-head"],
body :is(.title,.heading,.header,.head,header,thead,th),
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"]) *,
body [class][class*="-title"] *,
body [class][class*="-heading"] *,
body [class][class*="-header"] *,
body [class][class*="-head"] *,
body :is(.title,.heading,.header,.head,header,thead,th) * {
    font-weight:700!important;
    text-shadow:none!important;
    -webkit-text-stroke:0!important;
}

/* Form controls, action controls and resource markers remain regular even
   when they are placed inside a title/heading/header container. */
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"],header,thead,th) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-title"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-heading"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-header"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-head"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body :is(.title,.heading,.header,.head) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"],header,thead,th) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-title"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-heading"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-header"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-head"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body :is(.title,.heading,.header,.head) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) * {
    font-weight:400!important;
    font-synthesis:none!important;
}

/* AI TOOLBOX V-2.1.87 — every Page Title, Heading and Header uses Arial Bold. */
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"]),
body [class][class*="-title"],
body [class][class*="-heading"],
body [class][class*="-header"],
body [class][class*="-head"],
body :is(.title,.heading,.header,.head,header,thead,th),
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"]) *,
body [class][class*="-title"] *,
body [class][class*="-heading"] *,
body [class][class*="-header"] *,
body [class][class*="-head"] *,
body :is(.title,.heading,.header,.head,header,thead,th) * {
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Controls and resource markers inside a heading/header retain regular application typography. */
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"],header,thead,th) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-title"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-heading"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-header"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body [class][class*="-head"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body :is(.title,.heading,.header,.head) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]),
body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,[role="heading"],header,thead,th) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-title"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-heading"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-header"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body [class][class*="-head"] :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) *,
body :is(.title,.heading,.header,.head) :is(input,textarea,select,option,optgroup,button,.btn,.badge,.dropdown-item,.nav-link,.page-link,.form-control,.form-select,.form-check-label,.input-group-text,[contenteditable="true"],[role="textbox"],[role="combobox"],[class*="-tag"],[class*="-chip"],[class*="-pill"]) * {
    font-family: "AI Toolbox Purno Pran", "Calibri Light", Calibri, "Segoe UI Light", "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
}
/* AI TOOLBOX V-2.1.87 - Connection actions stay anchored to the clicked More button. */
.connection-actions-cell{white-space:nowrap}
.connection-actions-menu{min-width:13.25rem}
.connection-actions-menu form{margin:0}
.connection-actions-menu[hidden]{display:none!important}
.connection-actions-menu-portal{
    position:fixed!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    margin:0!important;
    display:block!important;
    z-index:1095!important;
    max-width:calc(100vw - 16px);
    border:1px solid var(--border-color,#dfe7f3);
    border-radius:.75rem;
    background:#fff;
    box-shadow:0 18px 45px rgba(23,32,51,.18);
}


/* AI TOOLBOX V-2.1.92 — keep the bottom User Menu fully visible beside a minimized desktop sidebar. */
@media (min-width: 992px) {
    body.sidebar-minimized .app-sidebar-user-dropdown .user-menu-panel.show {
        position: fixed !important;
        left: 84px !important;
        right: auto !important;
        top: auto !important;
        bottom: 10px !important;
        transform: none !important;
        margin: 0 !important;
        width: min(340px, calc(100vw - 100px));
        min-width: 0;
        max-height: calc(100vh - 20px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1095 !important;
    }
}

/* AI TOOLBOX V-2.1.95 — Model Scope Available tags, selector tooltip, and Connection authentication scopes. */
.model-scope-tags,
.connection-scope-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
}

.model-scope-tag,
.connection-scope-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .2rem .45rem;
    border: 1px solid rgba(126, 87, 255, .22);
    border-radius: 999px;
    background: rgba(126, 87, 255, .08);
    color: var(--app-primary, #7e57ff);
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.model-scope-tag-more {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.tooltip.model-scope-tooltip {
    z-index: 1120 !important;
}

.tooltip.model-scope-tooltip .tooltip-inner {
    width: max-content;
    min-width: 14rem;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: .7rem .75rem;
    text-align: left;
}

.model-scope-tooltip-title {
    margin-bottom: .2rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.model-scope-tooltip-label {
    margin-bottom: .4rem;
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
}

.model-scope-tooltip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.model-scope-tooltip-tag,
.model-scope-tooltip-empty {
    display: inline-flex;
    padding: .18rem .42rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .68rem;
    line-height: 1.25;
}

.model-scope-tooltip-empty {
    color: rgba(255, 255, 255, .78);
}

/* V-2.1.95 Chat Suggestions library */
.chat-suggestion-main-cell {
    min-width: 320px;
    max-width: 680px;
}
.chat-suggestion-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    line-height: 1.55;
}
.chat-suggestion-full-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.75;
}
.chat-suggestion-favorite-button {
    width: 36px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767.98px) {
    .chat-suggestion-main-cell {
        min-width: 260px;
    }
}


/* AI TOOLBOX 2.1.135 — full-width Magic Box grid and Elements-style Chat Suggestions. */
.magic-box-page {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.magic-box-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.chat-suggestion-card-collection {
    min-width: 0;
}
.chat-suggestion-card.is-favorite {
    border-color: color-mix(in srgb, #f5b301 52%, var(--bs-border-color));
    background: color-mix(in srgb, #f5b301 4%, var(--app-card-background));
}
.chat-suggestion-card-favorite-form {
    flex: 0 0 auto;
    margin: 0;
}
.chat-suggestion-card-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--app-card-background);
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.chat-suggestion-card-favorite:hover,
.chat-suggestion-card-favorite:focus-visible,
.chat-suggestion-card-favorite.is-favorite {
    border-color: color-mix(in srgb, #f5b301 58%, var(--bs-border-color));
    background: color-mix(in srgb, #f5b301 9%, var(--app-card-background));
    color: #c78b00;
    outline: 0;
}
.chat-suggestion-card-favorite:hover,
.chat-suggestion-card-favorite:focus-visible {
    transform: translateY(-1px);
}
.chat-suggestion-card-summary {
    min-height: 5.1em;
    -webkit-line-clamp: 4;
}
.chat-suggestion-card .element-card-meta .badge {
    white-space: normal;
    overflow-wrap: anywhere;
}
.chat-suggestion-card-actions .btn {
    min-width: 0;
}
@media (max-width: 1199.98px) {
    .magic-box-tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .magic-box-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .chat-suggestions-page-header {
        align-items: flex-start;
    }
    .chat-suggestion-card-summary {
        min-height: 0;
    }
}
@media (max-width: 575.98px) {
    .magic-box-tool-grid {
        grid-template-columns: 1fr;
    }
    .chat-suggestions-page-header > div:last-child,
    .chat-suggestions-page-header .btn {
        width: 100%;
    }
}

/* AI TOOLBOX 2.1.135 — Element Manager visual alignment and renamed Chat Suggestions pages. */
.chat-suggestion-manager-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.chat-suggestion-manager-card-collection,
.models-card-collection {
    min-width: 0;
}
.magic-box-element-card.is-coming-soon {
    border-style: dashed;
    background: color-mix(in srgb, var(--app-primary) 3%, var(--app-card-background));
}
.magic-box-element-card.is-under-development {
    border-color: color-mix(in srgb, var(--bs-warning) 42%, var(--bs-border-color));
}
.magic-box-meta-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: .28rem;
    object-fit: contain;
    vertical-align: -.14em;
}
.magic-box-card-actions .btn:last-child:not(.flex-grow-1) {
    flex: 0 0 36px;
    width: 36px;
    padding-left: 0;
    padding-right: 0;
}
.model-display-card {
    min-height: 0;
}
.model-display-meta {
    margin-bottom: .62rem;
}
.model-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .42rem;
    margin-bottom: .65rem;
}
.model-price-grid > div {
    min-width: 0;
    padding: .48rem .52rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--app-primary) 2.5%, var(--app-card-background));
}
.model-price-grid span,
.model-price-grid strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}
.model-price-grid span {
    margin-bottom: .14rem;
    color: var(--bs-secondary-color);
    font-size: .62rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.model-price-grid strong {
    color: var(--app-text-primary);
    font-size: .72rem;
    line-height: 1.25;
}
.model-scope-card-tags {
    margin-top: auto;
    padding-top: .62rem;
    border-top: 1px solid var(--bs-border-color);
}
.model-scope-card-tags .model-scope-badges,
.model-scope-card-tags > div:last-child {
    max-height: 92px;
    overflow: auto;
}
.connections-page-header,
.transactions-page-header,
.magic-box-page-header,
.models-page-header,
.chat-suggestions-manage-page-header {
    margin-bottom: 1.5rem;
}
@media (max-width: 991.98px) {
    .chat-suggestion-manager-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .chat-suggestion-manager-stat-grid,
    .model-price-grid {
        grid-template-columns: 1fr;
    }
    .connections-page-header,
    .transactions-page-header,
    .magic-box-page-header,
    .models-page-header,
    .chat-suggestions-manage-page-header {
        align-items: flex-start;
    }
    .transactions-page-header > div:last-child,
    .transactions-page-header .btn,
    .chat-suggestions-manage-page-header > div:last-child,
    .chat-suggestions-manage-page-header .btn {
        width: 100%;
    }
}


/* AI TOOLBOX 2.1.135 — Admin Manager page alignment and renamed Suggestions Manager route. */
.bkash-transactions-page-header,.support-manager-page-header,.user-manager-page-header,.magic-box-manager-page-header,.model-manager-page-header,.package-manager-page-header,.chat-suggestions-manage-page-header{margin-bottom:1.5rem}
.model-manager-card-collection,.package-manager-card-collection{min-width:0}
.package-manager-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin:.5rem 0 .62rem}.package-manager-price-grid>div{min-width:0;padding:.5rem .55rem;border:1px solid var(--bs-border-color);border-radius:10px;background:color-mix(in srgb,var(--app-primary) 2.5%,var(--app-card-background))}.package-manager-price-grid span,.package-manager-price-grid strong{display:block;overflow-wrap:anywhere}.package-manager-price-grid span{margin-bottom:.15rem;color:var(--bs-secondary-color);font-size:.62rem;text-transform:uppercase;letter-spacing:.045em}.package-manager-price-grid strong{font-size:.78rem;color:var(--app-text-primary)}
.package-manager-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-top:auto}.package-manager-card-actions .btn{width:100%}
@media(max-width:767.98px){.bkash-transactions-page-header,.support-manager-page-header,.user-manager-page-header,.magic-box-manager-page-header,.model-manager-page-header,.package-manager-page-header,.chat-suggestions-manage-page-header{align-items:flex-start}.bkash-transactions-page-header>div:last-child,.support-manager-page-header>div:last-child,.model-manager-page-header>div:last-child,.package-manager-page-header>div:last-child{width:100%}.bkash-transactions-page-header .btn,.support-manager-page-header .btn,.model-manager-page-header .btn,.package-manager-page-header .btn{width:100%}.package-manager-card-actions{grid-template-columns:1fr}.magic-manager-card-actions{grid-template-columns:1fr!important}}

/* AI TOOLBOX 2.1.135 — unified Page Heading typography, symbols and account-page headers. */
.app-main h1,
.app-main .bos-page-header h1,
.app-main .element-page-header h1 {
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
    color: var(--app-text-primary) !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}
.app-main h1 > .bi,
.app-main .bos-page-header h1 > .bi,
.app-main .element-page-header h1 > .bi {
    color: var(--app-text-primary) !important;
    font-weight: 700 !important;
}
.change-password-page-header,
.profile-page-header,
.support-tickets-page-header,
.support-ticket-page-header,
.purchase-credit-page-header,
.update-subscription-page-header {
    margin-bottom: 1.5rem;
}
@media (max-width: 767.98px) {
    .change-password-page-header,
    .profile-page-header,
    .support-tickets-page-header,
    .support-ticket-page-header,
    .purchase-credit-page-header,
    .update-subscription-page-header {
        align-items: flex-start;
    }
    .support-tickets-page-header > div:last-child,
    .support-ticket-page-header > div:last-child,
    .purchase-credit-page-header > div:last-child,
    .support-tickets-page-header .btn,
    .support-ticket-page-header .btn {
        width: 100%;
    }
}



/* AI TOOLBOX 2.1.135 — full-width Change Password card. */
.change-password-main-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* AI TOOLBOX 2.1.135 — General User sidebar recent-transactions card fills the available sidebar height without an internal scrollbar. */
.app-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
}
.app-sidebar-transactions-card {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 0;
    margin: -1px 0 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--app-card-background, #fff);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 41, 59, .05);
}
.app-sidebar-transactions-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 8px 7px;
    border-bottom: 1px solid var(--bs-border-color);
}
.app-sidebar-transactions-header h2 {
    min-width: 0;
    margin: 0;
    color: var(--app-text-primary);
    font-family: Arial, sans-serif;
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.2;
}
.app-sidebar-transactions-table {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    font-size: .58rem;
}
.app-sidebar-transactions-row {
    display: grid;
    grid-template-columns: minmax(52px, .88fr) minmax(70px, 1.42fr) minmax(54px, .9fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 7px;
    border-bottom: 1px solid var(--bs-border-color);
}
.app-sidebar-transactions-row:last-child {
    border-bottom: 0;
}
.app-sidebar-transactions-columns {
    padding-top: 5px;
    padding-bottom: 5px;
    color: var(--app-text-primary);
    background: color-mix(in srgb, var(--app-primary) 3%, var(--app-card-background, #fff));
    font-weight: 700;
}
.app-sidebar-transactions-columns span:last-child {
    text-align: right;
}
.app-sidebar-transactions-scroll {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}
.app-sidebar-transaction-date,
.app-sidebar-transaction-detail,
.app-sidebar-transaction-amount {
    min-width: 0;
}
.app-sidebar-transaction-date {
    display: flex;
    flex-direction: column;
    color: var(--app-text-primary);
    line-height: 1.2;
}
.app-sidebar-transaction-date strong {
    font-size: .58rem;
    font-weight: 500;
}
.app-sidebar-transaction-date small {
    margin-top: 1px;
    color: var(--bs-secondary-color);
    font-size: .54rem;
}
.app-sidebar-transaction-detail {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--app-text-primary);
    line-height: 1.25;
}
.app-sidebar-transaction-detail > span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.app-sidebar-transaction-info {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: .58rem;
    line-height: 1;
}
.app-sidebar-transaction-amount {
    text-align: right;
    font-size: .57rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.app-sidebar-transactions-empty {
    padding: 14px 8px;
    color: var(--bs-secondary-color);
    text-align: center;
    font-size: .62rem;
}
body.sidebar-minimized .app-sidebar-transactions-card {
    display: none;
}
html.app-dark-mode .app-sidebar-transactions-card {
    background: #111827;
    border-color: #263244;
    box-shadow: none;
}
html.app-dark-mode .app-sidebar-transactions-columns {
    background: #172033;
}
@media (max-width: 991.98px) {
    body.sidebar-minimized .app-sidebar-transactions-card {
        display: flex;
    }
}

/* AI TOOLBOX 2.1.135 — compact tooltip-based User Storage and Profile Readiness indicators. */
.bos-command-hero {
    --bos-readiness-edge-gap: 1.75rem;
    grid-template-columns: minmax(0, 1.55fr) minmax(278px, max-content);
}
.bos-readiness-orbit {
    display: grid;
    grid-template-columns: repeat(2, 132px);
    align-self: center;
    justify-self: end;
    align-items: center;
    justify-content: end;
    column-gap: var(--bos-readiness-edge-gap);
    row-gap: 0;
    width: max-content;
    min-width: 0;
    padding: 0;
}
.bos-readiness-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}
.bos-readiness-item .bos-readiness-ring {
    width: 132px;
    flex: 0 0 132px;
}
.bos-readiness-item .bos-readiness-ring strong {
    font-size: 2rem;
}
.bos-readiness-tooltip-target {
    cursor: help;
    outline: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.bos-readiness-tooltip-target:hover,
.bos-readiness-tooltip-target:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(20,8,47,.34), 0 0 0 3px rgba(255,255,255,.13);
}
.bos-storage-readiness .bos-readiness-ring {
    background: conic-gradient(var(--app-info) var(--angle), rgba(255,255,255,.18) 0);
}
.bos-storage-readiness .bos-storage-remaining-value {
    max-width: 102px;
    padding: 0 .18rem;
    font-size: 1.42rem;
    line-height: 1.05;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    text-align: center;
}
.bos-storage-readiness .bos-readiness-ring span {
    max-width: 96px;
    font-size: .49rem;
    line-height: 1.25;
    text-align: center;
}
.bos-readiness-tooltip .tooltip-inner {
    max-width: 260px;
    text-align: left;
}
@media (max-width: 1199.98px) {
    .bos-command-hero {
        grid-template-columns: minmax(0, 1.45fr) minmax(246px, max-content);
    }
    .bos-readiness-orbit {
        grid-template-columns: repeat(2, 116px);
        column-gap: var(--bos-readiness-edge-gap);
        row-gap: 0;
    }
    .bos-readiness-item .bos-readiness-ring {
        width: 116px;
        flex-basis: 116px;
    }
    .bos-readiness-item .bos-readiness-ring strong {
        font-size: 1.72rem;
    }
    .bos-storage-readiness .bos-storage-remaining-value {
        max-width: 88px;
        font-size: 1.23rem;
    }
}
@media (max-width: 991.98px) {
    .bos-command-hero {
        grid-template-columns: 1fr;
    }
    .bos-readiness-orbit {
        justify-self: end;
        align-self: center;
        padding-top: 0;
    }
}
@media (max-width: 575.98px) {
    .bos-command-hero {
        --bos-readiness-edge-gap: 1rem;
    }
    .bos-readiness-orbit {
        grid-template-columns: repeat(2, 100px);
        justify-self: end;
        column-gap: var(--bos-readiness-edge-gap);
        row-gap: 0;
        width: max-content;
    }
    .bos-readiness-item .bos-readiness-ring {
        width: 100px;
        flex-basis: 100px;
    }
    .bos-readiness-item .bos-readiness-ring strong {
        font-size: 1.45rem;
    }
    .bos-readiness-item .bos-readiness-ring span {
        font-size: .47rem;
    }
    .bos-storage-readiness .bos-storage-remaining-value {
        max-width: 76px;
        font-size: 1.05rem;
    }
    .bos-storage-readiness .bos-readiness-ring span {
        max-width: 72px;
        font-size: .43rem;
    }
}

/* AI BOSS 2.1.135 — Purchase Credit checkout progress and visible bKash action state. */
.credit-prompt-status {
    min-height: 1.25rem;
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.875rem;
}

.credit-prompt-submit {
    min-width: 190px;
    justify-content: center;
    white-space: nowrap;
}

.credit-prompt-modal .btn-bkash:disabled,
.credit-prompt-modal .btn-bkash.disabled {
    background: #DF146E !important;
    border-color: #DF146E !important;
    color: #ffffff !important;
    opacity: 1;
}

.credit-prompt-modal .btn-bkash:disabled .spinner-border,
.credit-prompt-modal .btn-bkash.disabled .spinner-border {
    color: #ffffff;
}

/* Login-session acknowledgement notice */
.bos-login-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(19, 16, 36, .68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.bos-login-notice-dialog {
    width: min(860px, 100%);
    max-height: min(88vh, 860px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(130, 92, 245, .22);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 10, 38, .34);
    outline: none;
}
.bos-login-notice-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #e8e5f2;
    background: linear-gradient(135deg, rgba(130, 92, 245, .12), rgba(255, 255, 255, .98));
}
.bos-login-notice-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #825cf5;
    color: #fff;
    font-size: 1.25rem;
}
.bos-login-notice-eyebrow {
    margin-bottom: .2rem;
    color: #7652dc;
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.bos-login-notice-header h2 {
    margin: 0;
    color: #211b38;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    line-height: 1.35;
}
.bos-login-notice-body {
    overflow-y: auto;
    padding: 1.3rem 1.4rem;
    color: #39334c;
    font-size: .96rem;
    line-height: 1.78;
    overscroll-behavior: contain;
}
.bos-login-notice-body p {
    margin: 0 0 1rem;
}
.bos-login-notice-body h3 {
    margin: 1.25rem 0 .65rem;
    color: #29223f;
    font-size: 1.05rem;
    line-height: 1.4;
}
.bos-login-notice-body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.bos-login-notice-body li + li {
    margin-top: .35rem;
}
.bos-login-notice-consent {
    margin: 1.15rem 0 0 !important;
    padding: .95rem 1rem;
    border: 1px solid rgba(130, 92, 245, .24);
    border-radius: 12px;
    background: rgba(130, 92, 245, .08);
    color: #2e254a;
}
.bos-login-notice-footer {
    padding: .95rem 1.35rem;
    border-top: 1px solid #e8e5f2;
    background: #faf9fd;
}
.bos-login-notice-footer form {
    display: flex;
    justify-content: flex-end;
}
.bos-login-notice-footer .btn {
    min-width: 220px;
    min-height: 44px;
}
.app-dark-mode .bos-login-notice-overlay {
    background: rgba(3, 4, 12, .78);
}
.app-dark-mode .bos-login-notice-dialog {
    border-color: rgba(167, 139, 250, .28);
    background: #171322;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}
.app-dark-mode .bos-login-notice-header {
    border-color: #302943;
    background: linear-gradient(135deg, rgba(130, 92, 245, .22), rgba(23, 19, 34, .98));
}
.app-dark-mode .bos-login-notice-header h2,
.app-dark-mode .bos-login-notice-body h3 {
    color: #f3efff;
}
.app-dark-mode .bos-login-notice-body {
    color: #d8d2e8;
}
.app-dark-mode .bos-login-notice-consent {
    border-color: rgba(167, 139, 250, .28);
    background: rgba(130, 92, 245, .14);
    color: #eee9ff;
}
.app-dark-mode .bos-login-notice-footer {
    border-color: #302943;
    background: #120f1c;
}
@media (max-width: 575.98px) {
    .bos-login-notice-overlay {
        align-items: stretch;
        padding: .65rem;
    }
    .bos-login-notice-dialog {
        max-height: calc(100vh - 1.3rem);
        border-radius: 15px;
    }
    .bos-login-notice-header {
        padding: 1rem;
    }
    .bos-login-notice-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .bos-login-notice-body {
        padding: 1rem;
        font-size: .91rem;
        line-height: 1.7;
    }
    .bos-login-notice-footer {
        padding: .8rem 1rem;
    }
    .bos-login-notice-footer form,
    .bos-login-notice-footer .btn {
        width: 100%;
    }
}


/* 2.1.135 integrated searchable AI Model combobox */
.bos-model-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}
.bos-model-combobox-input {
    padding-right: 2.55rem;
    cursor: text;
    background-image: none !important;
}
.bos-model-combobox-arrow {
    position: absolute;
    top: 50%;
    right: .85rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color, #6c757d);
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
}
.bos-model-combobox.is-open .bos-model-combobox-arrow {
    transform: translateY(-50%) rotate(180deg);
}
.bos-model-combobox-menu {
    position: absolute;
    top: calc(100% + .3rem);
    left: 0;
    right: 0;
    z-index: 1095;
    max-height: 280px;
    overflow-y: auto;
    padding: .35rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .65rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .8rem 2rem rgba(24, 39, 75, .16);
}
.bos-model-combobox-option {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .15rem;
    padding: .62rem .7rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: var(--bs-body-color, #212529);
    text-align: left;
}
.bos-model-combobox-option:hover,
.bos-model-combobox-option.is-active {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .09);
}
.bos-model-combobox-option.is-selected {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .14);
}
.bos-model-combobox-option:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.bos-model-combobox-option-label {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bos-model-combobox-option-detail {
    overflow: hidden;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .72rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bos-model-combobox-empty {
    padding: .9rem .75rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .84rem;
    text-align: center;
}
.bos-model-native-select {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.bos-setup-control > .bos-model-combobox {
    flex: 1 1 auto;
}
.model-ai-sync-preview-wrap {
    max-height: 62vh;
}
.model-ai-sync-preview-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg, #fff);
}
.app-dark-mode .bos-model-combobox-menu {
    box-shadow: 0 .9rem 2.2rem rgba(0, 0, 0, .35);
}
@media (max-width: 575.98px) {
    .bos-model-combobox-menu {
        max-height: 230px;
    }
    .model-ai-sync-preview-wrap {
        max-height: 56vh;
    }
}

/* 2.1.135 Admin user account-transaction popup */
.user-transactions-table-wrap {
    max-height: 62vh;
    overflow: auto;
}
.user-transactions-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg, #fff);
}
.user-transaction-detail {
    min-width: 280px;
    white-space: normal;
}
.user-transactions-table-wrap .amount-positive {
    color: var(--bs-success, #198754);
}
.user-transactions-table-wrap .amount-negative {
    color: var(--bs-danger, #dc3545);
}

/* AIBOSS 2.1.157 - Admin "Login to User" impersonation indicator. */
.app-topbar.app-topbar-impersonating,
html.app-dark-mode .app-topbar.app-topbar-impersonating {
    background: #b91c1c !important;
    border-bottom-color: #991b1b !important;
    box-shadow: 0 4px 16px rgba(127, 29, 29, 0.28) !important;
}
.app-topbar.app-topbar-impersonating .app-topbar-menu,
.app-topbar.app-topbar-impersonating .app-topbar-ai-button,
.app-topbar.app-topbar-impersonating .app-topbar-back-admin,
.app-topbar.app-topbar-impersonating .app-topbar-balance {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #ffffff !important;
}
.app-topbar.app-topbar-impersonating .app-topbar-menu:hover,
.app-topbar.app-topbar-impersonating .app-topbar-ai-button:hover,
.app-topbar.app-topbar-impersonating .app-topbar-back-admin:hover,
.app-topbar.app-topbar-impersonating .app-topbar-balance:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.62) !important;
    color: #ffffff !important;
}
.app-topbar.app-topbar-impersonating .app-topbar-balance em {
    border-left-color: rgba(255, 255, 255, 0.38) !important;
    color: #ffffff !important;
}
.app-topbar.app-topbar-impersonating .app-topbar-ai-button i,
.app-topbar.app-topbar-impersonating .app-topbar-back-admin i,
.app-topbar.app-topbar-impersonating .app-topbar-balance i,
.app-topbar.app-topbar-impersonating .app-topbar-menu i {
    color: #ffffff !important;
}


/* AIBOSS 2.1.157 - Admin return control and Maintenance Tools. */
.app-topbar-back-admin-form {
    margin: 0;
}
.app-topbar-back-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 38px;
    padding: 0 .78rem;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.app-topbar-back-admin:hover,
.app-topbar-back-admin:focus {
    background: rgba(255, 255, 255, .24);
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
    transform: translateY(-1px);
}
.app-topbar.app-topbar-impersonating .app-topbar-back-admin,
html.app-dark-mode .app-topbar.app-topbar-impersonating .app-topbar-back-admin {
    color: #fff !important;
}
.maintenance-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.maintenance-card-icon,
.maintenance-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: rgba(var(--app-primary-rgb), .1);
    color: var(--app-primary);
    font-size: 1.15rem;
}
.maintenance-notice-icon {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    border-radius: 18px;
    font-size: 1.55rem;
}
.maintenance-switch-row,
.maintenance-info-box {
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 12px;
    background: rgba(var(--app-primary-rgb), .035);
    padding: 14px;
}
.maintenance-mode-switch {
    width: 3rem !important;
    height: 1.5rem;
    cursor: pointer;
}
.maintenance-info-box {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--bs-secondary-color, #667085);
    font-size: .86rem;
    line-height: 1.5;
}
.maintenance-info-box i {
    color: var(--app-primary);
    margin-top: 2px;
}
.maintenance-cleanup-list {
    display: grid;
    gap: 10px;
}
.maintenance-cleanup-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    background: var(--bs-body-bg, #fff);
}
.maintenance-cleanup-option:hover {
    border-color: rgba(var(--app-primary-rgb), .35);
    background: rgba(var(--app-primary-rgb), .025);
}
.maintenance-cleanup-option.is-unavailable {
    opacity: .58;
    cursor: not-allowed;
}
.maintenance-cleanup-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.maintenance-cleanup-copy small {
    color: var(--bs-secondary-color, #667085);
    line-height: 1.4;
}
.maintenance-cleanup-count {
    white-space: nowrap;
}
.maintenance-notice-card .lead {
    line-height: 1.7;
}
html.app-dark-mode .maintenance-switch-row,
html.app-dark-mode .maintenance-info-box,
html.app-dark-mode .maintenance-cleanup-option {
    background: rgba(255, 255, 255, .025);
}
@media (max-width: 767.98px) {
    .app-topbar-back-admin span {
        display: none;
    }
    .app-topbar-back-admin {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
    .maintenance-cleanup-option {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .maintenance-cleanup-count {
        grid-column: 2;
        justify-self: start;
    }
}


/* AIBOSS 2.1.157 - Maintenance Tools expanded layout and database size. */
.maintenance-tools-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}
.maintenance-tools-shell .form-card-unified {
    width: 100%;
    max-width: none;
    margin: 0;
}
.maintenance-tools-shell > .row {
    align-items: stretch;
}
.maintenance-tools-shell .card-body {
    min-width: 0;
}
.maintenance-database-size {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 12px;
    background: rgba(var(--app-primary-rgb), .055);
}
.maintenance-database-size-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(var(--app-primary-rgb), .11);
    color: var(--app-primary);
    font-size: 1rem;
}
.maintenance-database-size small,
.maintenance-database-size-value {
    display: block;
}
.maintenance-database-size small {
    color: var(--bs-secondary-color, #667085);
    margin-bottom: 2px;
}
.maintenance-database-size-value {
    font-size: 1.1rem;
    color: var(--app-text);
}
@media (max-width: 1199.98px) {
    .maintenance-tools-shell .row > [class*="col-"] {
        width: 100%;
    }
}

/* AIBOSS 2.1.157 - User-specific Magic Box Favorite Tools. */
.magic-box-card-head-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: .42rem;
    min-width: 0;
}
.magic-box-favorite-form {
    flex: 0 0 auto;
    margin: 0;
}
.magic-box-favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 9px;
    background: var(--app-card-background, #fff);
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.magic-box-favorite-toggle:hover,
.magic-box-favorite-toggle:focus-visible,
.magic-box-favorite-toggle.is-favorite {
    border-color: color-mix(in srgb, #f5b301 58%, var(--bs-border-color));
    background: color-mix(in srgb, #f5b301 9%, var(--app-card-background, #fff));
    color: #c78b00;
    outline: 0;
}
.magic-box-favorite-toggle:hover,
.magic-box-favorite-toggle:focus-visible {
    transform: translateY(-1px);
}
.magic-box-favorite-toggle:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}
.magic-box-favorites-section {
    width: 100%;
}
html.app-dark-mode .magic-box-favorite-toggle {
    background: #111827;
}
@media (max-width: 575.98px) {
    .magic-box-card-head-actions {
        gap: .32rem;
    }
}

/* AIBOSS 2.1.157 - Runtime Magic Box Favorite toggle and header action order. */
.magic-box-card-head-actions > .element-status-badge {
    order: 1;
}
.magic-box-card-head-actions > .magic-box-favorite-form {
    order: 2;
}
