
        :root{--bitcom-page-pad:clamp(10px,1.15vw,18px);--bitcom-gap:clamp(10px,1vw,14px);--bitcom-sidebar-width:244px;}
        html{width:100%;-webkit-text-size-adjust:100%;}
        html,body{max-width:100%;overflow-x:hidden;}
        *,*::before,*::after{box-sizing:border-box;}
        body,.app,.sidebar,.card,.panel,.modal-card,.ops-panel,.legacy-admin-card,.server-control-panel,.server-info-panel,.profile-offer-editor,.permissions-card,.offer-card{min-width:0;}
        img,svg,canvas,video{max-width:100%;height:auto;}
        canvas{display:block;}
        input,select,textarea,button,.btn{max-width:100%;}
        input,select,textarea{min-width:0;}
        button,.btn,a{touch-action:manipulation;}
        .card,.ops-panel,.legacy-admin-card,.server-control-panel,.server-info-panel,.profile-offer-editor,.permissions-card,.offer-card{border-radius:12px;}
        .table-wrap,.dt-layout-table,.dataTables_wrapper,.dt-container,.smart-table-wrap,.detail-scroll,.legacy-table-scroll,.table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
        .table-wrap table,.dt-layout-table table,.dataTables_wrapper table,.dt-container table,.legacy-admin-table,.smart-table,.detail-table{width:100%;}
        .dt-layout-row,.smart-controls,.legacy-actions,.legacy-top-buttons,.filter-row,.table-toolbar,.section-actions,.card-actions{min-width:0;max-width:100%;}
        .section-title-row,.card-head,.page-head,.ops-section-head,.legacy-admin-bar,.server-save-strip{min-width:0;}
        .section-title-row h1,.section-title-row h2,.card-head h1,.card-head h2,.page-head h1,.ops-section-head h2{overflow-wrap:anywhere;}
        .ops-chart-wrap,.chart-wrap,.dashboard-chart,.report-chart{position:relative;max-width:100%;min-height:240px;}
        .ops-chart-wrap canvas,.chart-wrap canvas,.dashboard-chart canvas,.report-chart canvas{width:100%!important;max-width:100%!important;}
        .modal,.modal:target,#cardBatchModal.open{max-width:100vw;}

        @media(min-width:1600px){
            .app{padding-inline:clamp(18px,1.4vw,28px)!important;}
            .ops-chart-wrap,.chart-wrap,.dashboard-chart,.report-chart{min-height:300px;}
        }

        @media(max-width:1280px){
            .app{padding:var(--bitcom-page-pad)!important;}
            .app>.topbar{flex-wrap:wrap!important;}
            .module-tabs-shell{justify-content:flex-start!important;}
            .module-tabs{justify-content:flex-start!important;gap:12px!important;}
            .legacy-company-grid,.legacy-form-grid,.permission-grid,.permission-tab-panel .permission-panel,.admin-alert-rule-grid,.subscriber-state,.subscriber-switch-grid,.server-form-grid,.cron-settings-status,.card-form-section,.card-form-section.compact{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important;}
            .ops-kpis,.stats-grid,.dashboard-grid,.server-time-status,.server-meter-grid,.offers-card-grid,.offer-options-grid,.offer-metrics,.offer-detail-grid,.subscriber-control-kpis{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))!important;}
            .ops-chart-grid,.ops-grid,.server-control-layout,.server-control-hero,.offer-live-console,.profile-offer-editor .offer-editor-hero,.subscriber-control-hero,.card-batch-edit-body{grid-template-columns:1fr!important;}
            .profile-offer-editor .offer-options-grid,.profile-offer-editor .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important;}
        }

        @media(max-width:1024px){
            .sidebar,.sidebar.collapsed{position:fixed!important;top:0!important;right:0!important;left:auto!important;width:min(86vw,320px)!important;min-width:0!important;max-width:320px!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;transform:translateX(110%)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;z-index:250000!important;transition:transform .2s ease,opacity .2s ease,visibility .2s ease!important;}
            .sidebar.open,body.sidebar-open .sidebar{transform:translateX(0)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
            .sidebar>.logo{flex:0 0 auto!important;}
            .sidebar .module-sidebar-nav{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;scrollbar-gutter:stable;padding-bottom:max(24px,env(safe-area-inset-bottom))!important;}
            .sidebar-close{display:grid!important;}
            .sidebar-backdrop{display:none!important;position:fixed!important;inset:0!important;background:var(--graphite-surface);backdrop-filter:none;z-index:249990!important;}
            body.sidebar-open .sidebar-backdrop{display:block!important;}
            body.sidebar-open{overflow:hidden!important;}
            body.sidebar-hidden .app,.app{margin-right:0!important;margin-left:0!important;width:100%!important;max-width:100%!important;}
            .app>.topbar{position:sticky!important;top:0!important;z-index:900!important;}
            .topbar>.top-actions{min-width:0!important;overflow-x:auto;}
            .topbar-meta{min-width:0!important;}
            .module-tabs-shell{order:3!important;flex:1 1 100%!important;max-width:100%!important;overflow-x:auto!important;}
            .module-tabs{justify-content:flex-start!important;overflow-x:auto!important;scroll-snap-type:x proximity;}
            .module-tab{scroll-snap-align:start;}
            .legacy-search-row,.section-title-row,.card-head,.page-head,.ops-section-head,.server-save-strip{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important;}
            .legacy-search-row input,.dt-search input,.smart-search,input[type=search]{width:100%!important;min-width:0!important;}
            .ops-chart-wrap,.chart-wrap,.dashboard-chart,.report-chart{min-height:260px;}
        }

        @media(max-width:760px){
            .app{padding:10px!important;}
            .card,.ops-panel,.legacy-admin-card,.server-control-panel,.server-info-panel,.permissions-card{overflow:hidden;}
            .section-title-row h1,.section-title-row h2,.page-head h1,.card-head h1,.card-head h2{font-size:clamp(18px,5.4vw,24px)!important;line-height:1.25!important;}
            .auto-table-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0 0 8px!important;}
            .auto-table-stats article{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"label value" "hint value";align-items:center;min-height:58px!important;padding:9px 10px!important;box-shadow:none;}
            .auto-table-stats article:before{height:0!important;}
            .auto-table-stats span{grid-area:label;font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
            .auto-table-stats strong{grid-area:value;margin:0!important;font-size:18px!important;line-height:1!important;text-align:left;direction:ltr;}
            .auto-table-stats em{grid-area:hint;margin:3px 0 0!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
            .ops-reports-page .ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
            .ops-reports-page .ops-kpis article{min-height:84px!important;padding:10px!important;display:grid!important;align-content:space-between!important;}
            .ops-reports-page .ops-kpis article:before{height:0!important;}
            .ops-reports-page .ops-kpis span{font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
            .ops-reports-page .ops-kpis strong{font-size:20px!important;line-height:1!important;margin-top:5px!important;text-align:left;direction:ltr;}
            .ops-reports-page .ops-kpis em{font-size:10px!important;line-height:1.2!important;margin-top:4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
            .legacy-company-grid,.legacy-form-grid,.permission-grid,.permission-name-grid,.server-form-grid,.server-meter-grid,.server-services,.server-time-status,.cron-settings-status,.admin-alert-rule-grid,.admin-alert-thresholds,.subscriber-state,.subscriber-switch-grid,.subscriber-reason-grid,.card-form-section,.card-form-section.compact,.card-batch-edit-grid,.offer-live-preview,.offer-smart-panel ul,.offer-detail-grid,.offer-metrics{grid-template-columns:1fr!important;}
            .span-2,.span-3,.legacy-company-grid .span-2,.legacy-company-grid .span-3,.server-form-grid .span-2,.profile-offer-editor .span-2{grid-column:1/-1!important;}
            .filter-row,.table-toolbar,.smart-controls,.dt-layout-row,.legacy-actions,.legacy-top-buttons,.section-actions,.card-actions,.server-save-strip,.card-sales-report-head{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important;}
            .filter-row .btn,.table-toolbar .btn,.smart-controls .btn,.legacy-actions .btn,.legacy-top-buttons .btn,.section-actions .btn,.card-actions .btn,.server-save-strip .btn{width:100%!important;justify-content:center!important;}
            .btn,button{min-height:38px;white-space:normal;}
            input,select,textarea{font-size:16px!important;}
            .table-wrap,.dt-layout-table,.detail-scroll{border-radius:12px;}
            .dt-paging,.pagination,.pager{justify-content:center!important;flex-wrap:wrap!important;gap:6px!important;}
            .dt-length,.dt-search{width:100%!important;}
            .dt-length label,.dt-search label{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;width:100%!important;}
            .modal,.modal:target,#cardBatchModal.open{padding:8px!important;align-items:flex-start!important;justify-content:center!important;overflow:auto!important;}
            .modal-card,.modal-card.wide-modal,.card-batch-form,.card-batch-edit-form,.card-pdf-builder{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;border-radius:12px;}
            .modal-card h2{font-size:20px!important;line-height:1.25!important;}
            .ops-chart-wrap,.chart-wrap,.dashboard-chart,.report-chart{height:min(66vw,330px)!important;min-height:220px!important;}
            .server-fact{grid-template-columns:1fr!important;}
            .server-live-clock{font-size:clamp(21px,6vw,26px)!important;}
            .profile-offer-editor .bitcom-form-toolbar.bottom,.permission-actions{position:static!important;}
            .radius-dash .rd2-source article{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"label" "value"!important;align-items:center!important;gap:5px!important;min-height:66px!important;padding:8px 9px!important;}
            .radius-dash .rd2-source article b{grid-area:label;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.25!important;}
            .radius-dash .rd2-source article>span{grid-area:value;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-align:right;direction:rtl;line-height:1.25!important;}
            .radius-dash .rd2-panel,.radius-dash .rd2-kpi,.radius-dash .rd2-chart,.radius-dash .rd2-card{min-width:0!important;max-width:100%!important;}
        }

        @media(max-width:480px){
            .app{padding:8px!important;}
            .ops-kpis,.stats-grid,.dashboard-grid,.offers-card-grid{grid-template-columns:1fr!important;}
            .ops-reports-page .ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
            .auto-table-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
            .module-switcher-mobile{min-width:108px!important;max-width:114px!important;}
            .module-switcher-mobile>summary{min-width:108px!important;padding-inline:8px!important;}
            .module-switcher-mobile>summary span{max-width:74px!important;}
            .topbar .admin-chip small{display:none!important;}
            .topbar .admin-chip{grid-template-rows:1fr!important;}
            .topbar .admin-chip b{align-self:center!important;}
            .server-hero-main,.server-hero-clock,.server-control-page{padding:12px!important;}
            .ops-chart-wrap,.chart-wrap,.dashboard-chart,.report-chart{min-height:210px!important;}
        }

        @media(hover:none) and (pointer:coarse){
            .btn,button,.top-action-icon,.nav-parent,.module-switcher-mobile>summary{min-height:40px;}
            input[type=checkbox],input[type=radio]{min-width:18px;min-height:18px;}
        }

        @media(max-width:340px){
            .auto-table-stats{grid-template-columns:1fr!important;}
        }
        .rex-connection-card{padding:8px 10px!important;display:flex!important;align-items:center;gap:8px;min-height:48px;}.rex-connection-card.connected{box-shadow:var(--ui-card-shadow);}.rex-connection-card.disabled{box-shadow:var(--ui-card-shadow);}.rex-connection-head{flex:1 1 210px;min-width:0;gap:8px;}.rex-connection-head i{width:28px!important;height:28px!important;flex:0 0 28px;border-radius:12px;}.rex-connection-head>div{min-width:0;}.rex-connection-head strong{font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.rex-connection-head small{font-size:11px!important;line-height:1.25!important;margin-top:1px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.rex-connection-items{display:flex!important;grid-template-columns:none!important;gap:6px;align-items:center;flex:1 1 260px;min-width:0;overflow:hidden;}.rex-connection-items span{display:inline-flex!important;align-items:center;gap:5px;min-height:28px;padding:4px 7px!important;max-width:165px;white-space:nowrap;}.rex-connection-items b{font-size:9px!important;line-height:1;flex:0 0 auto;}.rex-connection-items strong{font-size:11px!important;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.rex-connection-actions{flex:0 0 auto;justify-content:flex-start;}.rex-toggle-button{min-height:32px!important;padding:0 10px!important;font-size:12px!important;border-radius:12px;}.rex-toggle-button i{font-size:12px;}@media(max-width:760px){.rex-connection-card{display:grid!important;grid-template-columns:1fr;gap:7px;min-height:0;}.rex-connection-head{align-items:center!important;}.rex-connection-items{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;}.rex-connection-actions,.rex-toggle-button{width:100%;}.rex-toggle-button{justify-content:center;}}
        .service-change-review{gap:10px!important;padding:10px!important;border-color:var(--graphite-border);background:var(--graphite-surface);}.service-change-review-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid var(--graphite-border);border-radius:12px;background:var(--graphite-surface);padding:9px 10px;}.service-change-review-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--graphite-surface);color:var(--graphite-text);border:1px solid var(--graphite-border);}.service-change-review-head strong{display:block;color:var(--graphite-text);font-size:14px;font-weight:950;}.service-change-review-head p{margin:3px 0 0;color:var(--graphite-text);font-size:11px;font-weight:800;line-height:1.5;}.service-change-review-metrics{display:flex;gap:7px;align-items:center;}.service-change-review-metrics article{min-width:74px;padding:6px 8px;text-align:center;}.service-change-review-metrics span{display:block;color:var(--graphite-text);font-size:10px;font-weight:900;}.service-change-review-metrics b{display:block;color:var(--graphite-text);font-size:18px;line-height:1.1;}.service-change-review-list{display:grid;gap:7px;max-height:360px;overflow:auto;padding-inline-end:3px;scrollbar-width:thin;scrollbar-color:#38bdf8 #071d31;}.service-change-item{display:grid!important;grid-template-columns:minmax(280px,1fr) minmax(160px,.45fr) auto!important;gap:9px!important;align-items:center!important;padding:8px!important;border-color:var(--graphite-border);background:var(--graphite-surface);}.service-change-flow{display:grid;grid-template-columns:minmax(120px,1fr) 26px minmax(120px,1fr);gap:8px;align-items:center;min-width:0;}.service-change-flow>i{display:grid;place-items:center;width:26px;height:26px;border-radius:12px;background:var(--graphite-surface);color:var(--graphite-text);font-size:11px;}.service-change-name{display:grid;gap:3px;min-width:0;border:1px solid var(--graphite-border);border-radius:12px;padding:6px 8px;background:var(--graphite-surface);}.service-change-name em{color:var(--graphite-muted);font-size:10px;font-style:normal;font-weight:900;}.service-change-name b{color:var(--graphite-text);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.service-change-name.new{border-color:var(--graphite-border);background:var(--graphite-surface);}.service-change-name.new em{color:var(--graphite-muted);}.service-change-meta{display:grid;gap:5px;color:var(--graphite-text);font-size:11px;font-weight:900;min-width:0;}.service-change-meta span{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.service-change-meta i{color:var(--graphite-text);}.service-change-conflicts{display:flex;gap:5px;flex-wrap:wrap;margin-top:2px;}.service-change-conflicts b{display:inline-flex;align-items:center;gap:5px;max-width:180px;border:1px solid var(--graphite-border);border-radius:12px;background:var(--graphite-surface);color:var(--graphite-text);padding:4px 7px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.service-change-conflicts b span{display:inline;overflow:hidden;text-overflow:ellipsis;}.service-change-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;}.service-change-actions .btn{min-height:34px!important;padding:0 10px!important;font-size:12px!important;}.service-duplicate-rename-form{display:grid!important;grid-template-columns:minmax(140px,190px) auto;gap:6px;align-items:center;}.service-duplicate-rename-form input{height:34px;padding:0 9px;font-weight:900;min-width:0;}@media(max-width:1279px){.service-change-item{grid-template-columns:1fr!important;}.service-change-actions{justify-content:flex-start;}.service-change-review-head{grid-template-columns:42px minmax(0,1fr);}}@media(max-width:760px){.service-change-review-head{grid-template-columns:1fr;}.service-change-review-icon{display:none;}.service-change-review-metrics{width:100%;}.service-change-review-metrics article{flex:1;}.service-change-flow{grid-template-columns:1fr 24px 1fr;}.service-change-actions .btn{width:100%;justify-content:center;}.service-change-actions form{flex:1;}.service-duplicate-rename-form{grid-template-columns:1fr!important;width:100%;}}
    