/* Noesis compact interface, 2026-06-19 */
:root {
  --v2-bg: #080d15;
  --v2-surface: #111720;
  --v2-surface-2: #19212c;
  --v2-surface-blue: #0e2547;
  --v2-line: #2a313d;
  --v2-line-blue: #1f79ff;
  --v2-text: #f7f9fc;
  --v2-muted: #9ca6b7;
  --v2-blue: #1677ff;
  --v2-blue-hover: #378cff;
  --v2-cyan: #38c9f2;
  --v2-green: #35d39a;
  --v2-red: #ff7988;
}

html {
  background: var(--v2-bg);
}

body {
  position: relative;
  isolation: isolate;
  background: var(--v2-bg);
  color: var(--v2-text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(99, 164, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 164, 255, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(125deg, transparent 0 239px, rgba(44, 130, 255, 0.045) 240px 241px, transparent 242px 480px);
  background-size: 32px 32px, 32px 32px, auto;
  opacity: 0.82;
}

body::after {
  z-index: 0;
  box-shadow:
    inset 240px 150px 300px rgba(14, 112, 255, 0.115),
    inset -220px -120px 320px rgba(39, 91, 220, 0.085),
    inset 0 1px 0 rgba(85, 159, 255, 0.18);
}

main {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: calc(100vh - 64px);
}

main::before,
main::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 720px;
  height: 150px;
  pointer-events: none;
  transform: rotate(-12deg);
  border-top: 1px solid rgba(78, 157, 255, 0.16);
  border-bottom: 1px solid rgba(78, 157, 255, 0.08);
  background: rgba(20, 103, 228, 0.065);
  box-shadow: 0 0 90px rgba(14, 105, 240, 0.13);
  filter: blur(10px);
}

main::before {
  top: 105px;
  left: -260px;
}

main::after {
  right: -310px;
  bottom: 6vh;
  height: 190px;
  transform: rotate(16deg);
  background: rgba(42, 93, 210, 0.055);
  box-shadow: 0 0 110px rgba(44, 93, 214, 0.12);
}

p {
  color: var(--v2-muted);
  font-size: 15px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  font-size: 46px;
  line-height: 1.04;
}

h2 {
  font-size: 28px;
  line-height: 1.1;
}

h3 {
  font-size: 19px;
  line-height: 1.2;
}

.site-header,
.home-gateway,
.page,
.hero,
.scenario,
.availability-section,
.steps,
.tariff-section,
.faq-dark,
.blue-cta {
  width: min(1160px, calc(100% - 40px));
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 64px;
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid rgba(92, 148, 226, 0.16);
  background:
    linear-gradient(90deg, rgba(12, 30, 52, 0.88), rgba(7, 12, 21, 0.94) 42%, rgba(11, 22, 43, 0.9));
  box-shadow: 0 14px 42px rgba(2, 7, 16, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-shell::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -1px;
  width: min(360px, 34vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 128, 255, 0.8), transparent);
  pointer-events: none;
}

.brand {
  gap: 10px;
  font-size: 18px;
}

.logo-frame,
.mark {
  width: 32px;
  height: 32px;
}

.logo-frame {
  border-color: rgba(31, 121, 255, 0.65);
  background: #0d1b30;
  box-shadow: none;
}

.header-actions {
  gap: 8px;
}

.button,
button {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  background: var(--v2-blue);
  font-size: 14px;
  box-shadow: none;
}

.button:hover,
button:hover {
  background: var(--v2-blue-hover);
  transform: none;
}

.button.ghost,
button.ghost,
.ghost.dark {
  border-color: var(--v2-line);
  background: var(--v2-surface-2);
}

.button.ghost:hover,
button.ghost:hover,
.ghost.dark:hover {
  border-color: #465164;
  background: #202631;
}

.home-gateway {
  padding: 54px 0 48px;
}

.gateway-head,
.section-head,
.compact-head {
  max-width: 760px;
  gap: 12px;
  margin-bottom: 26px;
}

.gateway-head h1,
.account-head h1,
.account-page > .section-head h1,
.compact-head h1,
.page > .section-head h1 {
  font-size: 46px;
  line-height: 1.04;
}

.gateway-head p,
.section-head p,
.account-head p {
  max-width: 680px;
  font-size: 16px;
}

.pill,
.eyebrow {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--v2-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gateway-grid {
  gap: 16px;
}

.gateway-card,
.lookup-card,
.account-panel,
.latest-order-card,
.plan-tariff-group,
.tariff,
.panel,
.card,
.scenario-card,
.preview-card,
.availability-grid article,
.payment-modal {
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  box-shadow:
    inset 0 1px 0 rgba(113, 170, 255, 0.055),
    0 18px 48px rgba(2, 7, 15, 0.18);
}

.gateway-card {
  min-height: 350px;
  padding: 28px;
  gap: 18px;
}

.gateway-card.primary-card {
  border-color: #225caa;
  background: var(--v2-surface-blue);
  box-shadow: 0 16px 42px rgba(10, 72, 158, 0.14);
}

.gateway-card-top {
  align-items: center;
}

.gateway-card-top span {
  color: var(--v2-muted);
  font-size: 12px;
}

.gateway-card-top strong,
.plan-tariff-head > strong,
.status-badge,
.access-meta span {
  border: 1px solid #285f99;
  border-radius: 999px;
  background: #10253d;
  color: #a9ddff;
}

.gateway-card-top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
}

.gateway-card h2 {
  font-size: 30px;
}

.gateway-card p {
  max-width: 500px;
}

.gateway-form {
  gap: 10px;
  margin-top: auto;
}

.form label,
.gateway-form label {
  color: #d8dee8;
  font-size: 13px;
}

input,
textarea,
select {
  min-height: 50px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #090c11;
  color: var(--v2-text);
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--v2-blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}

.gateway-button-row {
  gap: 8px;
}

.gateway-button-row .button,
.gateway-button-row button {
  min-height: 50px;
}

.white-button,
.account-pay {
  background: #f7f9fc;
  color: #075dcc;
}

.white-button:hover,
.account-pay:hover {
  background: #e8f1ff;
  color: #075dcc;
}

.gateway-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-line);
}

.gateway-benefits > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  background: #0d1117;
  box-shadow: inset 0 1px 0 rgba(75, 144, 244, 0.045);
}

.gateway-benefits strong {
  font-size: 14px;
}

.gateway-benefits span,
.gateway-benefits a {
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.35;
}

.gateway-benefits a {
  color: #82baff;
  text-decoration: none;
}

.gateway-support {
  margin-top: 18px;
  font-size: 13px;
}

/* Account */
.lte-panel {
  margin-top: 16px;
}

.lte-meter-head,
.lte-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lte-meter-head {
  margin-top: 20px;
}

.lte-meter-head strong {
  font-size: 18px;
}

.lte-meter-head span,
.lte-meta {
  color: var(--v2-muted);
  font-size: 13px;
}

.lte-meter {
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #24364d;
  border-radius: 5px;
  background: #080c12;
}

.lte-meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #1677ff, #35d2ff);
}

.lte-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
}

.lte-packages form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--v2-line);
}

.lte-packages form:last-child {
  border-right: 0;
}

.lte-packages strong {
  font-size: 16px;
}

.lte-packages span {
  color: var(--v2-muted);
  font-size: 13px;
}

.lte-packages button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  padding: 0 12px;
}

.lte-history {
  margin-top: 16px;
  border-top: 1px solid var(--v2-line);
  padding-top: 14px;
}

.lte-history summary {
  cursor: pointer;
  font-weight: 800;
}

.lte-history > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: var(--v2-muted);
  font-size: 13px;
}

.lte-history > div strong {
  color: var(--v2-text);
}

.start-plan-notice strong {
  color: #b9dcff;
}

.account-page,
.light-page {
  padding-top: 42px;
  padding-bottom: 56px;
}

@media (max-width: 720px) {
  .lte-meter-head,
  .lte-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .lte-packages {
    grid-template-columns: 1fr;
  }

  .lte-packages form {
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  .lte-packages form:last-child {
    border-bottom: 0;
  }
}

.account-head {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 24px;
}

.account-head-id {
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.account-head-id span,
.muted {
  color: var(--v2-muted);
  font-size: 12px;
}

.account-head-id strong {
  overflow: hidden;
  font-size: 21px;
  text-overflow: ellipsis;
}

.account-id-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.account-id-copy {
  min-height: 32px;
  width: 32px;
  padding: 0;
  border: 1px solid var(--v2-line);
  background: #1a202a;
  color: #a9ddff;
  font-size: 15px;
  flex: 0 0 32px;
}

.account-id-value strong {
  grid-column: auto;
  min-width: 0;
}

.logout-button {
  min-height: 34px;
  margin-top: 4px;
}

.account-shortcuts {
  display: flex;
  gap: 6px;
  margin: -8px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-shortcuts::-webkit-scrollbar {
  display: none;
}

.account-shortcuts a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #0e1218;
  color: #b7c1cf;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.account-shortcuts a:hover {
  border-color: #3a73b9;
  color: var(--v2-text);
}

.account-grid {
  gap: 16px;
}

.account-panel {
  min-height: 0;
  padding: 24px;
}

.account-panel-top {
  gap: 14px;
}

.account-panel-top h2,
.compact-panel h2,
.operations-panel summary strong {
  font-size: 27px;
  line-height: 1.1;
}

.account-panel-top p,
.compact-panel p {
  font-size: 14px;
}

.status-badge {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: #b7c1cf;
  font-size: 11px;
  white-space: nowrap;
}

.status-badge.active {
  border-color: #177a59;
  background: #0e3026;
  color: #79efc4;
}

.access-panel {
  gap: 16px;
}

.access-date {
  margin-top: 10px;
  gap: 10px;
}

.access-date span {
  font-size: 24px;
}

.access-date strong {
  font-size: 46px;
  line-height: 1;
}

.access-meta {
  gap: 7px;
  margin-top: 2px;
}

.access-meta span {
  min-height: 29px;
  padding: 0 10px;
  font-size: 11px;
}

.account-actions {
  gap: 8px;
  margin-top: 8px;
}

.account-primary,
.account-pay {
  min-height: 48px;
}

.compact-panel {
  gap: 14px;
}

.copy-row,
.subscription-copy {
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #0b0f15;
}

.copy-row code {
  font-size: 12px;
}

.copy-button {
  min-height: 36px;
  min-width: 96px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
}

.account-latest {
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
}

.latest-order-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}

#pay {
  margin-top: 16px;
}

.account-plan-tariffs,
.plan-tariffs {
  gap: 12px;
}

.account-plan-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-plan-option {
  position: relative;
  display: block;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #161b23;
  cursor: pointer;
}

.account-plan-option.featured,
.account-plan-option:has(input:checked) {
  border-color: var(--v2-blue);
  background: #102a4e;
}

.account-plan-option input {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.account-plan-option > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  pointer-events: none;
}

.account-plan-option small {
  grid-column: 1 / -1;
  color: var(--v2-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.account-plan-option strong {
  font-size: 19px;
}

.account-plan-option em {
  align-self: center;
  color: #b7c1cf;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.account-period-panels {
  margin-top: 10px;
}

.account-period-group {
  display: none;
}

.account-period-group.featured {
  display: grid;
  gap: 10px;
}

.account-period-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.account-period-head strong {
  font-size: 15px;
}

.account-period-head span {
  color: var(--v2-muted);
  font-size: 12px;
  text-align: right;
}

.plan-tariff-group,
.account-plan-group {
  gap: 14px;
  padding: 18px;
}

.plan-tariff-group.featured,
.account-plan-group.featured,
.account-plan-group:has(input:checked) {
  border-color: #2868bb;
  background: #111b2a;
}

.plan-tariff-head,
.account-plan-head {
  gap: 12px;
}

.plan-tariff-head h2,
.plan-tariff-head h3,
.account-plan-head h3 {
  font-size: 23px;
}

.plan-tariff-head p,
.account-plan-head p {
  max-width: 540px;
  font-size: 13px;
}

.plan-tariff-head > strong,
.account-plan-head > strong {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.account-tariff-grid,
.plan-tariff-group .tariffs {
  gap: 8px;
}

.tariff,
.account-tariff-card,
.account-plan-group .account-tariff-card,
.plan-tariff-group .tariff {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #39414e;
  border-radius: 7px;
  background: #1c212a;
  color: var(--v2-text);
}

.tariff.featured,
.account-tariff-card.featured,
.account-tariff-card:has(input:checked),
.plan-tariff-group .tariff.featured {
  border-color: var(--v2-blue);
  background: #102a4e;
  box-shadow: 0 10px 28px rgba(11, 92, 200, 0.12);
}

.account-tariff-card h2,
.plan-tariff-group .tariff h2 {
  font-size: 18px;
}

.account-tariff-card input[type="radio"] {
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
}

.account-tariff-card .price,
.plan-tariff-group .tariff .price {
  color: #79b7ff;
  font-size: 26px;
  white-space: nowrap;
}

.account-tariff-card .save,
.plan-tariff-group .tariff .save {
  font-size: 11px;
}

.tag {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--v2-blue);
  font-size: 10px;
}

.single-pay-row {
  margin-top: 12px;
}

.single-pay-row button {
  width: 100%;
  min-height: 50px;
}

.lower-grid {
  margin-top: 16px;
}

.device-limit-badge {
  min-width: max-content;
}

.device-list,
.order-list {
  gap: 8px;
  margin-top: 14px;
}

.device-item,
.order-item {
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: var(--v2-surface-2);
}

.device-main strong {
  font-size: 15px;
}

.device-main span,
.order-item span,
.empty-state {
  font-size: 12px;
}

.danger-button {
  color: #ffb0b9;
}

.operations-panel summary {
  gap: 12px;
}

.operations-panel summary em {
  min-width: max-content;
  font-size: 11px;
}

.payment-modal-backdrop {
  background: rgba(3, 5, 8, 0.82);
}

.payment-modal {
  padding: 26px;
}

.payment-modal h2 {
  font-size: 34px;
}

.modal-kicker {
  color: var(--v2-green);
}

.upgrade-prime-card,
.upgrade-prime-inline,
.account-notice,
.safe-hint,
.modal-tip {
  border-radius: 7px;
}

@media (max-width: 900px) {
  h1,
  .gateway-head h1,
  .account-head h1,
  .account-page > .section-head h1,
  .compact-head h1,
  .page > .section-head h1 {
    font-size: 38px;
  }

  .account-head {
    grid-template-columns: 1fr;
  }

  .account-head-id {
    width: min(100%, 340px);
  }

  .gateway-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 36px 36px, 36px 36px, auto;
    opacity: 0.62;
  }

  body::after {
    box-shadow:
      inset 110px 100px 190px rgba(14, 112, 255, 0.095),
      inset -90px -80px 210px rgba(39, 91, 220, 0.065);
  }

  main::before,
  main::after {
    width: 430px;
    height: 110px;
    opacity: 0.75;
    filter: blur(14px);
  }

  main::before {
    top: 120px;
    left: -250px;
  }

  main::after {
    right: -270px;
    bottom: 10vh;
  }

  .site-header,
  .home-gateway,
  .page,
  .hero,
  .scenario,
  .availability-section,
  .faq-dark,
  .blue-cta.small {
    width: calc(100% - 24px);
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 0;
  }

  .brand {
    font-size: 15px;
  }

  .logo-frame,
  .mark {
    width: 29px;
    height: 29px;
  }

  .header-actions .button {
    width: auto;
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .header-actions .button.ghost {
    display: inline-flex;
  }

  .header-actions {
    display: flex;
    width: auto;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .home-gateway,
  .account-page,
  .light-page {
    padding-top: 26px;
    padding-bottom: 34px;
  }

  h1,
  .gateway-head h1,
  .account-head h1,
  .account-page > .section-head h1,
  .compact-head h1,
  .page > .section-head h1 {
    font-size: 30px;
    line-height: 1.06;
  }

  .gateway-head,
  .section-head,
  .compact-head {
    gap: 8px;
    margin-bottom: 16px;
  }

  .gateway-head p,
  .section-head p,
  .account-head p {
    font-size: 13px;
    line-height: 1.45;
  }

  .gateway-grid,
  .account-grid,
  .account-grid.lower-grid {
    gap: 10px;
  }

  .gateway-card,
  .account-panel,
  .lookup-card,
  .panel,
  .card,
  .scenario-card,
  .preview-card,
  .availability-grid article,
  .plan-tariff-group {
    padding: 15px;
  }

  .gateway-card {
    min-height: 0;
    gap: 13px;
  }

  .gateway-card h2,
  .account-panel-top h2,
  .compact-panel h2,
  .operations-panel summary strong {
    font-size: 21px;
  }

  .gateway-card p,
  .account-panel-top p,
  .compact-panel p {
    font-size: 12px;
    line-height: 1.4;
  }

  .gateway-card-top strong {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .gateway-benefits {
    margin-top: 10px;
  }

  .gateway-benefits > div {
    padding: 12px 14px;
  }

  .gateway-support {
    margin-top: 14px;
  }

  input,
  textarea,
  select {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .button,
  button,
  .gateway-button-row .button,
  .gateway-button-row button {
    min-height: 44px;
    font-size: 13px;
  }

  .gateway-button-row {
    grid-template-columns: 1fr;
  }

  .account-head {
    gap: 12px;
  }

  .account-head-id {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    padding: 12px;
  }

  .account-head-id span {
    grid-column: 1;
  }

  .account-head-id strong {
    grid-column: 1;
    font-size: 18px;
  }

  .account-id-value {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .account-id-value strong {
    grid-column: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-id-copy {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .account-head-id .logout-button {
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
    min-height: 36px;
    margin: 0;
  }

  .account-shortcuts {
    margin-top: -5px;
    margin-bottom: 10px;
  }

  .account-panel-top {
    align-items: flex-start;
  }

  .access-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .access-date span {
    font-size: 17px;
  }

  .access-date strong {
    font-size: 30px;
  }

  .access-meta span {
    min-height: 27px;
    padding: 0 8px;
    font-size: 10px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-latest {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .latest-order-actions {
    grid-template-columns: 1fr;
  }

  .account-plan-tariffs,
  .plan-tariffs {
    grid-template-columns: 1fr;
  }

  .account-plan-selector {
    grid-template-columns: 1fr;
  }

  .account-plan-option {
    padding: 11px 12px;
  }

  .account-plan-option strong {
    font-size: 17px;
  }

  .account-period-head {
    display: grid;
    gap: 2px;
  }

  .account-period-head span {
    font-size: 11px;
    text-align: left;
  }

  .account-plan-group {
    padding: 13px;
  }

  .account-plan-head {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px 9px;
  }

  .account-plan-head > strong {
    grid-column: 2;
    justify-self: start;
  }

  .account-plan-head h3,
  .plan-tariff-head h2,
  .plan-tariff-head h3 {
    font-size: 19px;
  }

  .account-tariff-grid,
  .account-plan-group .account-tariff-grid,
  .plan-tariff-group .tariffs {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tariff,
  .account-tariff-card,
  .account-plan-group .account-tariff-card,
  .plan-tariff-group .tariff {
    min-height: 66px;
    padding: 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
  }

  .account-tariff-card h2,
  .plan-tariff-group .tariff h2 {
    font-size: 17px;
  }

  .account-tariff-card .price,
  .plan-tariff-group .tariff .price {
    justify-self: end;
    font-size: 22px;
  }

  .tag {
    position: static;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .account-tariff-card .save,
  .plan-tariff-group .tariff .save {
    grid-column: 1;
  }

  .devices-panel .account-panel-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .device-limit-badge {
    justify-self: end;
    min-width: max-content;
  }

  .device-item,
  .order-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 11px;
  }

  .device-item form,
  .device-item .button {
    width: 100%;
  }

  .operations-panel summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .operations-panel summary em {
    min-width: max-content;
  }

  .order-item .copy-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .copy-row:not(.small),
  .subscription-copy {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .copy-row:not(.small) .copy-button,
  .subscription-copy .copy-button {
    width: auto;
    min-width: 108px;
  }

  .copy-row.small .copy-button.icon-only {
    width: 42px;
    min-width: 42px;
  }

  .payment-modal {
    padding: 18px;
  }

  .payment-modal h2 {
    font-size: 27px;
  }
}

@media (max-width: 360px) {
  .site-header,
  .home-gateway,
  .page {
    width: calc(100% - 18px);
  }

  .brand > span:last-child {
    display: none;
  }

  .header-actions .button {
    padding: 0 8px;
  }

  h1,
  .gateway-head h1,
  .account-head h1,
  .account-page > .section-head h1,
  .page > .section-head h1 {
    font-size: 27px;
  }

  .devices-panel .account-panel-top {
    grid-template-columns: 1fr;
  }

  .device-limit-badge {
    justify-self: start;
  }
}
