/* Sigma 1.0.5: existing desktop layouts retain their styles. */
@media (max-width:920px) {
 html {min-width:0;max-width:100%;-webkit-text-size-adjust:100%}
 body.sigma-reference,body.sigma-mobile-standalone,body.sigma-embedded-form {min-width:0;max-width:100%;margin-inline:0}
 body.sigma-reference .app-shell {min-width:0;width:100%}
 body.sigma-reference .app-content {box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0;padding:14px max(12px,env(safe-area-inset-right)) calc(var(--sm-bottom-height,76px) + 22px) max(12px,env(safe-area-inset-left))}
 body.sigma-reference .app-content>* {min-width:0;max-width:100%}
 body.sigma-reference.sigma-auth .login-shell {box-sizing:border-box;width:100%;min-width:0;padding:20px 16px}
 body.sigma-reference.sigma-auth .login-card {width:100%;max-width:420px;margin-inline:auto}
 body.sigma-reference.sigma-auth .login-logo-wrap {max-width:100%}
 body.sigma-reference.sigma-auth .login-logo {max-width:100%;object-fit:contain}
 body.sigma-reference .topbar {left:0;right:0;width:100%;max-width:100%;padding-inline:max(10px,env(safe-area-inset-left));gap:6px}
 body.sigma-reference .topbar-left {flex:1 1 0;min-width:0;gap:7px}
 body.sigma-reference .topbar h1 {min-width:0;max-width:100%;font-size:14px;white-space:normal;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.sigma-reference .topbar-actions {gap:1px;flex:0 0 auto}
 body.sigma-reference .top-action {width:32px;height:40px;min-height:40px;flex:none}
 body.sigma-reference .mobile-menu-btn {width:38px;height:44px;min-width:38px;flex:none}
 body.sigma-reference .sidebar {width:min(300px,88vw);max-width:88vw;padding-top:env(safe-area-inset-top)}
 body.sigma-reference .sidebar-scroll {padding-bottom:calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 body.sigma-reference .sidebar .menu-link {min-height:44px}
 body.sigma-reference .sidebar .menu-favorite-btn {min-width:30px;min-height:38px;right:1px}
 body.sigma-reference .mobile-bottom-nav {width:100%;max-width:100%;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 body.sigma-reference .mobile-bottom-item {min-width:0;min-height:46px;text-align:center;overflow-wrap:anywhere}
 body.sigma-reference.sm-sidebar-open {overflow:hidden;overscroll-behavior:none}
 /* Forms and grouped settings keep equal outer margins and readable controls. */
 body.sigma-reference .app-content :is(section,article,form,fieldset,[class$="-card"],[class$="-page"],[class$="-grid"],[class$="-control"],[class$="-content"]) {min-width:0;box-sizing:border-box}
 body.sigma-reference .app-content :is([class$="-page"],.settings-card,.account-card,.tool-card,.finance-card,.analytics-card,.monthly-page,.automatic-tests-page,.referral-page,.spg-page,.premium-shell) {width:100%;max-width:100%;margin-left:auto;margin-right:auto}
 body.sigma-reference .app-content :is(input,select,textarea):not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]) {font-size:16px;min-width:0;max-width:100%;box-sizing:border-box}
 body.sigma-reference .app-content input[type=file] {width:100%;font-size:13px;overflow:hidden}
 body.sigma-reference .app-content :is(.settings-row,.profile-row) {grid-template-columns:minmax(0,1fr);gap:8px;padding:14px 0}
 body.sigma-reference .app-content :is(.settings-control,.profile-control,.field,.client-field,.settings-row>div,.profile-row>div) {min-width:0;max-width:100%}
 body.sigma-reference .sigma-settings-section-body {padding:10px 16px}
 body.sigma-reference .sigma-settings-section>h2 {padding:16px;font-size:16px}
 body.sigma-reference .app-content :is(.settings-row,.profile-row)>label {padding-top:0}
 body.sigma-reference .app-content :is(.settings-actions,.profile-save,.form-actions-row,.tool-actions,.filter-actions,.advanced-actions) {justify-content:center;flex-wrap:wrap;gap:10px}
 body.sigma-reference .app-content :is(.settings-actions,.profile-save,.form-actions-row)>:is(button,a) {min-height:44px;flex:1 1 130px;text-align:center;justify-content:center}
 body.sigma-reference .app-content :is(.advanced-grid,.mass-form-grid,.live-filters,.server-two-grid,.analytics-charts,.finance-grid-3,.finance-hero-grid,.stats-top-grid,.credit-purchase-grid,.sessions-grid,.finance-filter-grid,.monthly-filter-bar,.plans-filters,.rf-grid,.client-filter-fields,.public-two-cols,.responsive-fields.two-col,.reload-mode-row,.role-checks,.dns-grid) {grid-template-columns:minmax(0,1fr);width:100%;min-width:0}
 body.sigma-reference .app-content :is(.reseller-filter,.clients-filters) {grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}
 body.sigma-reference .app-content :is(.rf-actions,.client-filter-actions) {width:100%;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.sigma-reference .app-content :is(.rf-actions,.client-filter-actions)>* {min-width:0;width:100%;min-height:44px;white-space:normal}
 body.sigma-reference .app-content :is(.rf-range,.finance-date-range) {display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:100%}
 body.sigma-reference .app-content .rf-range .range-separator {display:none}
 body.sigma-reference .app-content :is(.servers-toolbar,.plans-toolbar,.analytics-toolbar,.finance-header,.tool-toolbar,.notices-admin-toolbar,.permissions-toolbar,.credit-admin-toolbar,.plan-price-toolbar,.migration-head,.auto-page-head,.new-content-top) {width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
 body.sigma-reference .app-content :is(.servers-toolbar-left,.servers-toolbar-right,.analytics-filters,.finance-exports,.support-filters,.pr-inline) {min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:8px}
 body.sigma-reference .app-content :is(.servers-search,.plans-search,.searchbox,.search-box,.analytics-filter,.tool-search) {min-width:0;max-width:100%;flex:1 1 100%}
 /* Scroll stays inside the table, rather than widening the entire page. */
 .sigma-mobile-scroll {width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;position:relative}
 body.sigma-reference .app-content :is(.servers-table-wrap,.plans-table-wrap,.finance-table-wrap,.credit-table-wrap,.table-wrap,.plan-price-table-wrap,.notices-table-wrap,.trial-table-wrap,.migration-table-wrap,.live-table-wrap,.pr-table-wrap) {width:100%;max-width:100%;min-width:0;overflow-x:auto}
 body.sigma-reference .app-content table {max-width:none}
 body.sigma-reference .app-content :is(.pager,.pr-pager,.clients-pagination,.plan-price-pagination,.reseller-list-head) {justify-content:center;flex-wrap:wrap;max-width:100%;gap:6px}
 body.sigma-reference .app-content :is(.pager,.clients-pagination,.pr-pager) :is(a,button) {min-width:36px;min-height:40px}
 body.sigma-reference #sigmaClients .clients-page-controls,body.sigma-reference .clients-page-controls,body.sigma-reference .reseller-list-head {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:12px}
 body.sigma-reference #sigmaClients .clients-result-count {justify-self:center;text-align:center}
 body.sigma-reference #sigmaClients .clients-table,body.sigma-reference #sigmaClients:not(.sigma-cards) .clients-table,body.sigma-reference .clients-page .clients-table {display:block;width:100%;min-width:0;table-layout:auto}
 body.sigma-reference .clients-page .clients-table thead {display:none}
 body.sigma-reference .clients-page .clients-table tbody {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%}
 body.sigma-reference .clients-page .clients-table tr {display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;margin:0;padding:16px;background:var(--sr-card);border:1px solid var(--sr-line);border-radius:8px}
 body.sigma-reference #sigmaClients .clients-table :is(th,td),body.sigma-reference .clients-page .clients-table td {display:block;width:100%;max-width:100%;min-width:0;padding:9px 0;border:0;overflow-wrap:anywhere;text-align:left}
 body.sigma-reference .clients-page .clients-table td[data-label]::before {display:block;content:attr(data-label);font-size:10px;line-height:1.5;color:var(--sr-muted);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
 body.sigma-reference .clients-page .clients-table td:last-child {text-align:center;border-top:1px solid var(--sr-line);padding-top:13px}
 body.sigma-reference #sigmaClients .client-quick-actions,body.sigma-reference .clients-page .client-quick-actions {justify-content:center;flex-wrap:wrap;gap:7px}
 body.sigma-reference #sigmaClients .client-icon-btn,body.sigma-reference .clients-page .client-icon-btn {width:40px;min-width:40px;min-height:40px;flex:0 0 40px}
 body.sigma-reference #sigmaClients .client-actions-wrap {justify-content:center}
 body.sigma-reference .resellers-page .rt-head {display:none}
 body.sigma-reference .resellers-page .reseller-table {min-width:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 body.sigma-reference .resellers-page .rt-row,body.sigma-reference .resellers-page.sigma-cards .rt-row {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;width:100%;padding:16px;margin:0;border:1px solid var(--sr-line);border-radius:8px}
 body.sigma-reference .resellers-page .rt-row>div {min-width:0;max-width:100%}
 body.sigma-reference .resellers-page :is(.rt-actions,.row-actions,.r-actions,.reseller-action-buttons) {width:100%;min-width:0;max-width:100%;justify-content:center;flex-wrap:wrap;gap:7px}
 body.sigma-reference .resellers-page :is(.rt-status,.status-badge,.reseller-status) {width:max-content;max-width:100%;word-break:normal;overflow-wrap:normal;white-space:normal}
 body.sigma-reference .resellers-page .rt-user :is(.level-badge,.twofa-badge) {max-width:100%;width:max-content}
 /* Monthly, statistics, support and integrations. */
 body.sigma-reference .monthly-row {grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
 body.sigma-reference :is(.ut-head,.mpt-head,.finance-row.head) {display:none}
 body.sigma-reference :is(.ut-row,.mpt-row,.finance-row.credit,.finance-row.client,.finance-row.monthly) {grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;padding:16px;border-bottom:1px solid var(--sr-line)}
 body.sigma-reference .app-content :is(.server-metrics,.analytics-summary,.session-details,.tag-grid,.radio-cards) {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.sigma-reference .app-content :is(.detail-head,.detail-row) {grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
 body.sigma-reference .support-page {grid-template-columns:minmax(0,1fr);padding:0;min-height:0;width:100%;max-width:100%}
 body.sigma-reference :is(.support-list,.support-thread,.support-sidebar,.support-main,.support-thread-list,.support-messages) {min-width:0;max-width:100%}
 body.sigma-reference .support-reply {width:100%;min-width:0}
 body.sigma-reference .app-content .auto-url-row {grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
 body.sigma-reference .auto-url-row>* {width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body.sigma-reference .referral-url-row {display:flex;flex-wrap:wrap;gap:8px}
 body.sigma-reference .referral-url-row input {min-width:0;flex:1 1 100%}
 body.sigma-reference .app-content .spg-grid {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference #sigmaPremium .pr-module-columns,body.sigma-reference #sigmaPremium .pr-form-grid,body.sigma-reference #sigmaPremium[data-view=channels] {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference #sigmaPremium .pr-module-head {flex-direction:column;align-items:stretch;padding:16px}
 body.sigma-reference #sigmaPremium .pr-module-switch {width:100%;grid-template-columns:minmax(0,1fr) auto;min-width:0}
 body.sigma-reference #sigmaPremium .pr-module-switch select {max-width:100%;min-width:0}
 body.sigma-reference :is(#sigmaPremium,.sigma-topgestor,.sigma-botbot,.topgestor-page,.botbot-page) {min-width:0;max-width:100%;width:100%;margin-inline:auto;padding-inline:0}
 body.sigma-reference :is(.tg-grid,.tg-two,.tg-summary,.tg-form-grid,.bb-grid,.bb-summary,.bb-form-grid) {grid-template-columns:minmax(0,1fr);min-width:0}
 body.sigma-reference .tg-heading,body.sigma-reference .tg-section-heading {flex-wrap:wrap;min-width:0;gap:12px}
 body.sigma-reference .tg-actions {justify-content:center;flex-wrap:wrap;gap:8px}
 body.sigma-reference .tg-card {min-width:0;max-width:100%;padding:18px 14px}
 body.sigma-reference :is(.tg-tabs,.bb-tabs) {max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 body.sigma-reference .app-content :is(canvas,iframe,video) {max-width:100%}
 body.sigma-reference #sigmaModernDashboard .sigma-kpi-board {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.sigma-reference #sigmaModernDashboard :is(.sigma-main-layout,.sigma-two-cols) {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference #sigmaModernDashboard :is(.sigma-main-right,.sigma-main-left,.sigma-panel,.sigma-chart-box) {min-width:0;max-width:100%}
 body.sigma-reference :is(.sigma-segment,.sigma-modern-filters) {display:flex;flex-wrap:wrap;justify-content:center;max-width:100%}
 /* Editors, embedded client forms and dialogs stay within the visible viewport. */
 body.sigma-reference #sigmaClientFormPage,body.sigma-embedded-form #sigmaClientFormPage {width:100%;max-width:100%;margin-inline:auto;padding:0 0 18px}
 body.sigma-reference #sigmaClientFormPage #clientForm,body.sigma-reference #sigmaClientFormPage .client-create-details,body.sigma-reference #sigmaClientFormPage .client-personal-box,body.sigma-embedded-form #sigmaClientFormPage #clientForm,body.sigma-embedded-form #sigmaClientFormPage .client-create-details,body.sigma-embedded-form #sigmaClientFormPage .client-personal-box {grid-template-columns:minmax(0,1fr);gap:0}
 body.sigma-reference #sigmaClientFormPage .client-form-card,body.sigma-embedded-form #sigmaClientFormPage .client-form-card {padding:18px 14px;max-width:100%;margin:0}
 body.sigma-reference :is(.client-modal-dialog,.template-dialog,.server-modal-dialog,.plan-modal-dialog,.reseller-dialog,.monthly-dialog,.tool-dialog,.trial-dialog,.plan-price-dialog,.client-modal-card,.credit-modal-dialog) {width:100%;max-width:min(100%,720px);max-height:calc(var(--sigma-visible-height,100dvh) - 24px);min-width:0;margin:auto;overflow-y:auto;overscroll-behavior:contain}
 body.sigma-reference :is(.client-modal,.template-modal,.server-modal,.plan-modal,.reseller-modal,.monthly-modal,.tool-modal,.trial-modal,.plan-price-modal) {padding:12px}
 body.sigma-reference :is(.server-modal-dialog,.plan-modal-dialog,.reseller-dialog,.monthly-dialog,.tool-dialog) :is(.two-fields,.plan-two-cols,.connector-grid,.reseller-form-grid) {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference #templateModal .template-dialog {width:100%;max-width:100%;max-height:calc(var(--sigma-visible-height,100dvh) - 24px)}
 body.sigma-reference :is(.settings-toast,.account-toast,.template-toast,.automatic-toast,.credit-toast,.notice-toast,.reseller-toast,.client-toast) {left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));width:auto;min-width:0;max-width:calc(100% - 24px);white-space:normal;overflow-wrap:anywhere}
 body.sigma-reference .sm-fixed-menu {position:fixed!important;z-index:4200!important;max-width:calc(100vw - 24px)!important;max-height:calc(var(--sigma-visible-height,100dvh) - 24px)!important;overflow-y:auto!important;margin:0!important}
 body.sigma-reference .app-content pre {max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
 body.sigma-reference .app-content :is(.logo-preview,.dns-record,.domain-card,.plan-table) {min-width:0;max-width:100%}
 /* Administrative and public screens do not use the panel's shared sidebar. */
 body.sigma-mobile-standalone {box-sizing:border-box;overflow-wrap:anywhere;height:auto;min-height:100svh;overflow-y:auto}
 body.sigma-mobile-standalone :is(main,.wrap,.owner-editor,.public-referral-shell,.gateway-page) {box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px}
 body.sigma-mobile-standalone :is(.app-shell,.premium-shell,.workspace,.edit-grid,.editor-summary,.public-two-cols,.two-fields,.two-cols) {min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
 body.sigma-mobile-standalone :is(.premium-sidebar,.sidebar6) {position:static;width:100%;max-width:100%;height:auto}
 body.sigma-mobile-standalone aside {position:static;inset:auto;box-sizing:border-box;width:100%;max-width:100%;height:auto;padding:16px}
 body.sigma-mobile-standalone aside nav {display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
 body.sigma-mobile-standalone .top-actions {flex-wrap:wrap!important;min-width:0;max-width:100%;gap:8px}
 body.sigma-mobile-standalone .top-actions>* {min-width:0;max-width:100%;white-space:normal}
 body.sigma-mobile-standalone :is(input,select,textarea) {box-sizing:border-box;min-width:0;max-width:100%;font-size:16px}
 body.sigma-mobile-standalone :is(.card,.container,.login-card,.public-referral-card,.public-state,.unlock) {box-sizing:border-box;min-width:0;max-width:100%;margin-left:auto;margin-right:auto}
 body.sigma-mobile-standalone :is(.stats,.kpis,.form-grid) {grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 body.sigma-mobile-standalone nav {max-width:100%;flex-wrap:wrap}
 body.sigma-mobile-standalone :is(pre,.terminal-screen,.editor-host) {min-width:0;max-width:100%;overflow:auto}
 body.sigma-mobile-standalone .terminal-input {min-width:0;display:flex;flex-wrap:wrap}
 body.sigma-mobile-standalone .terminal-input input {flex:1 1 170px;min-width:0}
 body.sigma-embedded-form {padding:12px!important}
}
@media(max-width:480px) {
 body.sigma-reference .app-content :is(.rf-actions,.client-filter-actions,.server-metrics,.analytics-summary,.session-details,.tag-grid,.radio-cards) {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference .app-content :is(.credit-order-row,.finance-date-range) {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference .app-content :is(.ranking-head,.ranking-row) {grid-template-columns:minmax(0,1fr) 42px 42px 42px;gap:5px;font-size:11px}
 body.sigma-reference .app-content :is(.ranking-head.two,.ranking-row.two) {grid-template-columns:minmax(0,1fr) 58px}
 body.sigma-reference #sigmaPlaylistTemplates .playlist-template-row {grid-template-columns:minmax(0,1fr)}
 body.sigma-reference #sigmaModernDashboard .sigma-kpi {padding:12px;min-width:0}
 body.sigma-reference #sigmaModernDashboard .sigma-kpi-value {font-size:23px}
 body.sigma-reference .client-phone {flex-wrap:wrap}
 body.sigma-reference #sigmaClientFormPage .client-phone select {flex-basis:100%;max-width:100%}
}
/* New access notices are shared by login and suspension, on all screen sizes. */
.sigma-access-dialog {box-sizing:border-box;position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:calc(100dvh - 28px);margin:0;padding:28px;border:1px solid #ffffff15;border-radius:18px;background:#15161c;color:#f5f5f5;font:14px/1.65 Inter,system-ui,sans-serif;box-shadow:0 24px 90px #0008;text-align:center;overflow-y:auto;z-index:6000}
.sigma-access-dialog::backdrop {background:#080b13b8;backdrop-filter:blur(5px)}
.sigma-access-dialog[open] {display:block}
.sigma-access-dialog:not([open]) {display:none}
.sigma-access-symbol {display:grid;place-items:center;width:60px;height:60px;margin:0 auto 18px;border:1px solid #f4ae4855;border-radius:18px;background:#f4ae4812;color:#ffbd66;font-size:28px;font-weight:600}
.sigma-access-dialog h2 {margin:0 0 10px;font-size:22px;line-height:1.3;color:#fff;overflow-wrap:anywhere}
.sigma-access-dialog p {margin:0 0 16px;color:#aeb4c2;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.sigma-access-dialog .sigma-access-hint {padding:12px;border:1px solid #ffffff12;border-radius:8px;font-size:12px;text-align:left;background:#ffffff04}
.sigma-access-actions {display:flex;flex-direction:column;gap:9px;margin-top:20px}
.sigma-access-actions :is(a,button) {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;padding:11px 14px;border:1px solid #ffffff18;border-radius:8px;background:#232630;color:#e4e8ef;text-decoration:none;font:600 13px/1.5 Inter,system-ui,sans-serif;cursor:pointer;white-space:normal}
.sigma-access-actions .primary {background:#0876e8;border-color:#0876e8;color:#fff}
.sigma-access-dialog small {display:block;margin-top:18px;font-size:11px;color:#8c93a3}
.sigma-access-page {margin:0;min-height:100dvh;padding:20px;box-sizing:border-box;background:radial-gradient(ellipse at top,#20283c,#0f1014 65%);color:#fff;font-family:Inter,system-ui,sans-serif}
.sigma-access-brand {display:block;width:100px;height:100px;object-fit:contain;margin:24px auto}
.sigma-access-page .sigma-access-dialog {display:block}
@media(max-width:480px){.sigma-access-dialog{padding:22px 18px}.sigma-access-dialog h2{font-size:20px}}
