.account-slot {
  position: relative;
}
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.account-layer,
.account-branch-label,
.account-hint {
  color: var(--muted);
}
.account-layer,
.account-branch-label {
  margin: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}
.account-branch-label,
.account-branch button,
.account-hint {
  margin-left: 16px;
}
.account-hint {
  margin: 0 8px 6px 16px;
  font-size: 13px;
}
.account-section {
  margin-top: 8px;
}
.account-section[data-account-step="connect"] {
  margin-top: 0;
}
[data-setup-flow] > .onb-steps {
  margin: 0 0 8px;
}
[data-setup-flow] > .account-section {
  margin-top: 0;
}
[data-setup-flow] > .account-section > h2,
.account-section[data-account-step="connect"] > h2,
.account-section[data-account-view="external"] > h2,
.account-section[data-account-view="external-detail"] > h2,
.account-section[data-account-view="external-wizard"] > .onb-wizard > h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.account-section[data-account-step="connect"] .onb-steps,
.account-section[data-account-view="external"] .onb-steps,
.account-section[data-account-view="external-list"] .onb-steps,
.account-section[data-account-view="external-detail"] .onb-steps,
.account-section[data-account-view="external-usage"] .onb-steps,
.account-section[data-manage-connection] .onb-steps {
  display: none;
}
.account-section[data-account-view="external"],
.account-section[data-account-view="external-detail"] {
  margin-top: 0;
}
.account-section[data-account-view="external-wizard"] {
  margin-top: 0;
}
.host-sticky:has(+ .shell-body [data-account-view="external-wizard"]) {
  padding-bottom: 4px;
}
.host-sticky:has(+ .shell-body [data-account-view="external-wizard"]) .host-toolbar {
  margin-bottom: 8px;
}
.account-section[data-account-view="external-wizard"] > .onb-wizard {
  margin-top: 0;
}
.account-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.account-manage-actions button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}
.account-manage-actions button.is-on {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.account-manage-actions button:disabled,
.account-section button[data-ask-revert]:disabled {
  opacity: 0.45;
  cursor: default;
}
.account-version-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  max-width: 100%;
}
.account-version-search input {
  width: 8.5rem;
  max-width: 100%;
}
.account-revert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  max-width: 100%;
}
.account-revert-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 4px;
}
.account-id {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.account-key-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(100%, 28rem);
  max-width: 100%;
  margin: 8px 0;
}
.account-section .account-key-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.account-key-form input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.account-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}
.account-key-row p {
  margin: 0;
}
.account-bar,
.account-status,
.account-choices,
.account-list,
.account-connection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.account-bar [data-version-name-field] {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
}
.account-bar [data-version-name] {
  flex: 1 1 8rem;
  width: 12rem;
  max-width: 100%;
}
.account-bar [data-version-name-hint] {
  flex-basis: 100%;
  margin-left: 0;
}
.account-section button {
  max-width: 100%;
}
.account-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.account-dot[data-status-dot="connected"],
.account-dot[data-status-dot="active"] {
  background: #2f8f4e;
}
.account-dot[data-status-dot="down"],
.account-dot[data-status-dot="attention"] {
  background: #c4372f;
}
.account-dot[data-status-dot="paused"] {
  background: #d89a1a;
}
.account-dot[data-status-dot="stopped"] {
  background: #8a8a8a;
}
.account-separate {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-warn {
  color: var(--clay);
  font-weight: 600;
}
.account-section,
.account-section > * {
  min-width: 0;
  max-width: 100%;
}
.account-section label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.account-section input,
.account-section select {
  max-width: 100%;
  min-width: 0;
}
.account-connection {
  max-width: 100%;
}
.account-connection button {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.account-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.account-section table {
  width: 100%;
}
.account-revert-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  max-width: 100%;
}
.account-revert-list label {
  align-items: flex-start;
}
.account-section [role="dialog"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}
.account-section [role="dialog"][hidden] {
  display: none;
}
.account-section [role="dialog"] p,
.account-section [role="dialog"] .account-revert-list {
  flex-basis: 100%;
}
.account-menu-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.account-menu-row > button {
  flex: 1;
}
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.account-menu button:hover,
.account-menu button.is-on {
  background: var(--chip-on);
}
.account-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
[data-account-view="language"] .btn.ghost.is-on {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.account-import-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.account-import-card {
  margin-top: 12px;
}
.account-import-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.account-import-drop {
  margin: 0 0 12px;
  padding: 18px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: transparent;
  text-align: center;
  cursor: pointer;
}
.account-import-drop p {
  margin: 0;
}
.account-import-drop .account-hint {
  margin: 6px 0 0;
}
.account-import-drop.is-over {
  background: var(--chip-on);
  border-color: var(--ink);
}

[data-setup-flow]:has([data-journey]) > .onb-steps {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cnx {
  max-width: none;
  margin: 0 0 24px;
}

.cnx-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}

.account-connection,
[data-account-view="external-detail"] .cnx-card,
[data-account-view="external-usage"] .cnx-card {
  background: var(--cal-head);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 4px 0 0 var(--house, var(--line));
}

.account-connection {
  flex: 1 1 100%;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 14px;
  padding: 8px 10px;
}
.account-connection .cnx-head {
  margin: 0;
  flex: 0 1 auto;
  align-items: center;
}
.account-connection .cnx-button,
.account-connection [data-open-connection] {
  min-height: 32px;
  padding: 4px 12px;
  white-space: nowrap;
}

[data-account-view="external"] > .cnx-card {
  background: var(--cal-head);
  border-radius: 16px;
  box-shadow: inset 4px 0 0 var(--house, var(--line));
}

.cnx-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
}

.cnx-home-tile {
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.cnx-connection {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 12px;
}

.cnx-connection .cnx-head {
  margin: 0;
}

.cnx-connection [data-open-connection] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.cnx-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

[data-account-view="external"] > .cnx-card > .page-title,
.cnx .page-title {
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

[data-account-view="external"] > .cnx-card > .section-title button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.cnx-card h2,
.cnx-card h2.section-title,
.cnx-card h3,
.cnx .sub-title {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cnx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 12px;
}

.cnx-head .section-title,
.cnx-head h2 {
  margin: 0;
}

.cnx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  background: var(--cal-head);
  color: var(--ink);
}

.cnx-badge[data-status-badge="active"] {
  color: #1f7a3a;
  background: #e7f6ec;
}

.cnx-badge[data-status-badge="paused"] {
  color: #8a5a00;
  background: #fff4d6;
}

.cnx-badge[data-status-badge="stopped"] {
  color: var(--muted);
  background: var(--cal-head);
}

.cnx-badge[data-status-badge="attention"] {
  color: #8d3a32;
  background: #f8e8e6;
}

.cnx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cnx-help {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.cnx-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.cnx-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cnx-bars {
  display: flex;
  gap: 6px;
}

.cnx-bars span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.cnx-bars span.is-done {
  background: var(--good);
}

.cnx-bars span.is-on {
  background: var(--ink);
}

.cnx-labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.cnx-labels span {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.cnx-labels span.is-on,
.cnx-labels span.is-done {
  color: var(--ink);
}

.cnx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.cnx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 108px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  cursor: pointer;
}

.cnx-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cnx-tile.is-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--chip-on);
}

.cnx-tile.is-soon {
  cursor: default;
}

.cnx-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cal-head);
  color: var(--ink);
  font-weight: 700;
}

.cnx-tile-name {
  font-weight: 600;
  line-height: 1.2;
}

.cnx-soon {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cnx-search-label,
.cnx-request,
.cnx .account-key-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 12px;
  font-weight: 600;
}

.cnx input[type="search"],
.cnx input[type="text"],
.cnx input[type="password"],
.cnx input[type="url"],
.cnx input[type="date"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: var(--card);
  color: var(--ink);
}

.cnx input::placeholder {
  color: var(--muted);
}

.cnx-access,
.cnx-choices {
  display: grid;
  gap: 8px;
  margin: 8px 0 4px;
}

.cnx-guide .cnx-access {
  margin-top: 0;
}

.cnx-guide .cnx-access > p:first-child {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
}

.cnx label.cnx-access-card {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

.cnx-access-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.cnx-access-line input[type="radio"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.cnx-access-line strong {
  display: inline;
}

.cnx-access-card,
.cnx-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.cnx-access-card.is-on,
.cnx-choice.is-on,
.cnx-choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.cnx-access-card.is-off {
  opacity: 0.72;
}

.cnx-access-card strong,
.cnx-choice strong {
  display: block;
}

.cnx-access-copy {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.cnx-access .cnx-access-copy {
  color: var(--muted);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.cnx-access-card .cnx-access-copy,
.cnx-access-card .cnx-scopes,
.cnx-access-card .cnx-scopes li {
  text-align: left;
}

button.cnx-choice {
  width: 100%;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.cnx-scopes,
.cnx-guide .cnx-scopes {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.cnx-scopes li,
.cnx-guide .cnx-scopes li {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cnx-guide .cnx-scopes li::marker {
  content: "";
}

.cnx-scopes .account-hint {
  margin-left: 8px;
}

.cnx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--cal-head);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cnx-chip.is-good {
  background: var(--need-ok);
  color: var(--good);
}

.cnx-chip.is-wait {
  background: var(--need-over);
  color: var(--act-wait);
}

.cnx-guide {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cnx-guide li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cnx-step {
  flex: 1;
  min-width: 0;
}

.cnx-pace {
  display: grid;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 0;
  border: 0;
}

.cnx-pace legend {
  margin-bottom: 4px;
  font-weight: 600;
}

.cnx .cnx-pace label,
.cnx label.cnx-pace-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cnx label.cnx-pace-line input[type="radio"] {
  flex: 0 0 auto;
  width: auto;
  margin: 3px 0 0;
}

.cnx .account-hint {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.cnx [data-connections-empty],
.cnx [data-connector-key] {
  margin: 0 0 8px;
  margin-left: 0;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.cnx [data-usage-panel] > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.cnx .account-manage-actions button,
.cnx .onb-step,
[data-setup-flow] .onb-step,
[data-account-view="external-wizard"] .onb-step {
  border-radius: 16px;
}
.cnx .account-manage-actions button {
  flex: 1 1 9.5rem;
  text-align: center;
}

.cnx .account-separate {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cnx-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--card);
  font-size: 13px;
  font-weight: 700;
}

.cnx-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.cnx-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--card);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.cnx-primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.cnx-text {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}

.cnx .account-hint,
.cnx .account-warn {
  margin-left: 0;
}

.cnx-properties {
  display: grid;
  gap: 10px;
}

.cnx-property {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.cnx-property.is-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.cnx-photo {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cal-head);
}

.cnx-photo-empty {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cnx-property-name {
  display: block;
  font-weight: 600;
}

.cnx-property-rooms {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cnx-property input {
  width: 1.25rem;
  height: 1.25rem;
}

.cnx-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 4px 0 10px;
}

.cnx-meter span {
  display: block;
  height: 100%;
  background: var(--good);
}

.cnx-meter.is-wait span {
  width: 40%;
  animation: cnx-slide 1.4s ease-in-out infinite;
}

@keyframes cnx-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

.cnx-tick {
  width: 76px;
  height: 76px;
  margin: 4px auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--need-ok);
  color: var(--good);
  font-size: 40px;
  line-height: 1;
}

.cnx-summary {
  margin: 8px 0 0;
  padding-left: 18px;
}

.cnx-person {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

@media (max-width: 640px) {
  .account-menu {
    right: auto;
    left: 0;
  }
  .account-version-search {
    flex-direction: column;
    align-items: stretch;
  }
  .account-version-search input,
  .account-version-search button,
  .account-manage-actions button {
    width: 100%;
  }
  .cnx {
    max-width: 640px;
    margin: 12px auto 24px;
  }
  .account-import-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-import-actions button {
    width: 100%;
  }
  .account-import-card label {
    flex-direction: column;
    align-items: stretch;
  }
  [data-account-view="import"] > .card.start-today,
  [data-account-view="import"] > .cal-board {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .cnx-card {
    padding: 20px 16px 16px;
    border-radius: 22px;
  }
  .cnx .account-manage-actions button {
    flex-basis: 100%;
  }
  [data-backup-restore],
  [data-backup-confirm],
  [data-backup-cancel] {
    width: 100%;
  }
  .cnx-labels span {
    display: none;
  }
  .cnx-labels span.is-on {
    display: block;
    flex: 1;
    text-align: left;
  }
  .cnx-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .account-menu {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    z-index: 80;
    overflow: auto;
  }
  .account-menu button {
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
