.backstage-theme {
  --backstage-primary: #edf000;
  --backstage-background: #f3f4f1;
  --backstage-surface: #ffffff;
  --backstage-text: #141414;
  --backstage-muted: #5f6368;
  --backstage-dark: #000000;
  --backstage-success: #22a06b;
  --backstage-line: rgba(0, 0, 0, 0.12);
  --backstage-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --backstage-field-height: 44px;
  --backstage-field-padding: 8px 12px;
  --backstage-heading-font: "Oswald", Impact, sans-serif;
}

.backstage-theme *,
.backstage-theme *::before,
.backstage-theme *::after {
  box-sizing: border-box;
}

.backstage-theme [hidden] {
  display: none !important;
}

body.backstage-theme {
  margin: 0;
  background: var(--backstage-background);
  color: var(--backstage-text);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.backstage-theme a {
  color: inherit;
  text-decoration: none;
}

.backstage-theme img {
  display: block;
  max-width: 100%;
}

.backstage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 42px;
  padding: 0.55em 1.2em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.backstage-button-primary {
  background: var(--backstage-primary);
  color: var(--backstage-dark);
}

.backstage-button-dark {
  background: var(--backstage-dark);
  color: var(--backstage-surface);
}

.backstage-button-google {
  background: var(--backstage-surface);
  color: var(--backstage-dark);
}

.backstage-button-apple {
  background: var(--backstage-dark);
  color: var(--backstage-surface);
}

.backstage-theme .backstage-button:is(:disabled, :disabled:hover, :disabled:focus-visible) {
  background: var(--backstage-background);
  color: var(--backstage-muted);
  cursor: not-allowed;
}

.backstage-button-google img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.backstage-button span:last-child {
  min-width: 0;
  text-align: center;
}

.backstage-button-icon-apple,
.backstage-account-identity-apple,
.backstage-account-identity-email {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--backstage-identity-icon-url) center / contain no-repeat;
  mask: var(--backstage-identity-icon-url) center / contain no-repeat;
}

.backstage-login-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  margin: 28px auto;
  color: var(--backstage-muted);
  font-size: 0.82rem;
  text-align: center;
  text-transform: uppercase;
}

.backstage-login-separator::before,
.backstage-login-separator::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.backstage-login-methods {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  margin: 32px auto 0;
}

.backstage-login-methods .backstage-button {
  width: 100%;
}

.backstage-login-methods .backstage-button-google,
.backstage-login-methods .backstage-button-google:visited {
  background: #ffffff;
  color: #1f1f1f;
}

.backstage-login-methods .backstage-button-apple,
.backstage-login-methods .backstage-button-apple:visited {
  background: #000000;
  color: #ffffff;
}

.backstage-login-methods .backstage-button span:last-child {
  color: inherit;
}

.backstage-standalone-content > .backstage-form {
  width: min(420px, 100%);
  margin-inline: auto;
}

.backstage-login-separator + .backstage-form {
  margin-top: 0;
}

.backstage-form-error {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--backstage-primary);
  background: rgba(237, 240, 0, 0.12);
  color: var(--backstage-text);
}

.backstage-form-success {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--backstage-success);
  background: rgba(34, 160, 107, 0.12);
  color: var(--backstage-text);
}

.backstage-theme input,
.backstage-theme textarea,
.backstage-theme select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--backstage-field-height);
  padding: var(--backstage-field-padding);
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  background: var(--backstage-surface);
  color: var(--backstage-dark);
  font: inherit;
}

.backstage-theme input[type="file"] {
  color: var(--backstage-muted);
  font-weight: 400;
  line-height: calc(var(--backstage-field-height) - 2px);
  padding: 0 12px 0 0;
}

.backstage-theme input[type="file"]::file-selector-button {
  height: calc(var(--backstage-field-height) - 2px);
  margin: 0 12px 0 0;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  color: var(--backstage-muted);
  font: inherit;
  font-weight: 400;
}

.backstage-theme input::placeholder,
.backstage-theme textarea::placeholder {
  color: var(--backstage-muted);
  font-weight: 400;
  opacity: 1;
}

.backstage-theme input:not([type="checkbox"]):focus,
.backstage-theme textarea:focus,
.backstage-theme select:focus {
  border-color: var(--backstage-dark);
  outline: 4px solid rgba(237, 240, 0, 0.78);
  outline-offset: 2px;
}

.backstage-standalone-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 20px;
  background: var(--backstage-dark);
  color: var(--backstage-surface);
}

.backstage-standalone-page .backstage-form-error {
  color: var(--backstage-surface);
}

.backstage-standalone-content {
  width: min(760px, 100%);
}

.backstage-standalone-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.backstage-standalone-heading img {
  flex: 0 0 auto;
  width: auto;
  max-width: 34%;
  max-height: 88px;
}

.backstage-standalone-heading h1 {
  min-width: 0;
}

.backstage-standalone-content h1,
.backstage-section h1,
.backstage-section h2,
.backstage-section h3 {
  margin: 0;
  font-family: var(--backstage-heading-font);
  line-height: 0.95;
  text-transform: uppercase;
}

.backstage-standalone-content h1,
.backstage-section h1,
.backstage-section h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.backstage-section h1 {
  font-size: 3rem;
}

.backstage-section h2 {
  font-size: 2.25rem;
}

.backstage-standalone-content h1 {
  color: var(--backstage-primary);
}

.backstage-standalone-content p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

.backstage-standalone-page .backstage-standalone-content {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.72);
}

:is(.backstage-form, .backstage-add-form, .backstage-inline-form, .backstage-settings-form, .backstage-line-form) {
  display: grid;
}

.backstage-form {
  gap: 18px;
  margin-top: 28px;
}

.backstage-add-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 18px;
}

.backstage-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.backstage-settings-form {
  --backstage-settings-text-width: 28rem;
  --backstage-settings-compact-width: 8.5rem;
  grid-template-columns: max-content var(--backstage-settings-text-width);
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.backstage-line-form {
  gap: 12px;
}

:is(.backstage-form, .backstage-add-form, .backstage-inline-form, .backstage-settings-form, .backstage-line-form) label,
.backstage-line-form .backstage-line-row {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.backstage-settings-form label {
  display: contents;
}

.backstage-settings-form :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%;
}

.backstage-settings-form input:is([type="number"], [type="time"]) {
  width: var(--backstage-settings-compact-width);
}

.backstage-line-form :is(label, .backstage-line-row) {
  grid-template-columns: minmax(8.5rem, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

:is(.backstage-form, .backstage-add-form, .backstage-inline-form, .backstage-settings-form, .backstage-line-form) span {
  color: var(--backstage-muted);
  text-transform: uppercase;
}

.backstage-add-form > button[type="submit"] {
  align-self: end;
  justify-self: end;
  min-height: var(--backstage-field-height);
}

.backstage-inline-form > button[type="submit"] {
  align-self: end;
}

.backstage-line-form > button[type="submit"] {
  justify-self: end;
}

.backstage-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.backstage-action-row > form {
  display: contents;
}

.backstage-list + .backstage-add-form {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--backstage-line);
}

.backstage-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.backstage-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--backstage-dark);
  color: var(--backstage-surface);
}

.backstage-dashboard {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 52px);
  background: var(--backstage-background);
  color: var(--backstage-text);
}

.backstage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.backstage-topbar img {
  width: auto;
  max-height: 42px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.backstage-brand-text {
  display: inline-flex;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.backstage-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--backstage-dark);
  cursor: pointer;
}

.backstage-menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--backstage-surface);
}

.backstage-menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.backstage-menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.backstage-topbar-extra {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.backstage-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
}

.backstage-nav {
  display: contents;
  text-transform: uppercase;
}

.backstage-nav a {
  border-bottom: 3px solid transparent;
}

.backstage-nav a[aria-current="page"] {
  border-color: var(--backstage-primary);
}

.backstage-topbar-actions > form {
  display: flex;
  padding-left: 18px;
  border-left: 1px solid var(--backstage-line);
}

.backstage-topbar-actions > form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--backstage-muted);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.backstage-topbar-actions > form button:hover,
.backstage-topbar-actions > form button:focus-visible {
  color: var(--backstage-dark);
}

.backstage-section {
  display: grid;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--backstage-line);
  background: var(--backstage-surface);
  box-shadow: var(--backstage-shadow);
}

.backstage-section > :is(.backstage-form-error, .backstage-form-success, .backstage-section-intro) {
  margin: 0;
}

.backstage-notification-url {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.backstage-notification-url a {
  text-decoration: underline;
}

.backstage-notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.backstage-list {
  display: grid;
  gap: 14px;
}

.backstage-list[data-backstage-account-list] {
  gap: 8px;
}

.backstage-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: var(--backstage-background);
}

.backstage-list-link {
  color: inherit;
}

.backstage-list-link:focus-visible {
  outline: 4px solid rgba(237, 240, 0, 0.78);
  outline-offset: 2px;
}

.backstage-account-list-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px 14px;
  padding: 6px 12px;
}

.backstage-account-card {
  width: 100%;
  min-width: 0;
}

.backstage-account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.backstage-account-summary::-webkit-details-marker {
  display: none;
}

.backstage-account-card[open] > .backstage-account-summary {
  display: none;
}

.backstage-account-summary-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.backstage-account-summary-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.backstage-account-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--backstage-primary);
  color: var(--backstage-dark);
  font-size: 0.78rem;
  line-height: 1;
}

.backstage-account-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
}

.backstage-account-filters {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.backstage-account-search {
  display: inline-grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
}

.backstage-account-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.backstage-account-filter-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.backstage-account-filter-options input {
  width: 18px;
  height: 18px;
}

.backstage-account-auth-groups {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.backstage-account-module-details {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
}

.backstage-account-profile-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.backstage-account-profile-row .backstage-account-module-details {
  flex: 1;
}

.backstage-account-photo-form {
  flex: 0 0 auto;
  margin: 0;
}

.backstage-account-photo-form .backstage-prefs-photo-preview {
  display: block;
  max-width: 64px;
  max-height: 64px;
}

.backstage-account-photo-form [hidden] {
  display: none;
}

.backstage-account-detail-group,
.backstage-account-detail-group > button {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
  max-width: 100%;
}

.backstage-account-detail-group > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.backstage-account-auth-group {
  display: grid;
  gap: 8px;
}

.backstage-account-auth-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.backstage-account-auth-item {
  max-width: 100%;
}

.backstage-account-auth-item > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.backstage-account-auth-item > button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.backstage-account-name-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.backstage-account-identity-icon {
  display: block;
  flex: 0 0 auto;
}

.backstage-account-browser-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.backstage-account-badge-slot {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.backstage-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: var(--backstage-primary);
  color: var(--backstage-dark);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
}

button.backstage-account-badge {
  cursor: pointer;
}

.backstage-popover {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.backstage-popover-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: none;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(360px, calc(100vh - 80px));
  padding: 12px;
  border: 1px solid var(--backstage-line);
  background: var(--backstage-surface);
  color: var(--backstage-muted);
  box-shadow: var(--backstage-shadow);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
  overflow: auto;
  overflow-wrap: anywhere;
}

.backstage-popover[data-popover-open] > .backstage-popover-panel {
  display: grid;
  gap: 8px;
}

.backstage-popover-list {
  margin: 0;
  padding-left: 18px;
}

.backstage-account-identity-google {
  width: 18px;
  height: 18px;
}

.backstage-account-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.backstage-account-identity > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.backstage-account-identity-apple {
  color: currentColor;
}

.backstage-account-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px 18px;
}

.backstage-account-details {
  grid-column: 1;
  min-width: 0;
}

.backstage-account-detail-line {
  display: inline-flex;
  gap: 6px;
}

.backstage-account-detail-line span::after {
  content: ":";
}

.backstage-account-detail-line strong {
  color: var(--backstage-dark);
  font-weight: 600;
}

.backstage-account-actions {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.backstage-account-actions form,
.backstage-account-actions button {
  width: auto;
}

.backstage-account-add-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.backstage-account-add-admin {
  display: grid;
  gap: 8px;
}

.backstage-account-add-admin > .backstage-check-label {
  min-height: var(--backstage-field-height);
}

.backstage-account-add-actions > button[type="submit"] {
  min-height: var(--backstage-field-height);
}

.backstage-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  cursor: pointer;
}

.backstage-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.backstage-toggle-ui {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--backstage-dark);
  font-size: 0.78rem;
  line-height: 1;
  transition: background 0.16s ease;
}

.backstage-toggle-ui::before {
  content: attr(data-off);
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.backstage-toggle-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--backstage-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease;
}

.backstage-check-label input[type="checkbox"]:checked + .backstage-toggle-ui {
  background: var(--backstage-primary);
}

.backstage-check-label input[type="checkbox"]:checked + .backstage-toggle-ui::before {
  content: attr(data-on);
  right: auto;
  left: 10px;
}

.backstage-check-label input[type="checkbox"]:checked + .backstage-toggle-ui::after {
  transform: translateX(54px);
}

.backstage-check-label input[type="checkbox"]:focus-visible + .backstage-toggle-ui {
  outline: 4px solid rgba(237, 240, 0, 0.78);
  outline-offset: 2px;
}

.backstage-list h2,
.backstage-list h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.backstage-list p {
  margin: 6px 0 0;
  color: var(--backstage-muted);
  font-size: 0.95rem;
}

.backstage-section-intro {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--backstage-muted);
}

.backstage-prefs-form,
.backstage-prefs-email-form {
  width: min(640px, 100%);
  margin: 0 auto;
}

.backstage-prefs-photo-form {
  margin-top: 12px;
}

.backstage-prefs-photo {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}

.backstage-prefs-photo-preview {
  width: auto;
  height: auto;
  max-width: min(100%, 128px);
  max-height: 128px;
}

.backstage-button.backstage-icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.backstage-icon-button img {
  width: 24px;
  height: 24px;
}

.backstage-image-dialog {
  width: fit-content;
  max-width: min(92vw, 640px);
  max-height: 90vh;
  padding: 12px;
  border: 1px solid var(--backstage-line);
  border-radius: 8px;
  background: var(--backstage-surface);
  overflow-y: auto;
}

.backstage-image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.backstage-image-dialog > img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: auto;
  object-fit: contain;
}

.backstage-image-dialog > .backstage-action-row {
  justify-content: flex-end;
}

.backstage-image-delete {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.backstage-trash-icon {
  width: 24px;
  height: 24px;
  background: #e1392d;
  mask: url("trash.svg") center / contain no-repeat;
}

.backstage-prefs-group {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.backstage-prefs-content {
  display: grid;
  gap: 16px;
  width: min(640px, 100%);
  margin: 0 auto;
}

.backstage-prefs-add-content {
  gap: 32px;
}

.backstage-prefs-method {
  display: grid;
  justify-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--backstage-line);
}

.backstage-prefs-method > .backstage-button {
  width: min(420px, 100%);
}

.backstage-prefs-group h2 {
  font-size: 2rem;
}

.backstage-identity-list {
  display: grid;
  justify-items: center;
  gap: 12px 22px;
  min-width: 0;
}

.backstage-identity-list .backstage-account-identity::before {
  display: none;
}

.backstage-prefs-group .backstage-login-separator {
  width: 100%;
  margin: 8px 0;
}

@media (max-width: 760px) {
  body.backstage-theme {
    background: var(--backstage-surface);
  }

  .backstage-dashboard {
    min-height: auto;
    background: var(--backstage-background);
    padding: 0;
  }

  .backstage-section {
    border: 0;
    box-shadow: none;
    padding: 20px 8px 8px;
    margin-bottom: 32px;
  }

  .backstage-section:last-child {
    margin-bottom: 0;
  }

  .backstage-topbar {
    flex-wrap: wrap;
    position: relative;
    padding: 8px;
    margin-bottom: 0;
    background: var(--backstage-surface);
  }

  .backstage-list-row,
  .backstage-section-head {
    display: grid;
    justify-items: start;
  }

  .backstage-menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .backstage-topbar-extra {
    display: flex;
  }

  .backstage-topbar.has-topbar-extra > a:first-child {
    display: none;
  }

  .backstage-topbar.has-topbar-extra .backstage-topbar-extra {
    justify-content: flex-start;
  }

  .backstage-topbar-actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 20;
    width: min(300px, calc(100vw - 16px));
    padding: 18px;
    border: 1px solid var(--backstage-line);
    background: var(--backstage-surface);
    box-shadow: var(--backstage-shadow);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }

  .backstage-topbar[data-menu-open] .backstage-topbar-actions {
    display: flex;
  }

  .backstage-nav a {
    padding: 5px 10px;
    border-left: 4px solid transparent;
    border-bottom: 0;
    text-align: left;
  }

  .backstage-nav a[aria-current="page"] {
    border-left-color: var(--backstage-primary);
    background: var(--backstage-background);
  }

  .backstage-topbar-actions > form {
    justify-content: flex-end;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid var(--backstage-line);
    border-left: 0;
  }

  .backstage-account-list-row {
    grid-template-columns: 1fr;
  }

  .backstage-account-summary {
    grid-template-columns: 1fr auto;
  }

  .backstage-account-summary-badges {
    grid-column: 2;
    align-self: center;
    justify-self: end;
  }

  .backstage-account-filter-options {
    gap: 8px 14px;
  }

  .backstage-account-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .backstage-account-auth-items {
    display: grid;
    gap: 8px;
  }

  .backstage-account-row {
    grid-template-columns: 1fr auto;
  }

  .backstage-account-name-field {
    grid-column: 1 / -1;
  }

  .backstage-account-row > .backstage-account-badge-slot {
    grid-column: 1;
    align-self: center;
    justify-self: start;
  }

  .backstage-account-row > .backstage-check-label {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    width: max-content;
  }

  .backstage-account-details,
  .backstage-account-actions {
    grid-column: 1 / -1;
  }

  .backstage-account-actions {
    justify-content: flex-end;
  }

  .backstage-account-expanded {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .backstage-add-form,
  .backstage-inline-form,
  .backstage-settings-form {
    grid-template-columns: 1fr;
  }

  .backstage-line-form :is(label, .backstage-line-row) {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .backstage-line-form.backstage-prefs-form > :is(label, .backstage-line-row) {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .backstage-add-form .backstage-check-label {
    align-items: center;
  }

  .backstage-account-add-form > label {
    grid-column: 1 / -1;
  }

  .backstage-account-add-actions {
    align-items: center;
  }

  .backstage-settings-form,
  .backstage-settings-form :is(input:not([type="checkbox"]), textarea, select) {
    width: 100%;
  }

  .backstage-notification-actions {
    display: grid;
  }

  .backstage-notification-actions :is(a, form, button) {
    width: 100%;
  }

  .backstage-inline-form > button[type="submit"] {
    justify-self: start;
  }

  .backstage-list form,
  .backstage-list button {
    width: 100%;
  }

  .backstage-account-actions form,
  .backstage-account-actions button {
    width: auto;
  }

  .backstage-action-row {
    justify-content: flex-start;
  }

  .backstage-action-row > form,
  .backstage-action-row > a,
  .backstage-action-row > button,
  .backstage-action-row > form > button {
    width: auto;
  }

  .backstage-standalone-heading {
    gap: 14px;
  }

  .backstage-standalone-heading img {
    max-width: 30%;
    max-height: 58px;
  }

  .backstage-section h1 {
    font-size: 1.85rem;
  }

  .backstage-section h2 {
    font-size: 1.55rem;
  }
}
