/* Presentation only. Loaded after the legacy and Murad brand layers. */
html {
  color-scheme: dark;
  scroll-padding-top: 80px;
}
html body {
  --ui-bg: #151819;
  --ui-surface: #202425;
  --ui-raised: #292e30;
  --ui-line: #424a4c;
  --ui-text: #f1f4f3;
  --ui-muted: #b8c2c1;
  --ui-green: #71d6b3;
  --ui-blue: #92c9f5;
  --ui-amber: #e9c57b;
  --ui-red: #f0a09b;
  --ink: var(--ui-text);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --paper: var(--ui-bg);
  --panel: var(--ui-surface);
  --panel-strong: var(--ui-raised);
  --line: var(--ui-line);
  --cyan: var(--ui-blue);
  --blue: #479bc4;
  --teal: var(--ui-green);
  --lime: var(--ui-green);
  --coral: var(--ui-red);
  --yellow: var(--ui-amber);
  --navy: var(--ui-surface);
  --black: var(--ui-bg);
  --accent: var(--ui-green);
  --shadow: 0 10px 24px #0003;
  --glow: none;
  --text-outline: none;
  margin: 0;
  background: var(--ui-bg) !important;
  color: var(--ui-text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html body *, html body *::before, html body *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
html body [hidden] { display: none !important; }
html body :is(main, section, article, aside, form, fieldset, details, label, .field, .actions) { min-width: 0; }
html body :is(h1, h2, h3, h4, p, a, strong, small, label, summary) { overflow-wrap: anywhere; }
html body :is(h1, h2, h3, h4) { color: var(--ui-text); font-weight: 650; line-height: 1.3; }
html body h1 { font-size: 30px; }
html body h2 { font-size: 23px; }
html body h3 { font-size: 18px; }
html body h4 { font-size: 15px; }
html body :is(.small, small, .cell-sub) { color: var(--ui-muted); line-height: 1.45; }
html body :is(.eyebrow, .plan-pill) { color: var(--ui-green) !important; font-size: 12px; font-weight: 650; }
html body :is(button, .button, input, select, textarea) { font-family: inherit; max-width: 100%; }
html body :is(button, .button) {
  border: 1px solid var(--ui-line) !important;
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 12px;
  background: var(--ui-raised) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
html body :is(button, .button):hover:not(:disabled):not([aria-disabled="true"]) { background: #353e40 !important; border-color: #73827f !important; }
html body :is(button.primary, .button.primary) { background: #20745d !important; border-color: #469a80 !important; color: #fff !important; }
html body :is(button.primary, .button.primary):hover:not(:disabled) { background: #2b856c !important; }
html body :is(button.danger, .button.danger) { background: #462c2c !important; border-color: #98615c !important; color: #ffd8d4 !important; }
html body :is(button, .button):is(.primary, .secondary, .danger) { box-shadow: none !important; }
html body :is(button.secondary, .button.secondary) { background: var(--ui-raised) !important; border-color: var(--ui-line) !important; color: var(--ui-text) !important; }
html body :is(button, .button):is(:disabled, [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; }
html body :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ui-blue) !important; outline-offset: 3px; }
html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px;
  border: 1px solid var(--ui-line) !important; border-radius: 6px;
  background: #181c1d !important; color: var(--ui-text) !important;
  font-size: 14px; line-height: 1.4; box-shadow: none;
}
html body input::placeholder, html body textarea::placeholder { color: #97a5a2; opacity: 1; }
html body textarea { resize: vertical; }
html body :is(pre, code) { font-family: Consolas, monospace; font-size: 12px; }
html body pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #15191a; padding: 12px; border: 1px solid var(--ui-line); border-radius: 6px; }
html body .topbar { min-height: 62px; gap: 16px; padding: 10px 24px; background: #202425f5 !important; border-color: var(--ui-line) !important; box-shadow: none !important; }
html body .brand { font-size: 22px; color: var(--ui-text); white-space: nowrap; }
html body .murad-script { font-family: inherit; font-size: inherit; font-style: normal; line-height: inherit; }
html body .nav { gap: 6px 16px; }
html body .nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ui-muted); font-weight: 500; }
html body .nav a:hover { color: var(--ui-green) !important; }
html body .section { max-width: 1480px; width: calc(100% - 64px); margin-inline: auto; padding: 44px 0; background: none !important; border: 0; box-shadow: none !important; }
html body .section-head { margin-bottom: 24px; }
html body .section-head :is(h1, h2) { margin: 6px 0 10px; }
html body .section-head p { margin-top: 6px; max-width: 90ch; color: var(--ui-muted); }
html body :is(.panel, .card, .compact-card, .order-card, .login-panel, .dashboard-card, .stat-card) { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; border-radius: 8px; box-shadow: none !important; }
html body :is(.section-block, .admin-section-card) { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0; padding: 16px 0; }
html body :is(.section-block, .admin-section-card, .panel, .card, .compact-card, .history-card, .plan-card, .telegram-box) { backdrop-filter: none; }
html body .section-block-head { align-items: flex-start; gap: 16px; margin-bottom: 18px; }
html body .section-block-head :is(h2, h3) { font-size: 21px; margin: 0 0 6px; }
html body .section-counter { flex: 0 0 auto; background: #2c3f3a; color: #a6e7cf; border: 1px solid #496a60; font-size: 18px; padding: 5px 10px; border-radius: 6px; min-width: 38px; text-align: center; }
html body :is(.actions, .toolbar, .filter-bar) { flex-wrap: wrap; gap: 8px; }
html body :is(.field, .search-field) { min-width: 0; }
html body :is(.field, .search-field) > span { display: block; margin-bottom: 5px; color: var(--ui-muted); font-size: 13px; }
html body .search-field { display: block; margin: 16px 0; }
html body .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html body .form-grid :is(.full-row, .form-subsection) { grid-column: 1 / -1; }
html body :is(.form-subsection, .form-subsection-head) { min-width: 0; }
html body .form-grid-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .form-subsection { border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; background: none; padding: 14px 0 0; }
html body :is(.section-grid, .compact-grid) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
html body .table-wrap { min-width: 0; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--ui-line); border-radius: 6px; }
html body .xui-table-wrap { min-width: 0; max-width: 100%; overflow: auto; background: var(--ui-surface); border: 1px solid var(--ui-line); }
html body :is(table, th, td) { border-color: var(--ui-line) !important; }
html body th { background: var(--ui-raised) !important; font-size: 12px; text-align: left; font-weight: 600; color: var(--ui-muted); white-space: normal; }
html body td { font-size: 13px; }
html body :is(.empty-state, .empty-cell, .hint-box, .login-warning) { border-color: var(--ui-line); background: var(--ui-surface); color: var(--ui-muted); padding: 18px; border-radius: 6px; }
html body :is(.status, .plan-pill) { border-radius: 4px; padding: 3px 6px; background: #263e34; border: 1px solid #527460; color: #b5e2c7; font-size: 12px; }
html body .status.wait { background: #423c2b; border-color: #87734a; color: #f1dba5; }
html body .status.bad { background: #462e30; border-color: #905d60; color: #ffd0cc; }
html body .toast { z-index: 100; max-width: min(520px, calc(100% - 24px)); background: #293333 !important; color: var(--ui-text); border: 1px solid #6f8b83 !important; box-shadow: 0 8px 32px #0006; overflow-wrap: anywhere; }

/* One compact rail on desktop, a bounded scrolling menu on narrow screens. */
html body.admin-body .section { max-width: 1900px; width: calc(100% - 48px); padding: 24px 0 40px; }
html body.admin-body .section > .section-head { margin-bottom: 20px; }
html body.admin-body #admin-login:empty { display: none; }
html body.admin-body .admin-workspace { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
html body.admin-body .admin-section-sidebar { position: sticky; top: 78px; max-height: calc(100dvh - 96px); overflow-y: auto; align-content: start; padding: 6px; gap: 3px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface) !important; box-shadow: none; scrollbar-width: thin; }
html body.admin-body .admin-section-nav-item { --nav-accent: var(--ui-green); display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; margin: 0; padding: 7px 9px; border: 0 !important; border-left: 3px solid transparent !important; border-radius: 4px; background: transparent !important; color: var(--ui-muted) !important; font-size: 13px; font-weight: 500; text-align: left; }
html body.admin-body .admin-section-nav-item:nth-child(4n+2) { --nav-accent: var(--ui-blue); }
html body.admin-body .admin-section-nav-item:nth-child(4n+3) { --nav-accent: var(--ui-amber); }
html body.admin-body .admin-section-nav-item:nth-child(4n+4) { --nav-accent: #d6b4e2; }
html body.admin-body .admin-section-nav-item.active { background: #33403c !important; color: var(--ui-text) !important; border-left-color: var(--nav-accent) !important; font-weight: 650; }
html body.admin-body .admin-section-nav-label { flex: 1; min-width: 0; }
html body.admin-body .admin-section-nav-count { background: #3c4645; color: var(--nav-accent); border-radius: 4px; font-size: 11px; min-width: 24px; padding: 1px 5px; text-align: center; }
html body.admin-body .admin-section-content { min-width: 0; }
html body.admin-body .section-block-head :is(h2, h3) { font-size: 21px; }
html body.admin-body .section-block-head { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; }
html body.admin-body .section-block-head > div { min-width: 0; }
html body.admin-body .xray-shared-vault-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
html body.admin-body .xray-shared-profile-grid { grid-template-columns: minmax(0, 1fr); }
html body.admin-body .connection-create { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body.admin-body .connection-create button { grid-column: span 2; }
html body.admin-body :is(.connection-bulk-actions, .connection-toolbar) { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--ui-line); }
html body.admin-body .connection-toolbar .active { background: #2c5145 !important; border-color: #6ab79c !important; color: #fff !important; }
html body.admin-body .connection-table-wrap { background: var(--ui-surface); }
html body.admin-body .admin-section-content > details.dashboard-card { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--ui-line); font-size: 13px; }
html body.admin-body [data-customer-payment-settings] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
html body.admin-body [data-customer-payment-settings] :is(p, button) { grid-column: 1 / -1; }
html body.admin-body [data-customer-payment-settings] label { display: grid; gap: 6px; }
html body summary { cursor: pointer; line-height: 1.45; padding-block: 6px; }
html body details[open] > summary { margin-bottom: 10px; color: var(--ui-green); }

/* Native checkbox selections and paired switch tracks have separate sizing. */
html body.admin-body input[type="checkbox"], html body.admin-body .switch-ui {
  appearance: none; position: relative; width: 34px !important; height: 20px !important;
  min-width: 34px !important; min-height: 20px !important; padding: 0 !important; margin: 0;
  flex: 0 0 34px; border: 1px solid #70817c !important; border-radius: 20px !important;
  background: #394543 !important; box-shadow: none !important; vertical-align: middle;
}
html body.admin-body input[type="checkbox"]::after, html body.admin-body .switch-ui::after {
  content: ""; position: absolute; width: 14px !important; height: 14px !important;
  left: 2px !important; top: 2px !important; border-radius: 50%; background: #edf4f1;
  transform: none; box-shadow: 0 1px 3px #0004;
}
html body.admin-body input[type="checkbox"]:checked, html body.admin-body input:checked + .switch-ui { background: #277b60 !important; border-color: #77c8a8 !important; }
html body.admin-body input[type="checkbox"]:checked::after, html body.admin-body input:checked + .switch-ui::after { transform: translateX(14px) !important; }
html body.admin-body :is(.switch-hit, .switch-line) > input[type="checkbox"] { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; }
html body.admin-body .switch-hit { min-height: 28px; }
html body.admin-body input:focus-visible + .switch-ui { outline: 2px solid var(--ui-blue); outline-offset: 3px; }
html body.admin-body :is(input[data-location-select], input[data-location-select-all], input[data-connection-select], input[data-connection-select-all], input[data-custom-json-select]) { appearance: auto; accent-color: #419b78; width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; flex-basis: 16px; }
html body.admin-body :is(input[data-location-select], input[data-location-select-all], input[data-connection-select], input[data-connection-select-all], input[data-custom-json-select])::after { content: none; }
html body :is(.switch-line, .toggle-line, .check-line, .check-row, .location-toggle) { min-width: 0; gap: 8px; align-items: center; }
html body :is(.switch-setting, .toggle-row) { padding: 8px 0; border-bottom: 1px solid var(--ui-line); }

/* Dense location and client lists remain expandable; no actions are removed. */
html body.admin-body .location-sort-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
html body.admin-body .location-sort-pane { padding: 0; border: 0; min-width: 0; }
html body.admin-body .location-sort-pane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; min-height: 42px; border-top: 2px solid #70b59d; margin-top: 8px; font-size: 13px; }
html body.admin-body .location-sort-pane + .location-sort-pane .location-sort-pane-head { border-top-color: var(--ui-amber); }
html body.admin-body .location-sort-pane-head label { display: flex; align-items: center; gap: 6px; }
html body.admin-body .location-sort-table { min-width: 0 !important; width: 100%; }
html body.admin-body .location-sort-table thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html body.admin-body .location-sort-table tbody { display: block; }
html body.admin-body .location-sort-table tr { display: grid !important; grid-template-columns: 80px minmax(0, 1fr) 42px; gap: 0 8px; align-items: center; min-height: 34px !important; padding: 4px 8px !important; border-bottom: 1px solid var(--ui-line); cursor: pointer; }
html body.admin-body .location-sort-table td { display: block; width: auto !important; min-width: 0; padding: 0 !important; border: 0; font-size: 12px !important; }
html body.admin-body .location-sort-table td:nth-child(1) { display: flex; align-items: center; gap: 5px; grid-column: 1; grid-row: 1; }
html body.admin-body .location-sort-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
html body.admin-body .location-sort-table td:nth-child(2) strong { display: block; font-size: 12px !important; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
html body.admin-body .location-sort-table td:nth-child(4) { grid-column: 3; grid-row: 1; }
html body.admin-body .location-sort-table td:nth-child(5) { grid-column: 2 / -1; font-size: 11px !important; }
html body.admin-body .location-sort-table .location-sort-source-link { display: block; color: var(--ui-blue); white-space: normal; overflow-wrap: anywhere; }
html body.admin-body .location-sort-table input[data-location-sort-position] { width: 48px; min-height: 24px !important; height: 24px !important; padding: 1px 3px !important; font-size: 12px !important; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded { background: #25332f; padding-block: 8px !important; gap: 8px; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded td:nth-child(3), html body.admin-body .location-sort-table tr.location-sort-row-expanded td:nth-child(6) { display: block !important; grid-column: 1 / -1; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded td:nth-child(2) { grid-column: 2 / -1; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded td:nth-child(4) { grid-column: 1 / -1; grid-row: auto; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded .location-toggle { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded .location-toggle span { white-space: nowrap; font-size: 12px; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded input[data-location-sort-name] { width: 100%; min-height: 36px; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded td:nth-child(3)::before { content: "Название в подписке"; display: block; margin-bottom: 5px; color: var(--ui-muted); font-size: 12px; }
html body.admin-body .location-sort-table tr.location-sort-row-expanded .cell-sub { display: block; white-space: normal; overflow-wrap: anywhere; margin-top: 5px; }
html body.admin-body .location-sort-table .actions { justify-content: flex-start; gap: 6px; }
html body.admin-body .location-sort-table .actions button { min-height: 32px !important; height: auto !important; font-size: 12px !important; padding: 5px 8px !important; }
html body.admin-body :is(.selected-connection-row, tr:has(input[data-location-select]:checked)) { background: #284238 !important; }
html body.admin-body .connection-client-cell { min-height: 28px; gap: 8px; }
html body.admin-body .connection-client-cell strong { font-size: 13px !important; line-height: 1.35; }
html body.admin-body .menu-pop-body { width: 240px; max-width: calc(100vw - 40px); background: var(--ui-raised); border: 1px solid var(--ui-line); border-radius: 6px; }
html body.admin-body .menu-pop-body button { text-align: left; width: 100%; }
html body.admin-body :is(.xray-panel-card, .panel-control-card) { min-width: 0; }

/* Dialogs keep close and footer actions inside the visible scroll area. */
html body .modal-overlay { z-index: 80; padding: 18px; background: #050909bc; backdrop-filter: blur(5px); overflow: hidden; }
html body .modal-card { width: min(640px, 100%); min-width: 0; max-width: 100%; max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 16px 20px 0; border-radius: 8px; border: 1px solid #5e6c67; background: var(--ui-surface) !important; color: var(--ui-text) !important; align-content: start; }
html body .modal-card .modal-close { position: sticky; top: 0; right: 0; justify-self: end; margin-left: auto; z-index: 3; width: 36px; height: 36px; min-height: 36px; padding: 0; font-size: 22px; background: var(--ui-raised) !important; }
html body .modal-card > .actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0; margin-top: 6px; background: var(--ui-surface); border-top: 1px solid var(--ui-line); }
html body .modal-card > :last-child:not(.actions) { margin-bottom: 18px; }
html body .modal-card[data-location-json-modal] { width: min(1100px, 100%); }
html body .modal-card[data-location-json-modal] .json-form-grid { grid-template-columns: minmax(0, 1fr) 160px; }
html body .modal-card[data-location-json-modal] textarea { min-height: 180px; max-height: 45dvh; }
html body .modal-card.file-manager-editor { width: min(1100px, 100%); }
html body form[data-location-edit-form] { width: min(980px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .nerlo-payment-card { color-scheme: dark; }
html body .nerlo-payment-card :is(h3, strong, p, .small) { color: var(--ui-text) !important; }
html body .nerlo-payment-card .modal-close { color: var(--ui-text) !important; }
html body .nerlo-payment-card .button { border-radius: 6px; box-shadow: none !important; }
html body .nerlo-payment-card .button.primary { background: #20745d !important; border-color: #469a80 !important; }
html body .nerlo-payment-card .button.secondary { background: var(--ui-raised) !important; color: var(--ui-text) !important; border-color: var(--ui-line) !important; }

/* Existing globe media stays intact, with an unframed public layout. */
html body:not(.admin-body) .hero { min-height: 0; background: #111516 !important; display: block; }
html body:not(.admin-body) .hero::before, html body:not(.admin-body) .hero::after { content: none; }
html body:not(.admin-body) .hero-image, html body:not(.admin-body) .hero-shade, html body:not(.admin-body) .hero-network { display: none; }
html body:not(.admin-body) .hero-content { width: 100%; max-width: none; padding: 0; }
html body:not(.admin-body) .hero-content > .eyebrow { width: min(1280px, calc(100% - 64px)); margin: 20px auto 0; font-size: 14px; }
html body:not(.admin-body) #login { width: 100%; max-width: none; padding: 0; margin: 0; border: 0 !important; background: none !important; box-shadow: none; }
html body:not(.admin-body) .home-landing-panel { width: 100%; min-height: 0; padding: 36px max(32px, calc((100% - 1280px) / 2)); margin: 0; border: 0 !important; border-radius: 0; background-color: #090e12 !important; box-shadow: none; }
html body:not(.admin-body) .murad-panel-video { object-position: center; opacity: .75; }
html body:not(.admin-body) .murad-globe-overlay { background: linear-gradient(90deg, #0a1016c9, #0a101650), linear-gradient(0deg, #090e12, transparent 55%) !important; }
html body:not(.admin-body) .home-landing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
html body:not(.admin-body) .home-landing-head > div:first-child { flex: 1 1 400px; }
html body:not(.admin-body) .home-landing-head h2 { display: block !important; font-size: 30px; max-width: 700px; margin: 8px 0; }
html body:not(.admin-body) .home-landing-head p:not(.eyebrow) { display: block !important; color: #d1dbdc; max-width: 620px; }
html body:not(.admin-body) .home-landing-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html body:not(.admin-body) .home-landing-copy { gap: 0; }
html body:not(.admin-body) .landing-note { padding: 0 !important; }
html body:not(.admin-body) :is(.home-landing-actions, .telegram-vpn-actions) .button { padding: 10px 14px !important; border: 1px solid var(--ui-line) !important; background: var(--ui-raised) !important; }
html body:not(.admin-body) :is(.home-landing-actions, .telegram-vpn-actions) .button.primary { background: #20745d !important; border-color: #6aac96 !important; }
html body:not(.admin-body) .landing-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
html body:not(.admin-body) .landing-price-card { border: 1px solid #66797d !important; border-radius: 8px; background: #142023bf !important; padding: 16px; box-shadow: none; }
html body:not(.admin-body) .landing-price-card strong { font-size: 27px; }
html body:not(.admin-body) .landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: 28px 0 20px; }
html body:not(.admin-body) .landing-feature-card { background: none !important; border: 0 !important; padding: 0; box-shadow: none; font-size: 14px; }
html body:not(.admin-body) .landing-feature-card strong { color: #f4f8f6; font-size: 15px; }
html body:not(.admin-body) .landing-feature-card span { color: #d2dddd; }
html body:not(.admin-body) .landing-note { font-size: 13px; color: #c5d1d1; max-width: 100ch; margin: 20px 0; }
html body:not(.admin-body) .telegram-proxy-mini { border: 0 !important; border-top: 1px solid #57676f !important; border-radius: 0; background: none !important; box-shadow: none; padding: 20px 0 0; gap: 20px; }
html body:not(.admin-body) .telegram-proxy-mini h3 { font-size: 18px; }
html body:not(.admin-body) .price-card { background: var(--ui-surface) !important; border-color: var(--ui-line); box-shadow: none; border-radius: 8px; }
html body:not(.admin-body) :is(.plan-card, .feature-chip, .price-breakdown, .history-card, .cabinet-simple-head, .subscription-actions-box) { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; box-shadow: none; }
html body:not(.admin-body) .plan-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body:not(.admin-body) .feature-chip { min-width: 0; padding: 10px; }
html body:not(.admin-body) .feature-chip strong { white-space: normal; overflow-wrap: anywhere; font-size: 15px; }
html body:not(.admin-body) .subscription-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body:not(.admin-body) .subscription-detail-grid > div { min-width: 0; background: none; border: 0; border-left: 2px solid #658e82; border-radius: 0; }
html body:not(.admin-body) .subscription-detail-card > .history-card { border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; padding-inline: 0; }
html body:not(.admin-body) .subscription-row strong { white-space: normal; overflow: visible; text-overflow: clip; }
html body .section-block-head { flex-direction: row; }
html body:not(.admin-body) :is(.tariff-summary, .tariff-breakdown, .tariff-stat, .key-box) { background: #192021 !important; border-color: var(--ui-line) !important; color: var(--ui-text); }
html body:not(.admin-body) .cabinet-simple-head { gap: 16px; align-items: center; flex-wrap: wrap; }
html body:not(.admin-body) .cabinet-buy-strip { min-width: 0; background: var(--ui-surface); border-color: var(--ui-line); box-shadow: none; }
html body:not(.admin-body) .subscription-row { min-height: 64px; gap: 12px; padding: 12px 16px; border-radius: 6px; background: var(--ui-surface); }

@media (max-width: 1100px) {
  html body.admin-body .admin-workspace { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  html body.admin-body .location-sort-panes { grid-template-columns: minmax(0, 1fr); }
  html body :is(.form-grid, .form-grid-inner) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  html body .topbar { padding: 10px 16px; gap: 4px 16px; flex-wrap: wrap; }
  html body .brand { font-size: 21px; }
  html body .nav { gap: 4px 14px; }
  html body .nav a { min-height: 36px; font-size: 13px; }
  html body .section, html body.admin-body .section { width: calc(100% - 24px); padding: 22px 0 30px; }
  html body h1 { font-size: 25px; }
  html body h2, html body .section-block-head :is(h2, h3) { font-size: 21px; }
  html body :is(button, .button) { min-height: 42px; }
  html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { font-size: 16px; min-height: 42px; }
  html body.admin-body .admin-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html body.admin-body .admin-section-sidebar { position: relative; top: auto; max-height: 174px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
  html body.admin-body .admin-section-nav-item { min-height: 42px; font-size: 12px; padding: 7px; }
  html body.admin-body .admin-section-content > details.dashboard-card { margin-bottom: 12px; }
  html body.admin-body [data-customer-payment-settings] { grid-template-columns: minmax(0, 1fr); }
  html body.admin-body .connection-create { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body :is(.section-grid, .compact-grid, .form-grid, .form-grid-inner, .json-form-grid) { grid-template-columns: minmax(0, 1fr) !important; }
  html body .compact-card { padding: 14px; }
  html body.admin-body .location-sort-table tr { min-height: 42px !important; grid-template-columns: 74px minmax(0, 1fr) 38px; gap: 2px 6px; padding: 5px 6px !important; }
  html body.admin-body .location-sort-table .actions button { min-height: 40px !important; }
  html body.admin-body .location-sort-table input[data-location-sort-position] { width: 44px; height: 30px !important; min-height: 30px !important; }
  html body.admin-body .connection-client-cell { min-height: 38px; }
  html body.admin-body .connection-row-select { min-height: 38px; display: inline-flex; align-items: center; }
  html body .modal-overlay { padding: 8px; }
  html body .modal-card, html body .modal-card[data-location-json-modal], html body .modal-card.file-manager-editor { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); padding: 10px 14px 0; }
  html body .modal-card .modal-close { width: 42px; height: 42px; }
  html body .modal-card > .actions { flex-wrap: wrap; }
  html body .modal-card > .actions > :is(button, a) { flex: 1 1 110px; }
  html body form[data-location-edit-form], html body .modal-card[data-location-json-modal] .json-form-grid { grid-template-columns: minmax(0, 1fr); }
  html body:not(.admin-body) .hero-content > .eyebrow { width: calc(100% - 32px); margin-top: 16px; }
  html body:not(.admin-body) .home-landing-panel { padding: 24px 16px; }
  html body:not(.admin-body) .home-landing-head h2 { font-size: 25px; }
  html body:not(.admin-body) .home-landing-head > div:first-child { flex-basis: 100%; }
  html body:not(.admin-body) .home-landing-actions { width: 100%; }
  html body:not(.admin-body) .home-landing-actions .button { flex: 1 1 140px; text-align: center; }
  html body:not(.admin-body) .landing-price-grid { gap: 8px; }
  html body:not(.admin-body) .landing-price-card { padding: 12px 8px; }
  html body:not(.admin-body) .landing-price-card strong { font-size: 22px; }
  html body:not(.admin-body) .landing-price-card small { font-size: 11px; }
  html body:not(.admin-body) .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  html body:not(.admin-body) .telegram-proxy-mini { grid-template-columns: minmax(0, 1fr); }
  html body:not(.admin-body) .cabinet-head-actions { width: 100%; }
  html body:not(.admin-body) .subscription-detail-grid { grid-template-columns: minmax(0, 1fr); }
  html body:not(.admin-body) .subscription-row { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 13px; }
  html body:not(.admin-body) .subscription-row > span:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; }
}
