/* IMPORT FONT GOOGLE SANS FLEX & GOOGLE SANS */
/* Google Sans Flex NON è disponibile su Google Fonts: va caricato manualmente se hai i file .woff/.woff2 */
/* Esempio di import manuale (decommenta e inserisci i file nella cartella fonts): */
/*
@font-face {
  font-family: 'Google Sans Flex';
  src: url('/public/fonts/GoogleSansFlex-Regular.woff2') format('woff2'),
       url('/public/fonts/GoogleSansFlex-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* Account-specific styles. Tokens, themes, and base reset: sinapsi-ui.css */

/* CSS estratto da account-summary.ejs */
@media (max-width: 1120px) {
  .panel>.panel-heading h2,
  .panel>h2,
  .security-panel > h2,
  .security-sessions-panel > h2 {
    display: none !important;
  }

  .devices-sections .panel-heading h2 {
    display: block !important;
  }

  .settings-sections .panel-heading h2 {
    display: block !important;
  }
}
@media (max-width: 1120px) {
  .sidebar {
    background: var(--theme-sidebar-bg, transparent) !important;
  }
}
a[href]:not(.app-guide-fab):not(.menu-link):not(.menu-mobile-link):not(.brand-link):not(.profile-menu-item-link):not(.app-launcher-item):not(.security-notice-panel__action):not(.btn-primary):not(.btn-secondary):not(.btn-google):not(.btn-apple):not(.action-btn):not(.row-actions a):not(.spc-console-inline-action):not(.spc-console-json-export-button):not(.api-docs-card__link):not(.developer-guide-index__link):not(.developer-guide-doc__toc a):not(.developer-guide-doc__content a) {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94) !important;
  border: 0px solid rgb(229, 231, 235) !important;
  border-radius: 6px !important;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: var(--theme-body-bg);
  border-bottom: 1px solid var(--theme-border-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
}
.brand {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--theme-text) !important;
}

.brand-sinapsi {
  color: inherit !important;
  font-weight: 800;
}

.brand-account {
  color: inherit !important;
  font-weight: 100;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-profile-hero {
  background: transparent;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.main-data-sections {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.main-data-panel {
  width: 100%;
  min-width: 0;
}

.main-data-panel--profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--theme-surface-elevated);
}

.main-data-dot-grid {
  --main-data-dot-spacing: 16px;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(72, var(--main-data-dot-spacing));
  grid-auto-rows: var(--main-data-dot-spacing);
  place-items: center;
  align-content: start;
  justify-content: start;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  pointer-events: none;
}

.main-data-dot-grid span {
  display: block;
  width: 2px;
  height: 2px;
  min-width: 2px;
  min-height: 2px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-text) 34%, transparent);
  opacity: 0.1;
  animation: main-data-dot-fade var(--dot-duration, 4s) ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
  will-change: opacity;
}

@keyframes main-data-dot-fade {
  0%,
  100% {
    opacity: 0.08;
  }

  50% {
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-data-dot-grid span {
    animation: none;
    opacity: 0.22;
  }
}

.main-data-panel--profile > h2,
.main-data-panel--profile > .main-profile-hero {
  position: relative;
  z-index: 2;
}

.main-data-panel--profile > h2 {
  background: transparent;
}

.main-data-panel--profile > .main-profile-hero {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.main-data-sections__gap {
  height: 18px;
}

.main-data-panel > h2 {
  border-bottom: 1px solid var(--theme-border-soft);
}

.main-profile-avatar {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--theme-surface-muted);
  border: 1px solid var(--theme-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.main-profile-avatar .profile-menu-avatar-image,
.main-profile-avatar .profile-menu-avatar-fallback {
  width: 100%;
  height: 100%;
}

.main-profile-avatar .profile-menu-avatar-fallback {
  font-size: 26px;
  color: var(--theme-link);
}

.main-profile-copy {
  min-width: 0;
}

.main-profile-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--theme-text);
}

.main-profile-secondary {
  margin-top: 4px;
  font-size: 14px;
  color: var(--theme-text-soft);
  word-break: break-word;
}

.main-profile-actions {
  align-self: center;
}

.main-data-quick-links {
  padding: 18px;
  border-top: 1px solid var(--theme-border-soft);
  background: transparent;
}

.main-data-quick-links__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.64);
}

.main-data-quick-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.main-data-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-surface-elevated) 92%, white);
  text-decoration: none;
  color: var(--theme-text) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.main-data-quick-link:hover,
.main-data-quick-link:focus {
  transform: translateY(-1px);
  border-color: var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-surface-muted) 72%, white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.main-data-quick-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
}

.main-data-quick-link__label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.main-data-quick-link--wallet .main-data-quick-link__icon {
  color: #0f766e;
}

.main-data-quick-link--store .main-data-quick-link__icon {
  color: #b45309;
}

.main-data-quick-link--security .main-data-quick-link__icon {
  color: #166534;
}

.main-data-quick-link--devices .main-data-quick-link__icon {
  color: #5b4fcf;
}

.logs-filter-disclosure {
  margin-bottom: 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-surface-elevated) 92%, white);
  overflow: hidden;
}

.logs-filter-disclosure[open] {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.logs-filter-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--theme-text);
  font-weight: 600;
  user-select: none;
}

.logs-filter-toggle::-webkit-details-marker {
  display: none;
}

.logs-filter-toggle .material-symbols-outlined {
  font-size: 20px;
  color: var(--theme-text-soft);
}

.logs-filter-toggle__state {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #1967d2 12%, transparent);
  color: #1967d2;
  font-size: 12px;
  font-weight: 700;
}

.logs-filter-form {
  padding: 0 16px 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--theme-surface-muted);
  border: 1px solid var(--theme-border-soft);
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
  color: var(--theme-text-soft);
  font-size: 14px;
}
.search-box>span {
  display: none;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--theme-text);
}

.search-box input::placeholder {
  color: var(--theme-text-soft);
  opacity: 1;
}
.topbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.security-notice-menu,
.app-launcher,
.profile-menu {
  position: relative;
}
.security-notice-trigger,
.app-launcher-trigger,
.profile-menu-trigger {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border);
  border-radius: 50% !important;
  background: var(--theme-surface);
  color: var(--theme-menu-text);
  cursor: pointer;
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}
.security-notice-trigger {
  position: relative;
  border-color: transparent;
  background: transparent;
  color: #d93025;
}
.security-notice-trigger .material-symbols-outlined {
  font-size: 21px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.security-notice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d93025;
  box-shadow: 0 0 0 2px var(--theme-surface);
}
.app-launcher-trigger {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-launcher-trigger .material-symbols-outlined {
  font-size: 22px;
  color: inherit !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.security-notice-trigger .material-symbols-outlined,
.app-launcher-trigger .material-symbols-outlined,
.profile-menu-trigger .material-symbols-outlined {
  color: inherit !important;
}
.app-launcher-trigger:hover,
.app-launcher-trigger:focus-visible,
.security-notice-trigger:hover,
.security-notice-trigger:focus-visible,
.profile-menu-trigger:hover,
.profile-menu-trigger:focus-visible {
  color: var(--theme-text);
  border-color: var(--theme-border-strong);
  background: var(--theme-link-hover-bg);
  outline: none;
}
.security-notice-trigger:hover,
.security-notice-trigger:focus-visible {
  background: transparent;
  color: #b3261e;
  border-color: transparent;
}
.security-notice-menu--support .security-notice-trigger {
  color: #1967d2;
}
.security-notice-menu--support .security-notice-trigger:hover,
.security-notice-menu--support .security-notice-trigger:focus-visible {
  color: #1957c2;
}
.security-notice-dot--support {
  background: #1967d2;
}
.security-notice-menu--passkey .security-notice-trigger {
  color: #9a6b12;
}
.security-notice-menu--passkey .security-notice-trigger:hover,
.security-notice-menu--passkey .security-notice-trigger:focus-visible {
  color: #735610;
}
.security-notice-dot--passkey {
  background: #9a6b12;
}
.security-notice-panel--passkey {
  border-color: #d4a24c;
}
.security-notice-panel--passkey .security-notice-panel__icon {
  background: #f3e0c0;
  color: #8b6914;
}
.security-notice-panel--passkey .security-notice-panel__action {
  background: #faf3e6;
  color: #735610 !important;
  border-top-color: rgba(154, 107, 18, 0.18) !important;
}

.security-notice-panel--passkey .security-notice-panel__action:hover,
.security-notice-panel--passkey .security-notice-panel__action:focus-visible {
  background: #f3e0c0;
  color: #5c420d !important;
}
.app-launcher-trigger:hover,
.app-launcher-trigger:focus-visible {
  background: transparent;
}
.profile-menu-item-link {
  text-decoration: none;
  color: inherit;
}
.profile-menu-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
.profile-menu-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-surface-muted);
  color: var(--theme-link);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.profile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  display: none;
  padding: 0;
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: var(--theme-surface-elevated);
  z-index: 60;
  overflow: hidden;
}
.app-launcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  display: none;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface-elevated);
  z-index: 60;
  overflow: hidden;
}
.security-notice-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  display: none;
  border: 1px solid rgba(217, 48, 37, 0.18);
  border-radius: 18px;
  background: var(--theme-surface);
  z-index: 60;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}
.security-notice-panel--support {
  border-color: rgba(25, 103, 210, 0.18);
}
.security-notice-menu.open .security-notice-panel,
.app-launcher.open .app-launcher-panel,
.profile-menu.open .profile-menu-panel {
  display: block;
}
.security-notice-menu.open .security-notice-panel {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  transform: none;
  z-index: 200;
}
.security-notice-panel__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}
.security-notice-panel__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(217, 48, 37, 0.08);
  color: #d93025;
}
.security-notice-panel__icon .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}
.security-notice-panel__icon--support {
  background: rgba(25, 103, 210, 0.08);
  color: #1967d2;
}
.security-notice-panel__copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.security-notice-panel__copy strong {
  display: block;
  color: var(--theme-text);
  font-size: 14px;
  line-height: 1.35;
}
.security-notice-panel__copy p {
  margin: 6px 0 0;
  color: var(--theme-text-soft);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.security-notice-panel__action,
.security-notice-panel__action:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-top: 1px solid rgba(217, 48, 37, 0.12) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-weight: 600;
  color: #b3261e !important;
}
.security-notice-panel__action:hover,
.security-notice-panel__action:focus-visible {
  background: rgba(217, 48, 37, 0.06);
  outline: none;
}
.security-notice-panel__action--support {
  border-top: 1px solid rgba(25, 103, 210, 0.12) !important;
  color: #1957c2 !important;
}
.security-notice-panel__action--support:hover,
.security-notice-panel__action--support:focus-visible {
  background: rgba(25, 103, 210, 0.06);
}
.app-launcher-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
}
.app-launcher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--theme-text) !important;
}
.app-launcher-item:hover,
.app-launcher-item:focus-visible {
  background: var(--theme-link-hover-bg);
  outline: none;
}
.app-launcher-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--theme-surface-muted);
  overflow: hidden;
}
.app-launcher-item__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.app-launcher-item__initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-link);
}
.app-launcher-item__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-launcher-item__title {
  color: var(--theme-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.profile-menu-panel form {
  margin: 0;
}
.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--theme-text) !important;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.profile-menu-item,
.profile-menu-item-link {
  border-radius: 0;
}

.profile-menu-item-link {
  color: var(--theme-text) !important;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible,
.profile-menu-item-link:hover,
.profile-menu-item-link:focus-visible {
  background: var(--theme-link-hover-bg);
  color: var(--theme-text) !important;
  outline: none;
}
.profile-menu-item .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.lang-link {
  text-decoration: none;
  border: none;
  border-radius: 999px;
  background: rgb(247, 247, 247);
  color: #5f6368;
  font-size: 12px;
  padding: 5px 10px;
}
.avatar {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 20px 16px 30px;
}

body.account-summary-page .layout:has(.account-summary-guide-slot:not(:empty)) {
  grid-template-columns: 290px minmax(0, 1fr);
}
.sidebar {
  grid-column: 1;
  width: 290px;
  position: sticky;
  top: 84px;
  align-self: start;
  background: var(--theme-sidebar-bg, transparent);
  border-radius: 16px;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border: none;
  border-radius: 16px;
  background: var(--theme-sidebar-bg, transparent);
  box-shadow: none;
}
.mobile-menu-toggle {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  padding: 12px 14px;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mobile-menu-toggle-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mobile-menu-toggle-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mobile-menu-toggle-kicker {
  font-size: 11px;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-menu-toggle-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.mobile-menu-caret {
  color: #5f6368;
  transition: transform .2s ease;
}
.sidebar.menu-open .mobile-menu-caret {
  transform: rotate(180deg);
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--theme-menu-text);
  font-size: 14px;
  font-weight: 300;
  padding: 11px 12px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.menu-link span:last-child {
  min-width: 0;
  line-height: 1.3;
}
.menu-link:hover {
  background: var(--theme-menu-active-bg);
  border-color: transparent;
  color: var(--theme-menu-text-active) !important;
}
.menu-link.active,
.menu-link.active:visited,
.menu-link.active:hover,
.menu-link.active:focus-visible {
  background-color: var(--theme-menu-active-bg) !important;
  color: var(--theme-menu-text-active) !important;
  font-weight: 400;
  border: 0;
  box-shadow: none;
  border-radius: 10px;
}
.menu-link.active span:last-child,
.menu-link:hover span:last-child {
  color: inherit;
}
.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #80868b;
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  transition: color .2s ease, transform .2s ease, font-variation-settings .2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.menu-link:hover .menu-icon,
.menu-link.active .menu-icon,
.menu-link:hover [class*='menu-icon-'],
.menu-link.active [class*='menu-icon-'] {
  color: var(--theme-menu-text-active) !important;
  font-variation-settings: 'FILL' 1, 'Wght' 500, 'GRAD' 0, 'opsz' 20;
  transform: scale(1.15);
}
.menu-icon-main-data {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}
.menu-icon-settings {
  color: #1565c0;
}
.menu-icon-security {
  color: #0b8043;
}
.menu-icon-passkeys {
  color: #7b1fa2;
}
.menu-icon-backup-codes {
  color: #ef6c00;
}

.menu-icon-applications {
  color: #1e88e5;
}

.menu-icon-wallet {
  color: var(--theme-icon-wallet);
}

.menu-icon-addresses {
  color: #c62828;
}
.content {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}

.account-summary-content-slot > .content {
  width: 100%;
  min-width: 0;
}

body.account-summary-page .account-summary-content-slot > .content {
  justify-items: stretch;
}

.account-summary-content-slot {
  grid-column: 2;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.account-summary-guide-slot {
  width: 100%;
  min-width: 0;
}

.account-summary-guide-slot:empty {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

body.account-summary-navigating .layout:has(.account-summary-guide-slot:not(:empty)) {
  grid-template-columns: 290px minmax(0, 1fr);
}

body.account-summary-navigating .account-summary-guide-slot {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.page-title {
  margin: 2px 0 14px;
  font-size: 34px;
  font-weight: 400;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  letter-spacing: -0.3px;
}
.status {
  margin: 0 0 14px;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #d2e3fc;
  background: rgb(247, 247, 247);
  color: #174ea6;
}
.status.ok {
  border-color: #cce7d1;
  background: rgb(247, 247, 247);
  color: #137333;
}
/* Panel container styles: components/cards.css */
.panel-subtitle {
  margin: 0 0 18px;
  color: #5f6368;
  line-height: 1.5;
}
.admin-panel-body {
  padding: 18px;
}
.admin-panel-body .panel-subtitle,
.admin-panel-body .notice {
  margin-left: 0;
  margin-right: 0;
}
.admin-panel-body .panel-row {
  padding-left: 0;
  padding-right: 0;
}
.admin-panel-body .panel-row:first-of-type {
  border-top: 1px solid #eceff3;
}
.admin-panel-body .notice {
  margin-bottom: 18px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--theme-surface-muted);
  color: var(--theme-menu-text) !important;
  text-decoration: none;
  font-weight: 600;
}
.admin-tab:visited,
.admin-tab:hover,
.admin-tab:focus {
  color: var(--theme-text) !important;
}
.admin-tab:hover {
  background: var(--theme-link-hover-bg);
}
.admin-tab.active {
  background: var(--theme-button-bg, var(--sinapsi-black, rgb(20, 20, 20)));
  color: var(--theme-button-text, #fff) !important;
}
.admin-tab.active:visited,
.admin-tab.active:hover,
.admin-tab.active:focus {
  color: var(--theme-button-text, #fff) !important;
}
.admin-section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 24px;
  padding: 0 12px;
  border-bottom: 1px solid var(--theme-border-soft);
}
.admin-section-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: -1px;
  border: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--theme-menu-text) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.admin-section-tab:visited,
.admin-section-tab:hover,
.admin-section-tab:focus {
  color: var(--theme-text) !important;
}
.admin-section-tab:hover {
  background: var(--theme-link-hover-bg);
}
.admin-section-tab.active {
  background: var(--theme-surface);
  color: var(--theme-text) !important;
}
.admin-section-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--theme-surface);
}
.admin-section-tab.active:visited,
.admin-section-tab.active:hover,
.admin-section-tab.active:focus {
  color: var(--theme-text) !important;
}
.support-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 24px;
  padding: 0 12px;
  border-bottom: 1px solid var(--theme-border-soft);
}
.support-tabs .support-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: -1px;
  border: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--theme-menu-text) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.support-tabs .support-tab:visited,
.support-tabs .support-tab:hover,
.support-tabs .support-tab:focus {
  color: var(--theme-text) !important;
}
.support-tabs .support-tab:hover,
.support-tabs .support-tab:focus {
  background: var(--theme-link-hover-bg);
}
.support-tabs .support-tab.active {
  background: var(--theme-surface);
  color: var(--theme-text) !important;
}
.support-tabs .support-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--theme-surface);
}
.support-tabs .support-tab.active:visited,
.support-tabs .support-tab.active:hover,
.support-tabs .support-tab.active:focus {
  color: var(--theme-text) !important;
}
.admin-message-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-border-soft);
}
.admin-message-block h3 {
  margin: 0 0 14px;
}
.admin-message-card {
  border: 0;
  border-radius: 14px;
  padding: 16px;
  background: var(--theme-surface-elevated);
  margin-bottom: 16px;
}
.admin-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.admin-users-table-shell {
  margin-top: 8px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: var(--theme-surface-elevated);
  overflow: hidden;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--theme-text) 5%, transparent);
}

.admin-users-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border-soft);
  background: color-mix(in srgb, var(--theme-surface-muted) 55%, var(--theme-surface-elevated));
}

.admin-users-table-toolbar__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text-soft);
}

.admin-users-table-toolbar__controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-users-table-toolbar__page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-text-soft);
  font-size: 13px;
}

.admin-users-table-toolbar__page-size select {
  min-width: 72px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background: var(--theme-surface-elevated);
  color: var(--theme-text);
  font: inherit;
  font-size: 13px;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  table-layout: fixed;
}

.admin-users-table th,
.admin-users-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--theme-border-soft);
}

.admin-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-users-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
  background: color-mix(in srgb, var(--theme-surface-muted) 80%, transparent);
}

.admin-users-table__sort-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.admin-users-table__sort-link:hover,
.admin-users-table__sort-link:focus-visible {
  color: var(--theme-text);
}

.admin-users-table__sort-indicator {
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
}

.admin-users-table__filters th {
  padding-top: 8px;
  padding-bottom: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.admin-users-table__filters input,
.admin-users-table__filters select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background-color: var(--theme-surface);
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.admin-users-table__filters input:focus,
.admin-users-table__filters select:focus {
  outline: none;
  border-color: var(--theme-border);
  box-shadow: none;
  background-color: var(--theme-surface-muted);
}

.admin-users-table__filters-reset {
  vertical-align: middle;
}

.admin-user-activity-panel .admin-users-table__filters th {
  vertical-align: top;
}

.admin-user-activity-panel .admin-users-table__filters th:first-child {
  min-width: 0;
}

.admin-user-activity-panel .admin-users-table__date-range-field {
  min-width: 0;
}

.admin-user-activity-panel .admin-users-table__date-range-field .billing-hub-date-field {
  width: 100%;
  min-width: 0;
}

.admin-user-activity-panel .admin-users-table__date-range-field .billing-hub-date-field__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-activity-panel .admin-users-table__filters select + input {
  margin-top: 6px;
}

.admin-users-table__empty {
  padding: 18px 14px;
  color: var(--theme-text-soft);
  font-size: 14px;
  text-align: center;
}

.admin-users-table-filter-form {
  display: none;
}

.admin-users-table tbody tr:hover {
  background: color-mix(in srgb, var(--theme-primary, #2e7af9) 5%, var(--theme-surface-elevated));
}

.admin-users-table__id-col,
.admin-users-table__id {
  width: 6ch;
  max-width: 6ch;
  padding-left: 12px;
  padding-right: 6px;
  white-space: nowrap;
  color: var(--theme-text-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.admin-users-table__id-col {
  text-align: right;
}

.admin-users-table__user {
  width: 28%;
  min-width: 200px;
}

.admin-users-table__user-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-users-table__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  overflow: hidden;
}

.admin-users-table__avatar:not(.admin-tenants-table__icon) {
  filter: grayscale(100%);
  transition: filter 0.22s ease;
}

.admin-users-table__avatar:not(.admin-tenants-table__icon):hover,
.admin-users-table__row:hover .admin-users-table__avatar:not(.admin-tenants-table__icon),
.admin-user-edit-page__identity:hover .admin-users-table__avatar:not(.admin-tenants-table__icon) {
  filter: grayscale(0%);
}

.admin-users-table__row {
  transition: background-color 0.15s ease;
}

.admin-users-table__row--link {
  cursor: pointer;
}

.admin-users-table__filters-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-user-edit-page__danger-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-border, #dadce0);
}

.admin-users-table__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-users-table__avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-tenants-table__icon {
  border-radius: 8px;
  background: var(--theme-surface-muted);
}

.admin-tenants-table__icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.admin-save-passkey-modal__status,
.admin-save-otp-modal__status {
  margin: 0;
  font-size: 13px;
  color: var(--theme-text-muted);
}

.admin-save-passkey-modal__status.is-error,
.admin-save-otp-modal__status.is-error {
  color: var(--theme-danger, #c5221f);
}

.admin-save-passkey-modal__hint {
  margin: 0;
  font-size: 13px;
  color: var(--theme-text-muted);
}

.admin-users-table__user-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.admin-users-table__primary {
  font-weight: 600;
  font-size: 14px;
  color: var(--theme-text);
  line-height: 1.35;
  word-break: break-word;
}

.admin-users-table__email {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: var(--theme-text-muted);
  word-break: break-word;
}

.admin-users-table__status,
.admin-users-table__status-col {
  width: auto;
  min-width: 128px;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 12px;
}

.admin-users-table__status-label {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--theme-text);
  text-decoration: none;
}

.admin-users-table__filters .admin-users-table__status-col select {
  min-width: 0;
  font-size: 13px;
}

.admin-users-table__status .badge,
.admin-users-table__status .admin-users-table__badge {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--theme-text);
}

.admin-users-table__session,
.admin-users-table__session-col {
  width: 36px;
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.admin-users-table__session-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.admin-users-table__session-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 24%, transparent);
}

.admin-users-table__session-offline {
  display: inline-block;
  min-width: 10px;
  color: var(--theme-text-soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.admin-users-table__badge {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}


.admin-user-edit-page__heading {
  align-items: flex-start;
  gap: 20px;
}

.admin-user-edit-page__heading-copy {
  min-width: 0;
}

.admin-user-edit-page__subtitle {
  margin: 6px 0 0;
}

.admin-user-edit-page__back {
  display: inline-block;
  margin-bottom: 10px;
}

.admin-user-edit-page__body {
  padding-top: 8px;
}

.admin-user-edit-tabs {
  margin-top: 0;
}

button.admin-section-tab,
button.admin-user-edit-tab {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.admin-user-edit-page__body .btn-primary {
  width: auto;
  min-width: 120px;
  grid-column: auto;
}

.admin-user-edit-panels {
  margin-top: 0;
}

.admin-user-edit-presence {
  margin: 14px 0 18px;
}

.admin-user-edit-panel.admin-message-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-user-edit-panel.admin-message-block h3 {
  margin-top: 0;
}

.admin-user-edit-page__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.admin-user-edit-page__identity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-edit-page__primary {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-user-edit-page__secondary,
.admin-user-edit-page__meta {
  color: var(--theme-text-muted);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.admin-user-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.admin-user-edit-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--theme-text);
}

.admin-user-edit-grid input,
.admin-user-edit-grid select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 8px;
  background: var(--theme-surface);
  color: var(--theme-text);
}

.admin-user-edit-role-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-edit-role-field {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.admin-user-edit-role-field .admin-users-table__select {
  min-width: 260px;
}

.admin-user-edit-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-top: 4px;
}

.admin-user-edit-panel .admin-user-access-sections {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .admin-user-edit-page__heading {
    flex-direction: column;
  }

  .admin-user-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-edit-role-field,
  .admin-user-edit-role-field .admin-users-table__select {
    min-width: 0;
    width: 100%;
  }
}

.admin-users-table .admin-user-role-form--inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin-users-table__save-btn {
  flex: 0 0 auto;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: var(--theme-button-bg, var(--sinapsi-black, rgb(20, 20, 20)));
  color: var(--theme-button-text, #fff) !important;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-users-table__save-btn:hover,
.admin-users-table__save-btn:focus-visible {
  background: var(--theme-button-bg-hover, #282828);
  color: var(--theme-button-text, #fff) !important;
}

.admin-users-table__role-field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.admin-users-table__select {
  width: 100%;
  min-height: 36px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background-color: var(--theme-surface);
  color: var(--theme-text);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
}

.admin-users-table__actions {
  width: 180px;
}

.admin-users-table__actions-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-users-table__actions-inner.row-actions {
  justify-content: flex-start;
}

.admin-table-action-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--theme-link, #1a73e8) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

button.admin-table-action-link {
  min-height: unset !important;
  height: auto !important;
}

.admin-table-action-link:hover,
.admin-table-action-link:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--theme-link, #1a73e8) !important;
  opacity: 0.82;
  text-decoration: underline;
}

.admin-table-action-link--danger,
button.admin-table-action-link--danger {
  color: var(--theme-danger, #d93025) !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  text-decoration: underline;
}

.admin-table-action-link--danger:hover,
.admin-table-action-link--danger:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--theme-danger, #d93025) !important;
  opacity: 0.82;
  text-decoration: underline;
}

.admin-user-delete-form--inline {
  margin: 0;
  display: inline-flex;
}

.admin-user-logout-all-form--inline {
  margin: 0;
  display: inline-flex;
}

.admin-users-table__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-surface-muted) 42%, var(--theme-surface-elevated));
}

.admin-filter-form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text-soft);
}

.admin-filter-form input:not([type="checkbox"]),
.admin-filter-form select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background-color: var(--theme-surface);
  color: var(--theme-text);
  font: inherit;
  font-size: 14px;
}

.admin-filter-form .admin-message-actions {
  margin-top: 2px;
}

.admin-filter-form .admin-message-actions button {
  min-height: 38px;
  padding: 8px 14px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.admin-user-card {
  border: 0;
  border-radius: 14px;
  padding: 16px;
  background: var(--theme-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-user-card__identity {
  min-width: 0;
}
.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-user-role-form,
.admin-user-capabilities-form,
.admin-user-delete-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-capabilities-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-user-capabilities-fieldset legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-text);
}

.admin-user-capability-group + .admin-user-capability-group {
  margin-top: 12px;
}

.admin-user-capability-group__title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text-muted);
}

.admin-user-capability-group__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-capability-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
  border-radius: 12px;
  background: var(--theme-surface-elevated, #fff);
  font-size: 14px;
  color: var(--theme-text);
}

.admin-user-capability-option input[type="checkbox"] {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  align-self: center;
}

.admin-user-capability-option__label {
  font-weight: 500;
}

.admin-user-capability-option__description {
  font-size: 13px;
  color: var(--theme-text-muted);
  line-height: 1.4;
}

.admin-user-capability-option__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-capability-option.is-role-baseline {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 24%, var(--theme-border-soft));
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 6%, var(--theme-surface-elevated, var(--theme-surface)));
}

.admin-user-permission-option__role-note {
  font-size: 12px;
  color: var(--theme-text-muted);
}

.admin-user-access-modal__permissions-subtitle,
.admin-user-access-modal__intro-subtitle {
  margin: 0 0 12px;
}

.admin-user-access-sections {
  display: grid;
  gap: 10px;
}

.admin-user-access-app-section {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.admin-user-access-app-section + .admin-user-access-app-section {
  border-top: 1px solid color-mix(in srgb, var(--theme-text) 8%, transparent);
}

.admin-user-access-app-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-user-access-app-section__header--portal {
  margin-bottom: 8px;
}

.admin-user-access-app-section__identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-access-kind-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.admin-user-access-kind-badge--portal {
  color: var(--theme-primary, var(--theme-accent, #2563eb));
  background: color-mix(in srgb, var(--theme-primary, var(--theme-accent, #2563eb)) 10%, transparent);
}

.admin-user-access-kind-badge--app {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-text) 8%, transparent);
}

.admin-user-access-app-section__access {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.admin-user-access-app-section__access.is-role-granted {
  opacity: 0.92;
}

.admin-user-access-app-section__heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-user-access-app-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-text);
}

.admin-user-access-app-section__meta {
  font-size: 11px;
  color: var(--theme-text-muted);
  word-break: break-word;
}

.admin-user-access-app-section__access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-user-access-app-section__access-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text);
}

.admin-user-access-app-section__access input[type="checkbox"] {
  margin: 0;
}

.admin-user-access-app-section__access .admin-user-acl-app-option__role-note {
  font-size: 11px;
  font-weight: 500;
  color: var(--theme-text-muted);
  text-align: right;
}

.admin-user-access-subsection {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
}

.admin-user-access-subsection--menu {
  border-left-color: color-mix(in srgb, var(--theme-primary, var(--theme-accent, #2563eb)) 35%, transparent);
}

.admin-user-access-subsection--authorization {
  border-left-color: color-mix(in srgb, var(--theme-text) 18%, transparent);
}

.admin-user-access-subsection + .admin-user-access-subsection {
  margin-top: 12px;
}

.admin-user-access-subsection__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--theme-text-muted);
}

.admin-user-access-permission-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-access-permission-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 3px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  color: var(--theme-text);
  cursor: pointer;
}

.admin-user-access-permission-chip:hover .admin-user-access-permission-chip__label {
  color: var(--theme-primary, var(--theme-accent, #2563eb));
}

.admin-user-access-permission-chip input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}

.admin-user-access-permission-chip__label {
  font-weight: 500;
}

.admin-user-access-permission-chip.is-role-baseline {
  border: none;
  background: transparent;
}

.admin-user-access-permission-chip.is-role-baseline .admin-user-access-permission-chip__label {
  color: var(--theme-text-muted);
}

.admin-user-access-permission-chip .admin-user-permission-option__role-note {
  font-size: 10px;
  color: var(--theme-text-muted);
}

.admin-user-access-permission-chip .admin-user-permission-option__role-note:not([hidden]) {
  display: inline;
}

.admin-user-access-permission-chip .admin-user-permission-option__role-note:not([hidden])::before {
  content: "·";
  margin: 0 4px;
  color: var(--theme-text-muted);
}

body.admin-user-access-modal-open {
  overflow: hidden;
}

body.admin-oauth-client-modal-open {
  overflow: hidden;
}

body.admin-save-passkey-modal-open,
body.admin-save-otp-modal-open {
  overflow: hidden;
}

.admin-oauth-client-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-oauth-client-modal[hidden] {
  display: none;
}

.admin-oauth-client-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.admin-oauth-client-modal__dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  background: var(--theme-surface-elevated, #ffffff);
  color: var(--theme-text);
  border: 1px solid var(--theme-border-soft);
  border-radius: var(--ui-card-radius-large, 24px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.admin-oauth-client-modal__header h3 {
  margin: 0;
}

.admin-oauth-client-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.admin-oauth-client-modal__grid > label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  align-content: start;
}

.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide):not(.admin-form-toggle) {
  grid-template-rows: auto var(--ui-field-height, 28px) auto;
}

.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide):not(.admin-form-toggle) > span:first-child {
  grid-row: 1;
}

.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide):not(.admin-form-toggle) > input:not([type="checkbox"]),
.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide):not(.admin-form-toggle) > select,
.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide):not(.admin-form-toggle) > textarea {
  grid-row: 2;
  align-self: center;
}

.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide) > small,
.admin-oauth-client-modal__grid > label:not(.admin-oauth-client-modal__field-wide) > .admin-oauth-client-form__hint {
  grid-row: 3;
}

.admin-oauth-client-modal__grid input,
.admin-oauth-client-modal__grid select,
.admin-oauth-client-modal__grid textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-tenant-menu-config {
  display: grid;
  gap: 12px;
}

.admin-tenant-menu-config__header {
  display: grid;
  gap: 4px;
}

.admin-tenant-menu-config__header > span {
  font-size: 13px;
  font-weight: 600;
}

.admin-tenant-menu-config__list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--theme-border, #d9d9d9);
  border-radius: 12px;
  background: var(--theme-surface-muted, #f7f7f7);
}

.admin-tenant-menu-config__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background: var(--theme-surface-elevated, #fff);
}

.admin-tenant-menu-config__visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
}

.admin-tenant-menu-config__visibility span {
  min-width: 0;
}

.admin-tenant-menu-config__sort {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.admin-tenant-menu-config__sort input {
  width: 100%;
}

.admin-oauth-client-modal__field-wide {
  grid-column: 1 / -1;
}

.admin-oauth-client-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-oauth-client-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
  cursor: pointer;
}

.admin-brand-logo-field {
  display: grid;
  gap: 10px;
}

.admin-brand-logo-field__preview {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.admin-brand-logo-field__remove {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 13px;
  min-height: var(--ui-field-height, 28px);
}

.admin-oauth-client-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.admin-oauth-client-form__full {
  grid-column: 1 / -1;
}

.admin-oauth-client-form__grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  align-content: start;
}

.admin-oauth-client-form__grid label:not(.admin-oauth-client-form__full) {
  grid-template-rows: auto var(--ui-field-height, 28px) minmax(1.15em, auto);
}

.admin-oauth-client-form__grid label:not(.admin-oauth-client-form__full) > span:first-child {
  grid-row: 1;
}

.admin-oauth-client-form__grid label:not(.admin-oauth-client-form__full) > input,
.admin-oauth-client-form__grid label:not(.admin-oauth-client-form__full) > select {
  grid-row: 2;
  align-self: center;
}

.admin-oauth-client-form__grid label.admin-oauth-client-form__full {
  grid-template-rows: auto auto;
}

.admin-oauth-client-form__grid input,
.admin-oauth-client-form__grid select,
.admin-oauth-client-form__grid textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-oauth-client-form__hint {
  grid-row: 3;
  margin: 0;
  line-height: 1.2;
  color: var(--theme-text-soft, #5f6368);
  font-size: 12px;
}

.admin-oauth-client-form__checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  grid-template-rows: none !important;
}

.admin-app-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.admin-oauth-clients-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-oauth-clients-create-btn {
  width: auto !important;
  flex-shrink: 0;
  gap: 6px;
}

.admin-oauth-clients-table__row {
  cursor: pointer;
}

.admin-oauth-clients-edit-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.admin-oauth-clients-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-oauth-clients-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--theme-surface-muted);
}

.admin-oauth-clients-pagination__link.active {
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
}

.admin-oauth-client-modal__actions,
.admin-user-access-modal__actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-oauth-client-modal__secondary-actions,
.admin-oauth-client-modal__primary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-oauth-client-modal__primary-actions {
  margin-left: auto;
}

.admin-oauth-client-modal__actions {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .admin-oauth-client-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-oauth-client-modal__grid {
    grid-template-columns: 1fr;
  }

  .admin-tenant-menu-config__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-oauth-clients-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-user-access-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-user-access-modal[hidden] {
  display: none;
}

.admin-user-access-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.admin-user-access-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  background: var(--theme-surface-elevated, #ffffff);
  color: var(--theme-text);
  border: 1px solid var(--theme-border-soft);
  border-radius: var(--ui-card-radius-large, 24px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.admin-user-access-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-access-modal__drag-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-user-access-modal__dialog.is-dragging .admin-user-access-modal__drag-handle {
  cursor: grabbing;
}

.admin-user-access-modal__dialog.is-dragged {
  will-change: transform;
}

.admin-user-access-modal__dialog.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.admin-user-access-modal__header h3 {
  margin: 0;
}

.admin-user-access-modal__close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text-muted);
  cursor: pointer;
}

.admin-user-access-modal__close:hover,
.admin-user-access-modal__close:focus-visible {
  background: color-mix(in srgb, var(--theme-text) 8%, transparent);
  color: var(--theme-text);
}

.admin-user-access-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-access-modal__tab {
  border: 1px solid color-mix(in srgb, var(--theme-text) 12%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text);
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.admin-user-access-modal__tab.active {
  border-color: color-mix(in srgb, var(--theme-primary) 40%, transparent);
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
  color: var(--theme-primary);
}

.admin-user-access-modal__panel {
  display: grid;
  gap: 14px;
}

.admin-user-access-modal__panel[hidden] {
  display: none !important;
}

.admin-user-access-modal__apps-subtitle {
  margin: 0;
}

.admin-user-acl-app-list {
  display: grid;
  gap: 10px;
}

.admin-user-acl-app-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface-elevated, var(--theme-surface)) 88%, transparent);
}

.admin-user-acl-app-option.is-role-granted {
  opacity: 0.92;
}

.admin-user-acl-app-option input[type="checkbox"] {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

.admin-user-acl-app-option__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-acl-app-option__label {
  font-weight: 600;
  color: var(--theme-text);
}

.admin-user-acl-app-option__meta {
  font-size: 13px;
  color: var(--theme-text-muted);
  word-break: break-word;
}

.admin-user-acl-app-option__role-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-primary);
}

.admin-user-access-modal__actions .admin-user-access-modal__cancel,
.admin-message-actions .admin-user-access-modal__cancel,
.admin-message-actions .admin-oauth-client-modal__cancel {
  background: var(--theme-surface-muted) !important;
  color: var(--theme-text) !important;
  border: 1px solid var(--theme-border-strong) !important;
  box-shadow: none;
}

.admin-user-access-modal__actions .admin-user-access-modal__cancel:hover,
.admin-user-access-modal__actions .admin-user-access-modal__cancel:focus-visible,
.admin-message-actions .admin-user-access-modal__cancel:hover,
.admin-message-actions .admin-user-access-modal__cancel:hover,
.admin-message-actions .admin-user-access-modal__cancel:focus-visible,
.admin-message-actions .admin-oauth-client-modal__cancel:hover,
.admin-message-actions .admin-oauth-client-modal__cancel:focus-visible {
  background: color-mix(in srgb, var(--theme-text) 8%, var(--theme-surface-muted)) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border-strong) !important;
}

.admin-user-role-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-filter-form label,
.support-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-message-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.admin-message-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--theme-text-soft);
}
.admin-message-form input:not([type="checkbox"]),
.admin-message-form select,
.admin-message-form textarea {
  width: 100%;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--theme-text);
  background-color: var(--theme-input-bg);
}
.admin-message-textarea textarea {
  resize: vertical;
  min-height: 96px;
}
.admin-message-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-message-flags .admin-form-toggle {
  min-width: min(220px, 100%);
}
.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.admin-message-actions form {
  margin: 0;
}
.admin-message-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--theme-text-soft);
}
.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.admin-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: none;
  background: var(--theme-surface-muted);
  color: var(--theme-text) !important;
  text-decoration: none;
  font-weight: 600;
}
.admin-pagination__link:visited,
.admin-pagination__link:hover,
.admin-pagination__link:focus {
  color: var(--theme-text) !important;
}
.admin-pagination__link:hover {
  background: var(--theme-link-hover-bg);
}
.admin-pagination__link.active {
  background: var(--theme-button-bg, var(--sinapsi-black, rgb(20, 20, 20)));
  color: var(--theme-button-text, #fff) !important;
}
.admin-pagination__link.active:visited,
.admin-pagination__link.active:hover,
.admin-pagination__link.active:focus {
  color: var(--theme-button-text, #fff) !important;
}
.admin-pagination__link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-users-pagination {
  align-items: center;
  gap: 2px 10px;
}

.admin-users-pagination__status {
  margin: 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--theme-text-soft);
  white-space: nowrap;
}

.admin-users-pagination__page,
.admin-users-pagination__page:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--theme-link, #1a73e8) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.admin-users-pagination__page:hover,
.admin-users-pagination__page:focus-visible {
  color: var(--theme-link, #1a73e8) !important;
  text-decoration: underline;
  background: transparent;
}

.admin-users-pagination__page.is-active {
  color: var(--theme-text) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: default;
}

.admin-users-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-text-soft) !important;
  text-decoration: none;
}

.admin-users-pagination__nav:visited,
.admin-users-pagination__nav:hover,
.admin-users-pagination__nav:focus-visible {
  color: var(--theme-text) !important;
  background: transparent;
}

.admin-users-pagination__nav .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.admin-users-pagination__nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.logs-pagination__arrow {
  padding: 0;
}
.logs-pagination__arrow .material-symbols-outlined {
  font-size: 20px;
}
.developer-guide-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.developer-guide-index,
.developer-guide-doc {
  border: 0;
  border-radius: 16px;
  background: var(--theme-surface-elevated);
}
.developer-guide-index {
  position: sticky;
  top: 96px;
  padding: 14px;
}
.developer-guide-index__header {
  margin-bottom: 12px;
  color: var(--theme-text);
}
.developer-guide-index__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.developer-guide-index__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--theme-text) !important;
  background: var(--theme-surface-muted);
  box-shadow: inset 0 0 0 1px var(--theme-border-soft);
}
.developer-guide-index__link:visited,
.developer-guide-index__link:hover,
.developer-guide-index__link:focus {
  color: var(--theme-text) !important;
}
.developer-guide-index__link:hover {
  background: var(--theme-link-hover-bg);
}
.developer-guide-index__link.active {
  background: var(--theme-surface);
  box-shadow: inset 0 0 0 1px var(--theme-border-strong);
}
.developer-guide-index__title {
  font-weight: 600;
}
.developer-guide-index__link small {
  color: var(--theme-text-soft);
  line-height: 1.45;
}
.developer-guide-doc {
  padding: 18px;
}
.developer-guide-doc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.developer-guide-doc__header h4 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.2;
}
.developer-guide-doc__meta {
  margin-top: 8px;
  color: var(--theme-text-soft);
  font-size: 12px;
}
.developer-guide-doc__toc {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--theme-surface-muted);
}
.developer-guide-doc__toc strong {
  display: block;
  margin-bottom: 10px;
}
.developer-guide-doc__toc ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.developer-guide-doc__toc a {
  color: var(--theme-accent, #1a73e8);
  text-decoration: none;
}
.developer-guide-doc__toc a:visited,
.developer-guide-doc__toc a:hover,
.developer-guide-doc__toc a:focus {
  color: var(--theme-accent, #1a73e8) !important;
}
.developer-guide-doc__toc a:hover {
  text-decoration: underline;
}
.developer-guide-doc__toc-level-2 {
  margin-left: 10px;
}
.developer-guide-doc__toc-level-3 {
  margin-left: 20px;
}
.developer-guide-doc__content {
  color: var(--theme-text);
  line-height: 1.7;
}
.developer-guide-doc__content h1,
.developer-guide-doc__content h2,
.developer-guide-doc__content h3,
.developer-guide-doc__content h4 {
  margin: 1.3em 0 0.55em;
  line-height: 1.25;
  scroll-margin-top: 92px;
}
.developer-guide-doc__content h1:first-child,
.developer-guide-doc__content h2:first-child,
.developer-guide-doc__content h3:first-child,
.developer-guide-doc__content h4:first-child {
  margin-top: 0;
}
.developer-guide-doc__content p,
.developer-guide-doc__content ul,
.developer-guide-doc__content ol,
.developer-guide-doc__content blockquote,
.developer-guide-doc__content pre {
  margin: 0 0 14px;
}
.developer-guide-doc__content a {
  color: var(--theme-accent, #1a73e8);
  text-decoration: none;
}
.developer-guide-doc__content a:visited,
.developer-guide-doc__content a:hover,
.developer-guide-doc__content a:focus {
  color: var(--theme-accent, #1a73e8) !important;
}
.developer-guide-doc__content blockquote {
  margin-left: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--theme-border-strong);
  border-radius: 0 12px 12px 0;
  background: var(--theme-surface-muted);
}
.developer-guide-doc__list {
  padding-left: 20px;
}
.developer-guide-doc__code {
  overflow-x: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #f3f6f9;
}
.developer-guide-doc__code code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #f3f6f9 !important;
  -webkit-text-fill-color: #f3f6f9;
  background: transparent !important;
}
.developer-guide-doc__content p code,
.developer-guide-doc__content li code,
.developer-guide-doc__content td code,
.developer-guide-doc__content th code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  color: var(--theme-text);
  background: var(--theme-surface-muted);
}
.developer-guide-doc__table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--theme-border, #d8dee8);
  border-radius: 14px;
  background: var(--theme-surface, #fff);
}
.developer-guide-doc__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.developer-guide-doc__table th,
.developer-guide-doc__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--theme-border, #d8dee8);
  text-align: left;
  vertical-align: top;
}
.developer-guide-doc__table th {
  font-weight: 600;
  background: var(--theme-surface-muted);
}
.developer-guide-doc__table tr:last-child td {
  border-bottom: 0;
}
.developer-guide-doc__table code {
  font-size: 0.95em;
  white-space: nowrap;
}
@media (max-width: 1120px) {
  .admin-panel-body {
    padding: 16px;
  }

  .developer-guide-layout {
    grid-template-columns: 1fr;
  }

  .developer-guide-index {
    position: static;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .wallet-stats-grid {
    grid-template-columns: 1fr;
  }

  .wallet-purchase-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-purchase-item__side {
    align-items: flex-start;
    text-align: left;
  }

  .wallet-purchase-item__invoice-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    width: 100%;
  }

  .admin-section-tabs {
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .admin-section-tab {
    flex: 1 0 auto;
  }

  .support-tabs {
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .support-tab {
    flex: 1 0 auto;
  }

  .admin-message-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-message-actions form,
  .admin-message-actions button,
  .admin-message-actions .action-btn {
    width: 100%;
  }
}
.panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  padding: 20px 18px;
  border-bottom: 0;
}
.panel-heading h2 {
  padding: 0;
  border-bottom: none;
}
.panel-heading .status {
  margin: 0;
  white-space: nowrap;
}
.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #eceff3;
}
.panel-row:last-child {
  border-bottom: none;
}
.row-icon {
  display: none;
}
.row-label {
  font-size: 14px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  margin-bottom: 3px;
  font-weight: 400;
}

.row-label--nested {
  margin-top: 10px;
}

.row-value {
  font-size: 13px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.7);
  font-weight: 300;
  line-height: 1.35;
  word-break: break-word;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.row-actions form {
  margin: 0;
}
.chip,
.address-actions a,
.address-link {
  border: 1px rgb(229, 231, 235);
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.08);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.chip.danger,
.required-icon,
.error {
  border-color: #f4c7c3;
  color: #d93025;
}
.muted {
  color: #5f6368;
  font-size: 12px;
  line-height: 1.45;
}
.badge {
  display: inline-block;
  background: transparent;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  border-radius: 999px;
  font-size: 11px;
}
.chip--accent {
  background: rgba(46, 122, 249, 0.12);
  border-color: rgba(46, 122, 249, 0.22);
  color: #1957c2;
}
.security-sections {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.security-panel > h2,
.security-sessions-panel > h2 {
  margin: 0;
}

.security-sessions-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.security-sessions-panel > h2,
.security-sessions-panel > .security-panel__hint,
.security-sessions-panel > .security-session-history-cleanup-row,
.security-sessions-panel__body,
.security-sessions-panel .security-sessions-groups {
  background: transparent;
}

.security-sessions-panel > .security-session-history-cleanup-row,
.security-sessions-panel > .panel-row.security-session-history-cleanup-row,
.security-sessions-panel > .panel-row.security-usual-locations-clear-all-row {
  border: 0;
  border-bottom: 0;
  margin-bottom: 10px;
}

.security-session-history-cleanup-row .row-actions button,
.security-usual-locations-clear-all-row .row-actions button {
  border: 0;
  box-shadow: none;
}

#section-security-trusted-devices.panel.security-sessions-panel,
#section-security-usual-locations.panel.security-sessions-panel {
  background: #fff;
}

#section-security-trusted-devices > h2,
#section-security-trusted-devices > .security-panel__hint,
#section-security-trusted-devices .security-sessions-panel__body,
#section-security-trusted-devices .security-sessions-state,
#section-security-usual-locations > h2,
#section-security-usual-locations > .security-panel__hint,
#section-security-usual-locations .security-sessions-panel__body,
#section-security-usual-locations .security-sessions-state {
  background: #fff;
}

.security-sessions-panel__body {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.security-sessions-panel .security-sessions-state {
  padding: 0 18px 18px;
}

.security-sessions-panel .security-session-group__head,
.security-sessions-panel .security-session-group .security-sessions-state {
  padding-left: 18px;
  padding-right: 18px;
}

.security-sessions-panel .security-session-group .security-sessions-state {
  padding-top: 12px;
  padding-bottom: 12px;
}

.security-trusted-device-row .security-session-row__title.row-label {
  margin-bottom: 3px;
}

.security-trusted-device-row .security-session-row__meta.row-value {
  font-size: 13px;
}

.security-usual-locations-row {
  align-items: flex-start;
}

.security-usual-locations-row .security-usual-locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.security-usual-location-chip {
  margin: 0;
}

.security-usual-location-chip__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(229, 231, 235);
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.08);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}

.security-usual-location-chip__button:hover {
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.12);
}

.security-usual-location-chip__label {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-usual-location-chip__remove {
  color: #5f6368;
  font-size: 14px;
  line-height: 1;
}

.security-sessions-groups {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.security-session-group {
  display: grid;
  gap: 8px;
}

.security-session-group__head {
  display: grid;
  gap: 4px;
}

.security-session-group__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-text);
}

.security-session-group__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.security-session-list {
  display: grid;
  gap: 0;
}

.security-session-list--by-reference {
  gap: 14px;
}

.security-session-reference-group {
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.security-session-reference-group--current {
  border: 0;
  box-shadow: none;
  background: #fff;
}

.security-session-reference-group__head {
  padding: 12px 16px 10px;
  border-bottom: 0;
  background: #fff;
}

.security-session-reference-group__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-text);
  line-height: 1.35;
}

.security-session-reference-group__label {
  color: var(--theme-text-soft);
  font-weight: 500;
}

.security-session-reference-group__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: 0.01em;
}

.security-session-reference-group .security-session-row {
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 12px;
  background: #fff;
}

.security-session-reference-group .panel-row.security-session-row {
  border-bottom: 0;
}

.security-session-row {
  align-items: start;
}

.security-session-row__content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.security-session-row__line {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.security-session-row__line--sgh-re,
.security-session-row__line--sgh-legacy {
  font-family: inherit;
}

.security-session-row__line-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  min-width: 0;
}

.security-session-row__field {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
}

.security-session-row__field-label {
  color: var(--theme-text-soft);
  white-space: nowrap;
}

.security-session-row__field-value {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.security-session-row__field-value--ip {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.security-session-row__field--reference .security-session-row__field-value {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.security-session-row__line--summary {
  color: var(--theme-text-soft);
  font-size: 12px;
}

.security-session-row__line--timeline,
.security-session-row__line--remaining {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  font-size: 13px;
  line-height: 1.35;
}

.security-session-row__tag {
  display: inline;
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.security-session-row__tag--legacy-gu {
  color: #000;
}

.security-session-row__tag--legacy-external {
  color: #8a5a14;
}

.security-session-group-panel {
  margin-bottom: 0;
}

.security-panel__hint {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.security-panel .panel-row,
.security-sessions-panel .panel-row,
.security-session-group .panel-row {
  border-bottom: 1px solid #eceff3;
}

.security-sessions-panel > .panel-row.security-session-history-cleanup-row,
.security-sessions-panel > .panel-row.security-usual-locations-clear-all-row {
  border: 0;
  border-bottom: 0;
}

.security-whatsapp-row {
  align-items: start;
}

.security-inline-form {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 12px 0 0;
  border-top: 1px solid #eceff3;
}

.security-inline-form__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.78);
}

.security-inline-form__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.security-inline-form__verify {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.security-inline-form__verify input {
  min-width: 120px;
  padding: 9px 11px;
  border: 1px solid #d9dfe7;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.otp-boxes {
  width: 100%;
}

.otp-boxes__cells {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.otp-boxes__cell {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 52px;
  padding: 0;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.otp-boxes__cell:focus {
  outline: none;
  border-color: var(--theme-focus, #2e7af9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-focus, #2e7af9) 18%, transparent);
  background: #fff;
}

.otp-boxes--compact .otp-boxes__cells {
  gap: 8px;
}

.otp-boxes--compact .otp-boxes__cell {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 44px;
  font-size: 18px;
  border-radius: 8px;
}

.security-inline-form__verify .otp-boxes {
  width: auto;
}

.security-inline-form__verify .otp-boxes__cells {
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .otp-boxes__cells {
    gap: 8px;
    justify-content: space-between;
  }

  .otp-boxes__cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 48px;
    font-size: 20px;
  }

  .otp-boxes--compact .otp-boxes__cell {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 40px;
    font-size: 17px;
  }
}

.security-session-log-disclosure {
  border-top: 1px solid #eceff3;
}

.security-session-log-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.security-session-log-toggle::-webkit-details-marker {
  display: none;
}

.security-session-log-toggle__title {
  font-size: 15px;
  font-weight: 600;
}

.security-session-log-toggle__meta {
  font-size: 12px;
}

.security-session-log-toggle__icon {
  flex-shrink: 0;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.security-session-log-disclosure[open] .security-session-log-toggle__icon {
  transform: rotate(180deg);
}

.security-session-log-panel {
  padding: 0 0 16px;
}

.security-session-log-retention {
  margin: 0 0 12px;
  font-size: 12px;
}

.security-session-log-modal__dialog {
  width: min(640px, 100%);
}

.security-session-log-modal__details {
  margin: 0;
  display: grid;
  gap: 14px;
}

.security-session-log-modal__field {
  display: grid;
  gap: 4px;
}

.security-session-log-modal__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-muted, #5f6368);
}

.security-session-log-modal__value {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.admin-users-table--session-log .security-session-log-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-primary, #2e7af9) 55%, transparent);
  outline-offset: -2px;
}

.security-session-log-table-wrap {
  overflow-x: auto;
}

.security-session-log-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.security-session-log-table th,
.security-session-log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff3;
  text-align: left;
  vertical-align: top;
}

.security-session-log-table th {
  font-size: 10px;
  font-weight: 600;
  color: #5f6368;
  background: #f8fafd;
}

.security-session-log-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.security-session-log-badge--created {
  color: #0d652d;
  background: #e6f4ea;
}

.security-session-log-badge--deleted {
  color: #b06000;
  background: #fef7e0;
}

.security-session-log-session-id,
.security-session-log-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
}

.security-session-log-session-kind {
  font-size: 10px;
}

#section-security-session-log.panel.security-sessions-panel {
  padding-top: 0;
}

#section-security-session-log.panel.security-sessions-panel > h2 {
  display: none;
}

.security-sessions-state {
  padding: 0;
  font-size: 13px;
  text-align: left;
}

.security-session-group .security-sessions-state {
  padding: 12px 0;
}

.security-session-group-panel .security-sessions-state {
  padding: 0 18px 14px;
}

.address-clickable {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 1120px) {
  .layout,
  .layout:has(.account-summary-guide-slot:not(:empty)) {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .account-summary-content-slot,
  .account-summary-guide-slot {
    grid-column: 1 !important;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .account-summary-guide-slot {
    display: none !important;
  }

  .sidebar {
    grid-column: auto;
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin-bottom: 8px;
    background: var(--theme-sidebar-bg, var(--theme-surface-elevated));
    z-index: auto;
  }
  .menu {
    display: none !important;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
  }
  .sidebar.menu-open .menu {
    display: grid;
  }
  .menu-link {
    min-width: 0;
    white-space: normal;
    min-height: 54px;
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
    align-items: flex-start;
  }
}
@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand right"
      "search search";
    gap: 8px;
    height: auto;
    padding: 10px 12px;
  }
  .brand {
    grid-area: brand;
  }
  .search-box {
    grid-area: search;
  }
  .topbar-right {
    grid-area: right;
  }
  .app-launcher-panel,
  .profile-menu-panel {
    border-radius: 16px;
    overflow: hidden;
  }
  .layout {
    padding: 12px;
  }
  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin-bottom: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
    width: 100%;
  }
  .menu {
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
  }
  .sidebar.menu-open .menu {
    display: grid;
  }
  .menu-link {
    min-height: 54px;
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
    align-items: flex-start;
  }
  .menu-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 18px;
    margin-top: 1px;
  }
  .panel-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }
  .security-session-row__line {
    font-size: 12px;
  }
  .page-title {
    font-size: 28px;
  }

  .main-data-quick-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-profile-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .main-profile-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 1120px) {
  .menu {
    display: none !important;
  }
  .sidebar-back-mobile {
    display: inline-flex !important;
  }
}
@media (min-width: 1121px) {
  .sidebar-back-mobile {
    display: none !important;
  }
}

/* --- CSS mobile overlay menu da account-summary.ejs --- */
@media (max-width: 1120px) {
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 20,0.32);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transition: opacity 0.2s;
  }
  .mobile-menu-overlay.active {
    display: block !important;
    opacity: 1;
  }
  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    background: rgb(247, 247, 247);
    min-height: 100dvh;
    height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    box-shadow: 0 0 16px 0 rgba(20, 20, 20,0.08);
    position: relative;
    overflow: hidden;
  }
  .close-mobile-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
    font-size: 28px;
    z-index: 10001;
    cursor: pointer;
  }
  .menu-mobile-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    margin: 32px 0 0 0;
    padding: 0 18px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .menu-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--theme-menu-text);
    text-decoration: none;
    background: var(--theme-surface-elevated);
    border-radius: 8px;
    padding: 16px 14px;
    font-weight: 300;
    border: 0px;
    transition: background 0.2s, color 0.2s;
  }
  .menu-mobile-link.active,
  .menu-mobile-link.active:visited,
  .menu-mobile-link:focus,
  .menu-mobile-link:hover {
    background-color: var(--theme-menu-active-bg) !important;
    color: var(--theme-menu-text-active) !important;
  }
  .menu-mobile-link.active .material-symbols-outlined,
  .menu-mobile-link:hover .material-symbols-outlined,
  .menu-mobile-link:focus .material-symbols-outlined,
  .menu-mobile-link.active [class*='menu-icon-'],
  .menu-mobile-link:hover [class*='menu-icon-'],
  .menu-mobile-link:focus [class*='menu-icon-'] {
    color: var(--theme-menu-text-active) !important;
  }
  .menu-mobile-link .material-symbols-outlined {
    font-size: 24px;
  }
}
/* --- FINE CSS mobile overlay menu --- */

/* Brand Sinapsi/Account stile toolbar */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit !important;
  text-decoration: none;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  min-width: 0;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: inherit !important;
  text-decoration: none;
  outline: none;
}

.brand-sinapsi {
  font-weight: 800;
}
.brand-account {
  font-weight: 100;
  letter-spacing: 0.01em;
}

.material-symbols-outlined {
  color: var(--theme-text) !important;
}

.menu-link:not(.active):not(:hover) .menu-icon,
.menu-link:not(.active):not(:hover) [class*='menu-icon-'] {
  color: var(--theme-text) !important;
}

.menu-mobile-link:not(.active):not(:hover) .material-symbols-outlined,
.menu-mobile-link:not(.active):not(:hover) [class*='menu-icon-'] {
  color: var(--theme-text) !important;
}



/* ======================================
   AUTH / FORM PAGES — CLASSI CONDIVISE
   ====================================== */

/* Centering wrapper per pagine auth */
.page-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  margin-top: -30px;
}

.page-auth--stacked {
  display: block;
  min-height: 100vh;
  padding: 0 20px 32px;
  margin-top: 0;
}

.complete-profile-shell {
  width: 100%;
  max-width: 760px;
  margin: 24px auto 0;
}

.page-auth--stacked .card {
  max-width: none;
}

@media (max-width: 768px) {
  .page-auth--stacked {
    padding: 0 12px 24px;
  }

  .complete-profile-shell {
    margin-top: 16px;
  }
}

.login-message-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px;
}

.login-message-overlay[hidden] {
  display: none;
}

.login-message-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 247, 0.72);
  backdrop-filter: blur(8px);
}

.login-message-overlay__stack {
  position: relative;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-message-overlay__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.12);
}

.login-message-overlay__card.is-blocking {
  border-color: rgba(20, 20, 20, 0.22);
}

.login-message-overlay__content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.login-message-overlay__icon,
.login-message-overlay__title,
.login-message-overlay__message,
.login-message-overlay__state,
.login-message-overlay__close,
.login-message-overlay__close .material-symbols-outlined {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}

.login-message-overlay__icon {
  font-size: 24px;
  line-height: 1;
  margin-top: 1px;
  flex: 0 0 auto;
}

.login-message-overlay__copy {
  min-width: 0;
}

.login-message-overlay__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-message-overlay__message {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.55;
}

.login-message-overlay__state {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-message-overlay__close {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
}

.login-message-overlay__close .material-symbols-outlined {
  font-size: 22px;
}

.login-message-overlay__close:hover,
.login-message-overlay__close:focus-visible {
  opacity: 0.72;
}

/* Container a due colonne (login, signup, 2fa…) */
.container {
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-auth .container.container--signup-legal {
  max-width: 980px;
}

.page-auth .container.container--signup-legal .left {
  flex: 0 0 260px;
  padding: 40px 28px;
}

.page-auth .container.container--signup-legal .right {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 32px;
}

.signup-legal-item {
  width: 100%;
}

.signup-legal-box--plain {
  width: 100%;
}

.login-container {
  background: transparent !important;
}
.left,
.right {
  flex: 1;
  padding: 48px 40px;
  box-sizing: border-box;
}
.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.left > .auth-brand-logo {
  width: 100px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.left h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}
.left p {
  font-size: 14px;
  color: #5f6368;
}
.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card singola (reset-2fa, recovery, backup-codes…): components/cards.css */

/* Elementi di form */
.form-group {
  margin-bottom: 24px;
}
label {
  display: block;
  font-size: 13px;
  color: #3c4043;
  margin-bottom: 6px;
}
input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  background-color: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
}

input[type="file"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-input-bg);
  color: var(--theme-text-soft);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:focus::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button,
input[type="file"]:focus::-webkit-file-upload-button {
  background: var(--theme-button-bg-hover);
}
input:not([type]):focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
  border-color: #dadce0;
  outline: none;
  box-shadow: none;
  background-color: #f2f2f2;
}
.password-field {
  position: relative;
  isolation: isolate;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 44px;
  position: relative;
  z-index: 0;
}
.password-field input[type="password"]::-ms-reveal {
  display: none;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 2;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.toggle-password .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
}
.toggle-password:hover {
  color: #1a73e8;
}

/* Riga link (recupero password / 2fa) */
.links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}
.links a {
  color: #1a73e8;
  text-decoration: none;
}

.login-footer-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eceff3;
  flex-wrap: wrap;
  gap: 12px;
}

/* Blocco auth alternativo (passkey) */
.alt-auth {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eceff3;
  display: grid;
  gap: 10px;
}
.passkey-auth {
  margin-top: 16px;
}
.passkey-auth a.btn-primary,
.passkey-auth a.btn-primary:visited,
.passkey-auth a.btn-primary:hover,
.passkey-auth a.btn-primary:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--theme-button-bg) !important;
  border: none !important;
  color: var(--theme-button-text) !important;
  text-decoration: none;
}
.passkey-auth a.btn-primary:hover,
.passkey-auth a.btn-primary:focus {
  background: var(--theme-button-bg-hover) !important;
}
.alt-auth a {
  display: block;
  text-align: center;
  text-decoration: none;
  border: none;
  color: #1a73e8;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}
.alt-auth p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5f6368;
  text-align: center;
}
.alt-auth .btn-apple__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
}
.alt-auth .btn-apple__icon img {
  display: block;
  width: 18px;
  height: 18px;
}
.alt-auth .btn-apple__label {
  line-height: 1;
}
.alt-auth .btn-google,
.alt-auth .btn-google:visited,
.alt-auth a.btn-apple,
.alt-auth a.btn-apple:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: #fff;
  color: var(--sinapsi-black, rgb(20, 20, 20));
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.alt-auth .btn-google__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.alt-auth .btn-google__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.alt-auth .btn-google__label {
  line-height: 1;
}
.alt-auth .btn-google:hover,
.alt-auth .btn-google:focus,
.alt-auth a.btn-apple:hover,
.alt-auth a.btn-apple:focus {
  background: #f8f9fa;
  border: none;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

/* Messaggio di errore inline */
.error {
  color: #d93025;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Lang switch fisso */
.lang-switch {
  position: fixed;
  bottom: 14px;
  right: 16px;
  z-index: 100;
}
.lang-switch a {
  color: #5f6368;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 3px 9px;
  background: #fff;
}
.lang-switch a:hover {
  background: #f8f9fa;
}

.message-resend {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.message-resend a {
  color: var(--theme-link, #1a73e8);
  text-decoration: none;
}

.message-resend a:hover {
  text-decoration: none;
}

body.page-auth .message-resend a {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--theme-link) !important;
  font-weight: 400;
  padding: 0;
}

/* Riga azioni (pulsante + link) */
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
  flex-wrap: wrap;
}

.message-page__actions {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.page-auth--message .right {
  align-items: flex-start;
  text-align: left;
}

.page-auth--message .badge {
  align-self: flex-start;
}
.actions a {
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
}

.actions__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.actions--otp-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
}

.actions--otp-verify > button[type="submit"]:not(.actions__text-link) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.actions--otp-verify .actions__links {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.actions__verify-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.actions__text-link {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #1a73e8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  text-decoration: none;
}

.actions__text-link:hover,
.actions__text-link:focus-visible {
  background: transparent;
  text-decoration: underline;
}

.actions button:not(.actions__text-link) {
  border: none;
  background: rgb(20, 20, 20);
  color: #fff;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* Hint / note campo */
.hint {
  font-size: 12px;
  color: #5f6368;
  margin-top: 6px;
  line-height: 1.4;
}

/* Messaggi di stato (card/form) */
.msg {
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--sinapsi-black, rgb(20, 20, 20));
  background: #f8f9fa;
}
.msg.error {
  border-color: #f6c1bd;
  background: #fce8e6;
  color: #b3261e;
}
.msg.success {
  border-color: #cce7d1;
  background: #e6f4ea;
  color: #137333;
}

/* Warning */
.warning {
  border: 1px solid #f9ab00;
  background: #fff8e1;
  color: #8d4e00;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 14px 0 18px;
  font-size: 13px;
}

/* Sottotitolo */
p.subtitle,
.subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.45;
}

/* Pagina messaggio */
.message {
  margin: 0;
  color: #3c4043;
  font-size: 15px;
  line-height: 1.5;
}
.action-link,
.action-btn {
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  transition: all 0.15s ease;
}
.action-link {
  color: #1a73e8;
  border: 1px solid #d2e3fc;
  background: #fff;
}
.action-link:hover { background: #f1f8ff; }
a.action-btn,
a.action-btn:visited,
a.action-btn:hover,
a.action-btn:focus {
  color: #fff !important;
  border: 1px solid rgb(20, 20, 20);
  background: rgb(20, 20, 20);
  border-radius: 6px;
  font-weight: 500;
}
a.action-btn:hover,
a.action-btn:focus {
  background: rgb(40, 40, 40);
  border-color: rgb(40, 40, 40);
}

/* Badge colori (message.ejs) */
.badge-success {
  background: transparent;
  color: #137333;
  margin-bottom: 10px;
}
.badge-error   { background: transparent; color: #c5221f; }
.badge-warning { background: transparent; color: #b06000; }
.badge-info    { background: transparent; color: #1967d2; }

/* 2FA */
.secret-box {
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--sinapsi-black, rgb(20, 20, 20));
  background: #f8f9fa;
  word-break: break-all;
  margin-bottom: 10px;
}
.qr-wrap {
  text-align: center;
  margin: 12px 0 16px;
}
.qr-wrap img {
  width: 220px;
  height: 220px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
}
.compatible-list {
  margin: 10px 0 14px;
  padding-left: 18px;
  color: #3c4043;
  font-size: 13px;
  line-height: 1.4;
}
.compatible-list li { margin-bottom: 4px; }
.backup-code-field input[type="text"] {
  letter-spacing: 1px;
  text-transform: uppercase;
}
.separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #5f6368;
  font-size: 12px;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eceff3;
}
.field-note {
  margin-top: 8px;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.4;
}
.inline-form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.action-link-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

/* Header colorato (passkey) */
.header {
  background: var(--theme-surface-elevated);
  text-align: center;
}
.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}
.header p {
  background: transparent;
  color: var(--theme-text-soft);
  font-size: 14px;
}
.header-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

/* Pulsanti passkey */
.btn-primary {
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  grid-column: 1 / -1;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 20, 20, 0.3);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--theme-button-bg-hover); }
.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

/* Alert inline */
.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error   { background: #ffeeee; color: #cc3333; border: 1px solid #ffcccc; }
.alert-success { background: #eeffee; color: #33cc33; border: 1px solid #ccffcc; }

/* Spinner rotante */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Steps (passkey-register) */
.steps {
  background: #f9f9f9;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
}
.steps ol { margin: 0; padding-left: 20px; }
.steps li  { margin-bottom: 8px; }

/* Divisore orizzontale */
.divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  gap: 10px;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.divider-text  { font-size: 12px; color: #999; }

/* Link "torna indietro" */
.back-link { display: block; text-align: center; margin-top: 20px; }
.back-link a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #1a73e8; text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link .material-symbols-outlined { font-size: 18px; line-height: 1; }
.back-link a:hover { text-decoration: underline; }

/* Griglia a due colonne (complete-profile) */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.complete-profile-shell .sinapsi-single-date-field {
  min-width: 0;
}
.full { grid-column: 1 / -1; }

/* Sezione foto profilo */
.photo-section {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fbfcfe;
}
.photo-preview {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 84px;
  background: #dbe7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #174ea6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-meta { min-width: 0; flex: 1; }
.photo-title { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--sinapsi-black, rgb(20, 20, 20)); }
.photo-subtitle { margin: 0 0 10px; font-size: 12px; color: #5f6368; line-height: 1.45; }
.photo-upload-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-file-input {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  pointer-events: none;
}
.photo-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2e3fc;
  background: #fff;
  color: #1a73e8;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.photo-upload-button:hover { background: #eef3fd; }
.photo-file-name { font-size: 12px; color: #5f6368; line-height: 1.4; }
.photo-remove-toggle {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}
.photo-remove-toggle input {
  margin: 0;
}
.photo-remove-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.45;
}

/* Titolo sezione */
.section-title { margin: 18px 0 8px; font-size: 15px; color: var(--sinapsi-black, rgb(20, 20, 20)); font-weight: 500; }

/* Indirizzi (complete-profile) */
.addresses { margin-top: 14px; border-top: 1px solid #eceff3; padding-top: 12px; }
.address-item { font-size: 13px; color: #3c4043; margin-bottom: 6px; }
.address-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--theme-link);
}

.profile-back-link .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.profile-back-link:hover {
  opacity: 0.86;
}

.address-link {
  display: inline-block;
  font-size: 12px;
}
.required-icon { color: #d93025; margin-left: 4px; font-weight: 700; }
.inline { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94); }
.inline input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}

/* Option box (signup) */
.option-box {
  margin-bottom: 24px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafd;
}

.option-box--plain {
  margin-bottom: 24px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.option-box label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  cursor: pointer;
}
.option-box input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}
.option-box small { display: block; margin-top: 6px; color: #5f6368; font-size: 12px; line-height: 1.4; }

.legal-documents-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 24px;
}

.signup-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signup-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-step--credentials {
  gap: 0;
}

.signup-step[hidden] {
  display: none !important;
}

.signup-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signup-step__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.signup-step__actions {
  margin-top: 2px;
}

.actions button.signup-step__back {
  border: none;
  background: transparent;
  color: #1a73e8;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}

.actions button.signup-step__back:hover {
  background: transparent;
  text-decoration: underline;
}

.signup-step--credentials .form-group {
  margin-bottom: 14px;
}

.signup-step--credentials .hint {
  margin-top: 2px;
}

.signup-password-rules {
  margin: 2px 0 0;
}

.signup-password-rules__trigger {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-link, #1a73e8);
  font-size: calc(12px * var(--ui-font-scale, 1));
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none;
}

.signup-password-rules__trigger:hover,
.signup-password-rules__trigger:focus {
  color: var(--theme-link-hover, #1558b0);
}

body.auth-info-modal-open {
  overflow: hidden;
}

.auth-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-info-modal[hidden] {
  display: none;
}

.auth-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
}

.auth-info-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 33, 36, 0.24);
  padding: 20px 22px;
}

.auth-info-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-info-modal__header h2 {
  margin: 0;
  font-size: calc(18px * var(--ui-font-scale, 1));
  line-height: 1.3;
}

.auth-info-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
}

.auth-info-modal__close:hover,
.auth-info-modal__close:focus {
  background: #f1f3f4;
  color: #202124;
}

.auth-info-modal__body {
  color: #3c4043;
  font-size: calc(14px * var(--ui-font-scale, 1));
  line-height: 1.5;
}

.auth-info-modal__list {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-info-modal__list li + li {
  margin-top: 6px;
}

.activation-resend__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.signup-activation-resend-hint a {
  color: var(--theme-link, #1a73e8);
  text-decoration: none;
}

.signup-activation-resend-hint a:hover,
.signup-activation-resend-hint a:focus {
  text-decoration: none;
}

.signup-legal-box {
  margin: 18px 0 24px;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: #fbfcfe;
}

.signup-legal-box--plain {
  margin: 0 0 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.signup-legal-item + .signup-legal-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceff3;
}

.signup-legal-item__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.signup-legal-item__label {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.signup-legal-item__check input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.signup-legal-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.signup-legal-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.signup-legal-item__link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

.signup-legal-item__link:hover {
  text-decoration: underline;
}

.legal-document-box {
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.legal-document-box.is-required {
  background: #fbfcfe;
}

.legal-document-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-document-box__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.legal-document-box__meta-item {
  white-space: nowrap;
  margin: 0;
}

.legal-document-box__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.legal-document-box__summary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5f6368;
}

.legal-document-box__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sinapsi-black, rgb(20, 20, 20));
}

.legal-document-box__check input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.legal-document-box__accepted {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.legal-document-box__details {
  border-top: 1px solid #eceff3;
  padding-top: 12px;
}

.legal-document-box__details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1a73e8;
}

.legal-document-box__content {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sinapsi-black, rgb(20, 20, 20));
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #eceff3;
  background: #f8fafd;
}

.legal-document-box__content.rich-text-content--html {
  white-space: normal;
}

.legal-document-box__content.rich-text-content--html p {
  margin: 0 0 0.9em;
}

.legal-document-box__content.rich-text-content--html p:last-child {
  margin-bottom: 0;
}

.legal-document-box__content.rich-text-content--html strong,
.legal-document-box__content.rich-text-content--html b {
  font-weight: 700;
}

.legal-document-box__content.rich-text-content--html ul,
.legal-document-box__content.rich-text-content--html ol {
  margin: 0 0 0.9em 1.2em;
  padding-left: 1.1em;
}

.legal-document-box__content--standalone {
  max-height: none;
}

.legal-document-box__link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}

.legal-document-box__link:hover {
  text-decoration: underline;
}

.legal-acceptance-shell,
.pkce-profile-required-shell {
  max-width: 720px;
}

.pkce-profile-required-list {
  margin: 0 0 20px;
  padding-left: 20px;
}

.pkce-profile-required-list li {
  margin-bottom: 8px;
}

.actions--pkce-profile-required {
  margin-top: 8px;
}

.actions--pkce-profile-required .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.legal-document-shell {
  max-width: none;
}

.legal-acceptance-shell .legal-document-box + .legal-document-box {
  margin-top: 28px;
}

.legal-acceptance-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.legal-acceptance-shell__logout {
  background: #fff;
  cursor: pointer;
}

.actions__inline-form {
  margin: 0;
}

.actions--legal-acceptance {
  justify-content: space-between;
  align-items: center;
}

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

/* Backup codes */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.code-item {
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--sinapsi-black, rgb(20, 20, 20));
  background: #f8fafd;
}

/* Notice (backup-codes) */
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.notice.info    { background: #e8f0fe; color: #174ea6; border: 1px solid #d2e3fc; }
.notice.warning { background: #fef7e0; color: #7c4a03; border: 1px solid #fde293; }
.notice.success { background: #e6f4ea; color: #137333; border: 1px solid #cce7d1; }

.passkey-reminder-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d4a24c;
  background: #f3e0c0;
  color: #5c4218;
}

.passkey-reminder-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.passkey-reminder-banner__icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  color: #9a6b12;
}

.passkey-reminder-banner__copy {
  min-width: 0;
}

.passkey-reminder-banner__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.3;
}

.passkey-reminder-banner__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5c4218;
}

.passkey-reminder-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.passkey-reminder-banner__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background: #f8ecd8;
  border: 1px solid #c9a227;
  color: #5c4218;
}

.passkey-reminder-banner__action:hover,
.passkey-reminder-banner__action:focus-visible {
  background: #ead4b0;
  border-color: #8b6914;
  color: #3f2f11;
}

.admin-password-notice-banner {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .passkey-reminder-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .passkey-reminder-banner__actions {
    justify-content: flex-start;
  }
}
.helper { margin-top: 18px; font-size: 13px; color: #5f6368; line-height: 1.5; }

/* Account messages */
.account-message-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 2400;
  pointer-events: none;
}

body:not(.page-auth) .account-message-center {
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 14px));
}

body.page-auth--stacked .account-message-center {
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 14px));
}

.account-message-center.has-blocking {
  align-items: center;
  padding-top: max(24px, env(safe-area-inset-top));
}

.account-message-center[hidden] {
  display: none !important;
}

.account-message-center__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: auto;
}

.account-message-center.has-blocking .account-message-center__backdrop {
  opacity: 1;
}

.account-message-center__stack {
  position: relative;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-end;
}

.account-message-center.has-blocking .account-message-center__stack {
  width: min(100%, 560px);
}

.account-toast {
  --account-toast-accent: #8ab4f8;
  --account-toast-bg: rgba(20, 20, 20, 0.96);
  --account-toast-text: #f8fafc;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--account-toast-accent) 36%, rgba(255, 255, 255, 0.18));
  background: var(--account-toast-bg);
  color: var(--account-toast-text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(18px);
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.account-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.account-toast.is-leaving {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.account-toast.is-blocking {
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.3);
}

.account-toast.is-click-dismissible {
  cursor: pointer;
}

.account-toast.is-click-dismissible .account-toast__close {
  cursor: pointer;
}

.account-toast__tone {
  flex: 0 0 4px;
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--account-toast-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--account-toast-accent) 18%, transparent);
}

.account-toast__body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.account-toast__title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

.account-toast__message {
  font-size: 14px;
  line-height: 1.45;
  color: color-mix(in srgb, #fff 92%, #cbd5e1);
}

.account-toast__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.84;
}

.account-toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.account-toast--info {
  --account-toast-accent: var(--theme-status-info-color);
  --account-toast-bg: color-mix(in srgb, var(--sinapsi-black, rgb(20, 20, 20)) 90%, var(--theme-status-info-bg));
}

.account-toast--success {
  --account-toast-accent: var(--theme-status-ok-color);
  --account-toast-bg: color-mix(in srgb, var(--sinapsi-black, rgb(20, 20, 20)) 90%, var(--theme-status-ok-bg));
}

.account-toast--warning {
  --account-toast-accent: #f6c86c;
  --account-toast-bg: color-mix(in srgb, var(--sinapsi-black, rgb(20, 20, 20)) 88%, #59400d);
}

.account-toast--error {
  --account-toast-accent: #ff8a80;
  --account-toast-bg: color-mix(in srgb, var(--sinapsi-black, rgb(20, 20, 20)) 88%, #5c1717);
}

body.account-messages-has-blocking {
  overflow: hidden;
}

@media (max-width: 640px) {
  .account-message-center {
    padding-left: 10px;
    padding-right: 10px;
  }

  .account-toast {
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .account-toast__message {
    font-size: 13px;
  }
}

/* Consent */
.allow { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; }
.deny  { background: var(--theme-danger-button-bg, var(--theme-danger, #cf2d56)); color: var(--theme-danger-button-text, #ffffff); padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; }

/* Responsive auth */
@media (max-width: 1120px) {
  .login-message-overlay {
    padding: 16px 12px;
  }

  .login-message-overlay__card {
    padding: 16px;
    border-radius: 16px;
  }

  .login-message-overlay__content {
    gap: 10px;
  }

  .container {
    flex-direction: column;
    border-radius: 0;
    border: none;
  }
  .left,
  .right {
    padding: 32px 24px;
    padding-bottom: 20px;
    padding-top: 10px;
  }
  .left {
    display: grid;
    grid-template-columns: minmax(72px, 92px) minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .left > .auth-brand-logo {
    grid-column: 1;
    grid-row: 1 / span 99;
    width: 100%;
    max-width: 92px;
    margin-bottom: 0;
    align-self: start;
  }
  .left > :not(img) {
    grid-column: 2;
  }
  .left h1 {
    margin-bottom: 0;
  }
  .left p {
    margin: 0;
  }
  .actions {
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
  }

  .actions--otp-verify {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 16px;
  }

  .actions--otp-verify > button[type="submit"]:not(.actions__text-link) {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .actions--otp-verify .actions__links {
    grid-column: 1;
    grid-row: 2;
  }

  .message-page__actions {
    align-items: flex-start;
  }

  .actions a {
    align-self: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .photo-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .codes-grid {
    grid-template-columns: 1fr;
  }

  .legal-document-box__header,
  .legal-acceptance-shell__topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-auth .container.container--signup-legal {
    max-width: 100%;
  }

  .page-auth .container.container--signup-legal .left,
  .page-auth .container.container--signup-legal .right {
    flex: 1 1 auto;
    padding: 32px 24px;
  }

  .signup-legal-item__preview {
    max-height: min(22vh, 140px);
    min-height: 100px;
  }

  .legal-document-box__meta {
    align-items: flex-start;
  }

  .signup-legal-item__check input[type="checkbox"],
  .legal-document-box__check input[type="checkbox"] {
    flex: 0 0 auto;
  }
}

body {
  background: var(--theme-body-bg);
  color: var(--theme-text);
}

a[href]:not(.app-guide-fab):not(.menu-link):not(.menu-mobile-link):not(.brand-link):not(.profile-menu-item-link):not(.app-launcher-item):not(.security-notice-panel__action):not(.btn-primary):not(.btn-secondary):not(.btn-google):not(.btn-apple):not(.action-btn):not(.row-actions a):not(.spc-console-inline-action):not(.spc-console-json-export-button):not(.api-docs-card__link):not(.admin-tab):not(.admin-pagination__link):not(.admin-users-pagination__page):not(.admin-users-pagination__nav):not(.admin-table-action-link):not(.ui-table-footer__nav-btn):not(.ui-table-footer__reset):not(.developer-guide-index__link):not(.developer-guide-doc__toc a):not(.developer-guide-doc__content a) {
  color: var(--theme-link) !important;
}

.profile-menu-panel,
.mobile-menu-content,
.header {
  background: var(--theme-surface-elevated);
}

.search-box,
.profile-menu-trigger,
.profile-menu-avatar-fallback {
  background: var(--theme-surface-muted);
}

.brand,
.search-box input,
.profile-menu-item,
.mobile-menu-toggle,
.page-title,
.panel h2,
.row-label,
.message,
.section-title,
.inline,
.option-box label,
.code-item,
.left h1,
.photo-title {
  color: var(--theme-text);
}

.menu-link,
.menu-mobile-link,
.mobile-menu-toggle-text {
  color: var(--theme-menu-text);
}

.mobile-menu-toggle-kicker,
.mobile-menu-caret,
.muted,
.hint,
.subtitle,
p.subtitle,
.field-note,
.helper,
.lang-switch a,
.option-box small,
.photo-subtitle,
.photo-file-name,
.row-value,
.left p,
.separator,
.divider-text,
label,
.address-item,
.compatible-list {
  color: var(--theme-text-soft);
}

.lang-switch a,
.container,
.card,
.panel,
.profile-menu-panel,
.secret-box,
.qr-wrap img,
.code-item,
.msg,
.option-box,
.photo-section,
.action-link,
.alt-auth a,
.photo-upload-button,
.menu-mobile-link,
.menu-mobile-link.active {
  border-color: var(--theme-border);
}

.topbar {
  border-bottom: 1px solid var(--theme-border-soft);
}

.panel,
.card,
.container {
  background: var(--theme-surface-elevated);
}

.panel.security-sessions-panel,
.panel.security-sessions-panel.card {
  background: transparent;
}

.panel-heading,
.panel h2,
.panel-row,
.main-profile-hero {
  background: transparent;
}

.menu-mobile-link,
.secret-box,
.steps,
.option-box,
.code-item,
.photo-section,
.mobile-menu-link {
  background: var(--theme-surface-elevated);
}

.panel-heading,
.panel h2,
.panel-row,
.alt-auth,
.addresses,
.separator::before,
.separator::after,
.divider::before,
.divider::after {
  border-color: var(--theme-border-soft);
}

.status {
  border-color: var(--theme-status-info-border);
  background: var(--theme-status-info-bg);
  color: var(--theme-status-info-color);
}

.status.ok {
  border-color: var(--theme-status-ok-border);
  background: var(--theme-status-ok-bg);
  color: var(--theme-status-ok-color);
}

.menu-link:hover,
.menu-link.active,
.menu-link.active:visited,
.menu-link.active:hover,
.menu-link.active:focus-visible,
.menu-mobile-link.active,
.menu-mobile-link.active:visited,
.menu-mobile-link:focus,
.menu-mobile-link:hover {
  background-color: var(--theme-menu-active-bg) !important;
  color: var(--theme-menu-text-active) !important;
}

.chip,
.address-actions a,
.address-link,
.action-link,
.photo-upload-button,
.alt-auth a {
/*  background: var(--theme-surface-muted);*/
  color: var(--theme-link);
  border: none;
}

.row-actions button:not(.danger),
.admin-message-actions button:not(.danger),
.actions button:not(.danger),
.btn-primary,
.btn-secondary,
button.primary,
.allow,
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-secondary,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:focus,
a.action-btn,
a.action-btn:visited,
a.action-btn:hover,
a.action-btn:focus,
.row-actions a:not(.danger),
.row-actions a:not(.danger):visited,
.row-actions a:not(.danger):hover,
.row-actions a:not(.danger):focus {
  background: var(--theme-button-bg, #141414);
  color: var(--theme-button-text, #ffffff) !important;
  text-decoration: none !important;
}

.actions button:not(.danger):hover,
.btn-secondary:hover,
.btn-primary:hover:not(:disabled),
a.action-btn:hover,
a.action-btn:focus,
.row-actions button:not(.danger):hover:not(:disabled),
.row-actions a:not(.danger):hover,
.row-actions a:not(.danger):focus,
.row-actions a:not(.danger):visited {
  background: var(--theme-button-bg-hover, #333333);
  color: var(--theme-button-text, #ffffff) !important;
  text-decoration: none !important;
}

.alt-auth a.btn-primary,
.alt-auth a.btn-primary:visited,
.alt-auth a.btn-primary:hover,
.alt-auth a.btn-primary:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--theme-button-bg) !important;
  color: var(--theme-button-text) !important;
  text-decoration: none;
}

.alt-auth a.btn-primary:hover,
.alt-auth a.btn-primary:focus {
  background: var(--theme-button-bg-hover) !important;
}

/* Login / signup: contrasto pulsanti (evita testo scuro su sfondo scuro) */
body.page-auth .actions button:not(.signup-step__back):not(.toggle-password):not(.action-link):not(.action-link-button):not(.actions__text-link):not(.legal-acceptance-shell__logout),
body.page-auth button[type="submit"]:not(.signup-step__back):not(.toggle-password):not(.action-link):not(.action-link-button):not(.actions__text-link):not(.legal-acceptance-shell__logout),
body.page-auth .btn-primary,
body.page-auth .btn-secondary,
body.page-auth button.primary,
body.page-auth a.btn-primary,
body.page-auth a.btn-primary:visited,
body.page-auth a.action-btn,
body.page-auth a.action-btn:visited {
  background: var(--theme-button-bg) !important;
  border: none !important;
  color: var(--theme-button-text, #ffffff) !important;
}

body.page-auth .actions button:not(.signup-step__back):not(.toggle-password):not(.action-link):not(.action-link-button):not(.actions__text-link):not(.legal-acceptance-shell__logout):hover,
body.page-auth button[type="submit"]:not(.signup-step__back):not(.toggle-password):not(.action-link):not(.action-link-button):not(.actions__text-link):not(.legal-acceptance-shell__logout):hover,
body.page-auth .btn-primary:hover:not(:disabled),
body.page-auth .btn-secondary:hover:not(:disabled),
body.page-auth button.primary:hover:not(:disabled),
body.page-auth a.btn-primary:hover,
body.page-auth a.btn-primary:focus,
body.page-auth a.action-btn:hover,
body.page-auth a.action-btn:focus {
  background: var(--theme-button-bg-hover) !important;
  color: var(--theme-button-text, #ffffff) !important;
}

body.page-auth .actions a:not(.btn-primary):not(.btn-secondary):not(.btn-google):not(.btn-apple):not(.action-btn),
body.page-auth .actions button.actions__text-link,
body.page-auth .actions button.signup-step__back,
body.page-auth button.signup-step__back {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--theme-link) !important;
  font-weight: 400;
  padding: 0;
  text-decoration: none;
}

body.page-auth .actions button.signup-step__back:hover,
body.page-auth button.signup-step__back:hover,
body.page-auth .actions button.actions__text-link:hover,
body.page-auth .actions button.actions__text-link:focus-visible {
  background: transparent !important;
  text-decoration: underline;
}

body.page-auth .legal-acceptance-shell__logout {
  background: var(--theme-surface-elevated, #ffffff) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: 6px !important;
  color: var(--theme-text) !important;
  padding: 10px 20px !important;
  font-weight: 500;
}

body.page-auth button.action-link.action-link-button,
body.page-auth .action-link.action-link-button {
  background: var(--theme-surface-muted) !important;
  border: 1px solid var(--theme-border-strong) !important;
  border-radius: 999px !important;
  color: var(--theme-link) !important;
  padding: 10px 18px !important;
  font-weight: 500;
}

body.page-auth .alt-auth .btn-google,
body.page-auth .alt-auth .btn-google:visited,
body.page-auth .alt-auth a.btn-apple,
body.page-auth .alt-auth a.btn-apple:visited {
  background: #ffffff !important;
  border: none !important;
  color: var(--sinapsi-black, rgb(20, 20, 20)) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

body.page-auth .alt-auth .btn-google:hover,
body.page-auth .alt-auth .btn-google:focus,
body.page-auth .alt-auth a.btn-apple:hover,
body.page-auth .alt-auth a.btn-apple:focus {
  background: #f8f9fa !important;
  border: none !important;
  color: var(--sinapsi-black, rgb(20, 20, 20)) !important;
}

.row-actions button.danger,
.admin-message-actions button.danger,
.row-actions a.danger,
button.danger,
input[type="submit"].danger,
.deny {
  background: var(--theme-danger-button-bg, var(--theme-danger, #cf2d56)) !important;
  color: var(--theme-danger-button-text, #ffffff) !important;
  border: none !important;
}

.row-actions button.danger:hover:not(:disabled),
.row-actions button.danger:focus-visible,
.admin-message-actions button.danger:hover:not(:disabled),
.admin-message-actions button.danger:focus-visible,
.row-actions a.danger:hover,
.row-actions a.danger:focus-visible,
button.danger:hover:not(:disabled),
button.danger:focus-visible,
input[type="submit"].danger:hover:not(:disabled),
input[type="submit"].danger:focus-visible,
.deny:hover,
.deny:focus-visible {
  background: var(--theme-danger-button-bg-hover, color-mix(in srgb, var(--theme-danger, #cf2d56) 82%, #000000)) !important;
  color: var(--theme-danger-button-text, #ffffff) !important;
  border: none !important;
  text-decoration: none !important;
}

.chip.danger,
.required-icon,
.error {
  background: transparent !important;
  color: var(--theme-danger, #d93025) !important;
  border: 1px solid var(--theme-danger-soft, #f4c7c3) !important;
}

.row-actions button.danger .material-symbols-outlined,
.admin-message-actions button.danger .material-symbols-outlined,
button.danger .material-symbols-outlined {
  color: inherit !important;
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="file"],
select,
textarea {
  background-color: var(--theme-input-bg);
  border-color: var(--theme-border);
  color: var(--theme-text);
  accent-color: var(--theme-link);
}

input:not([type]):focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
  border-color: var(--theme-border);
  outline: none;
  box-shadow: none;
  background-color: var(--theme-surface-muted);
}

.toggle-password,
.actions a,
.links a,
.back-link a,
.action-link,
.photo-upload-button,
.alt-auth a,
.notice.info,
.badge-info {
  color: var(--theme-link);
}

.msg,
.secret-box,
.steps,
.lang-switch a,
.action-link,
.photo-upload-button,
.notice.info {
  background: var(--theme-surface-muted);
}

.notice.info {
  border-color: var(--theme-status-info-border);
}

.notice.success,
.msg.success,
.alert-success {
  border-color: var(--theme-status-ok-border);
  background: var(--theme-status-ok-bg);
  color: var(--theme-status-ok-color);
}

.notice.warning,
.warning {
  border-color: #f3d39b;
  background: #fff7e8;
  color: #a76b12;
}

.msg.error,
.alert-error {
  border-color: var(--theme-danger-soft);
  background: #fff1f4;
  color: var(--theme-danger);
}

.badge-warning {
  background: transparent;
  color: #a76b12;
}

.badge-error {
  background: transparent;
  color: var(--theme-danger);
}

.menu-icon-main-data {
  color: var(--theme-icon-main) !important;
}

.menu-icon-settings {
  color: var(--theme-icon-settings) !important;
}

.menu-icon-security {
  color: var(--theme-icon-security) !important;
}

.menu-icon-passkeys {
  color: var(--theme-icon-passkeys) !important;
}

.menu-icon-backup-codes {
  color: var(--theme-icon-backup) !important;
}

.menu-icon-applications {
  color: var(--theme-icon-applications) !important;
}

.menu-icon-devices {
  color: #6d4c41;
}

.menu-icon-wallet {
  color: var(--theme-icon-wallet) !important;
}

.menu-icon-dbox {
  color: var(--theme-icon-applications) !important;
}

.menu-icon-addresses {
  color: var(--theme-icon-addresses) !important;
}

.app-section-subtitle {
  margin: 6px 0 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.app-card {
  padding: 18px;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--theme-surface-muted);
  color: var(--theme-link);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.app-card-icon:hover,
.app-card-icon:focus {
  background: var(--theme-link-hover-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-focus) 18%, transparent);
  transform: translateY(-1px);
}

.app-card-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.app-card-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-card-copy {
  min-width: 0;
}

.app-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--theme-text);
  word-break: break-word;
}

.app-card-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--theme-text-soft);
  word-break: break-word;
}

.app-empty-state {
  margin-top: 18px;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 0;
}

.store-product-grid > .store-product-card {
  height: 100%;
}

#section-store .store-product-detail__toolbar {
  margin-bottom: 18px;
}

#section-store .store-product-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text) !important;
  text-decoration: none;
  font-weight: 600;
}

#section-store .store-product-detail__back:hover,
#section-store .store-product-detail__back:focus {
  background: color-mix(in srgb, var(--theme-surface-muted) 72%, white);
}

#section-store {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.store-product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 320px);
  align-items: start;
  gap: 24px;
  margin-top: 18px;
}

.store-product-detail-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.store-product-detail__main,
.store-product-detail__sidebar {
  min-width: 0;
}

.store-product-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-product-detail__sidebar-title {
  margin: 0;
  color: var(--theme-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-product-list--sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-product-card {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 0 20px 20px;
  border-radius: 18px;
  background: var(--theme-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.store-product-card:not(.store-product-card--detail):not(.store-product-card--sidebar) {
  gap: 10px;
  padding-bottom: 16px;
}

.store-product-card__stretch {
  flex: 1 1 auto;
  min-height: 0;
  pointer-events: none;
}

.store-product-card__body {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.store-product-card__footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 0;
}

.store-product-card:not(.store-product-card--detail):not(.store-product-card--sidebar) .store-product-card__footer {
  min-height: 126px;
}

.store-product-card__status-slot {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 126px;
}

.store-product-card__badge-spacer {
  flex: 0 0 0;
  width: 0;
  height: 24px;
}

.store-product-card--clickable {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.store-product-card--clickable:hover,
.store-product-card--clickable:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.store-product-card--detail {
  width: 100%;
}

.store-product-card--sidebar {
  width: 100%;
  padding: 0 16px 16px;
  gap: 12px;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.store-product-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px !important;
}

.store-product-card--sidebar .store-product-card__stretched-link {
  border-radius: 16px !important;
}

.store-product-card__visual {
  width: calc(100% + 40px);
  margin: 0 -20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  border: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-border-strong) 58%, white), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-surface-muted) 86%, white), color-mix(in srgb, var(--theme-surface-elevated) 94%, white));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.store-product-card--sidebar .store-product-card__visual {
  width: calc(100% + 32px);
  margin: 0 -16px;
  border-radius: 16px 16px 0 0;
}

.store-product-card__image,
.store-product-card__placeholder {
  width: 100%;
  height: 100%;
}

.store-product-card__image {
  display: block;
  object-fit: cover;
}

.store-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--theme-link) 72%, white);
}

.store-product-card--sidebar .store-product-card__placeholder {
  font-size: 28px;
}

.store-product-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.store-product-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--theme-text);
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-product-card--detail .store-product-card__title {
  min-height: 0;
  display: block;
}

.store-product-card__title--sidebar {
  min-height: 0;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.store-product-card__price,
.store-product-card__purchase-line span {
  color: var(--theme-text-muted);
}

.store-product-card__description {
  margin: 0;
  line-height: 1.55;
  color: var(--theme-text-soft);
}

.store-product-card:not(.store-product-card--detail):not(.store-product-card--sidebar) .store-product-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: calc(1.55em * 2);
}

.store-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.store-product-card__meta--empty {
  display: none;
}

.store-product-card--detail .store-product-card__description {
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

.store-product-card__description-more {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: -2px;
  color: var(--theme-link);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.store-product-card__description-more:hover,
.store-product-card__description-more:focus {
  color: var(--theme-text);
  text-decoration: none;
}

.store-product-card__divider {
  width: 100%;
  height: 1px;
  background: var(--theme-border-soft);
}

.store-product-card__sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-product-card__sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-product-card__price--sidebar {
  font-size: 14px;
}

.store-plan-slot {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 88px;
}

.store-plan-slot--compact {
  min-height: 80px;
}

.store-plan-slot--compact .store-plan-nav__viewport {
  min-height: 64px;
}

.store-plan-slot--compact .store-plan-picker {
  gap: 4px;
  min-height: 80px;
  justify-content: center;
}

.store-plan-slot--compact .store-plan-nav__dots {
  min-height: 8px;
}

.store-plan-slot--placeholder {
  pointer-events: none;
}

.store-plan-slot--placeholder.store-plan-slot--compact {
  min-height: 80px;
}

.store-plan-picker {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: inherit;
}

.store-plan-nav {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.store-plan-nav--single,
.store-plan-nav--no-subscription {
  grid-template-columns: minmax(0, 1fr);
}

.store-plan-nav--single .store-plan-nav__btn,
.store-plan-nav--no-subscription .store-plan-nav__btn {
  display: none;
}

.store-plan-nav__btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-muted) 70%, white);
  color: var(--theme-text-soft);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.store-plan-nav__btn:hover,
.store-plan-nav__btn:focus-visible {
  background: color-mix(in srgb, var(--theme-link) 12%, var(--theme-surface-muted));
  color: var(--theme-text);
  outline: none;
}

.store-plan-nav__btn .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.store-plan-nav__viewport {
  overflow: hidden;
  width: 100%;
  min-height: 64px;
}

.store-plan-nav__track {
  display: flex;
  width: 100%;
  transition: transform .24s ease;
  will-change: transform;
}

.store-plan-nav__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 10px;
}

.store-plan-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-text-soft) 35%, transparent);
  transition: transform .18s ease, background-color .18s ease;
  cursor: pointer;
}

.store-plan-nav__dot.is-active {
  transform: scale(1.15);
  background: var(--theme-link, var(--md-sys-color-primary));
}

.store-plan-picker__options {
  display: none;
}

#section-store .store-product-card__meta .badge,
#section-store .store-product-card__sidebar-meta .badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-text-muted);
  font-weight: 400;
  line-height: 1.45;
  border-radius: 0;
}

.store-product-card__purchase {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-product-card__purchase-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.store-product-card__purchase-line strong {
  color: var(--theme-text);
}

.store-product-card__actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-product-card__actions--stacked {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.store-product-card__primary-action {
  width: 100%;
  justify-content: center;
}

.store-product-card--inactive {
  cursor: default;
}

.store-product-card--inactive:hover,
.store-product-card--inactive:focus-within {
  box-shadow: none;
  transform: none;
}

.store-product-card__primary-action--unavailable {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.store-product-card__primary-action--unavailable:hover,
.store-product-card__primary-action--unavailable:focus {
  transform: none;
  box-shadow: none;
}

.store-plan-option {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  cursor: pointer;
}

.store-plan-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.store-plan-option__card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 16px;
  border: none;
  border-radius: 7px;
  background: color-mix(in srgb, var(--theme-surface-muted) 42%, white);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.store-plan-option:hover .store-plan-option__card {
  background: color-mix(in srgb, var(--theme-surface-muted) 58%, white);
}

.store-plan-option input:focus-visible + .store-plan-option__card {
  outline: 2px solid var(--theme-focus, var(--md-sys-color-primary));
  outline-offset: 2px;
}

.store-plan-option input:checked + .store-plan-option__card {
  background: color-mix(in srgb, var(--theme-link-hover-bg, var(--md-sys-color-primary-container)) 35%, white);
  box-shadow: none;
}

.store-plan-option__indicator {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid color-mix(in srgb, var(--theme-text-soft) 55%, transparent);
  border-radius: 50%;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.store-plan-option input:checked + .store-plan-option__card .store-plan-option__indicator {
  border-color: var(--theme-link, var(--md-sys-color-primary));
  background: var(--theme-link, var(--md-sys-color-primary));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--theme-surface-elevated, #ffffff) 88%, white);
}

.store-plan-option__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-plan-option__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--theme-text);
}

.store-plan-option__meta {
  font-size: 11px;
  line-height: 1.35;
  color: var(--theme-text-soft);
}

.store-plan-option__trial {
  display: block;
  min-height: 15px;
  font-size: 11px;
  line-height: 1.35;
  color: transparent;
  user-select: none;
}

.store-plan-option__trial--active {
  color: var(--theme-link);
  font-weight: 600;
  user-select: text;
}

.store-plan-option__price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-top: 1px;
  text-align: right;
}

.store-plan-option__amount {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--theme-text);
  line-height: 1.2;
}

.store-plan-option__unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--theme-text-soft);
  line-height: 1.3;
  white-space: nowrap;
}

.store-plan-picker--compact .store-plan-option__card {
  min-height: 64px;
  padding: 9px 14px;
  gap: 10px;
}

.store-plan-picker--compact .store-plan-option__indicator {
  width: 14px;
  height: 14px;
}

.store-plan-picker--compact .store-plan-option__title {
  font-size: 13px;
}

.store-plan-picker--compact .store-plan-option__amount {
  font-size: 14px;
}

.admin-store-plan-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.admin-store-plan-interval-fields {
  display: contents;
}

.admin-store-plan-form__grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-store-plan-form__field-wide {
  grid-column: 1 / -1;
}

.admin-store-product-image-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-store-product-image-field__label {
  font-size: 13px;
  color: var(--theme-text-soft);
}

.admin-store-product-image-field {
  display: grid;
  gap: 10px;
}

.admin-store-product-image-field__preview {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  max-height: 180px;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
  border: 1px solid var(--theme-border-soft);
  background: var(--theme-surface-muted);
}

.admin-store-product-image-field__remove {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 13px;
}

.admin-store-product-image-field__hint {
  margin: 0;
}

.admin-store-plan-form__hint {
  margin-top: 10px;
}

.admin-store-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-store-accordion-list--nested {
  gap: 8px;
}

.admin-store-accordion {
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: var(--theme-surface-elevated);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.admin-store-accordion[open] {
  border-color: color-mix(in srgb, var(--theme-link) 22%, var(--theme-border-soft));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-store-accordion--section {
  margin-top: 0;
}

.admin-store-accordion__summary--section .admin-store-accordion__subtitle {
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
}

.admin-store-accordion--nested {
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface-muted) 55%, var(--theme-surface-elevated));
}

.admin-store-accordion--nested[open] {
  box-shadow: none;
}

.admin-store-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.admin-store-accordion__summary::-webkit-details-marker {
  display: none;
}

.admin-store-accordion--nested .admin-store-accordion__summary {
  padding: 12px 14px;
}

.admin-store-accordion__chevron {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--theme-text-soft);
  transition: transform .2s ease, color .2s ease;
}

.admin-store-accordion[open] > .admin-store-accordion__summary .admin-store-accordion__chevron {
  transform: rotate(180deg);
  color: var(--theme-link);
}

.admin-store-accordion__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-store-accordion__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-text);
  line-height: 1.3;
}

.admin-store-accordion--nested .admin-store-accordion__title {
  font-size: 14px;
}

.admin-store-accordion__subtitle {
  font-size: 12px;
  color: var(--theme-text-soft);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-store-accordion__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-store-accordion__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text);
  white-space: nowrap;
}

.admin-store-accordion__count {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-link) 10%, transparent);
  color: var(--theme-link);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-store-accordion__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--theme-border-soft);
}

.admin-store-accordion--nested .admin-store-accordion__body {
  padding: 0 14px 14px;
}

.admin-store-accordion__subsection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-border-soft);
}

.admin-store-accordion__subsection-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.admin-store-accordion__empty {
  margin: 0;
}

.admin-store-plan-form__actions {
  margin-bottom: 0;
}

.admin-store-accordion__body .admin-store-plan-form__delete {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .admin-store-accordion__summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-store-accordion__meta {
    width: 100%;
    justify-content: flex-start;
    padding-left: 34px;
  }
}

@media (max-width: 720px) {
  .admin-store-plan-form__grid {
    grid-template-columns: 1fr;
  }
}

.store-product-card__helper {
  color: var(--theme-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.store-status-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-status-action__link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.store-status-action__link:hover,
.store-status-action__link:focus {
  color: inherit;
  opacity: 0.88;
  text-decoration: none;
}

.store-product-card__link,
.store-product-card__cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease, opacity .18s ease;
}

.store-product-card__link {
  color: var(--theme-link) !important;
}

.store-product-card__cancel-button {
  color: var(--theme-danger) !important;
}

.store-product-card__action-link {
  display: inline-flex;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--theme-link) !important;
  text-decoration: none;
  font-weight: 600;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease, opacity .18s ease;
}

.store-product-card__link:hover,
.store-product-card__link:focus {
  color: var(--theme-text) !important;
  text-decoration: none;
}

.store-product-card__cancel-button:hover,
.store-product-card__cancel-button:focus {
  color: var(--theme-danger) !important;
  opacity: 0.86;
  text-decoration: none;
}

.store-product-card__action-link:hover,
.store-product-card__action-link:focus {
  color: var(--theme-text) !important;
  text-decoration: none;
}

@media (max-width: 640px) {
  .store-product-grid {
    grid-template-columns: 1fr;
  }

  .store-product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .store-product-card {
    width: 100%;
  }

  .store-product-card__visual {
    width: calc(100% + 40px);
  }

  .store-product-detail__sidebar-title {
    font-size: 13px;
  }

  .store-status-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

.device-panel-heading {
  align-items: flex-start;
}

.settings-sections {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.settings-section-heading {
  align-items: flex-start;
  padding-bottom: 0;
}

.settings-section-heading__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.settings-section-heading h2 {
  margin: 0;
  padding: 0;
}

.settings-section-heading .settings-section-intro {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.settings-section-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.settings-section-intro {
  margin: 0;
}

.devices-sections {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.devices-overview-panel__body,
.devices-section-panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.device-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-section-heading h2 {
  margin: 0;
}

.device-summary-pill,
.device-account-meta,
.device-group__count,
.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
}

.device-summary-pill,
.device-account-meta {
  padding: 10px 14px;
  font-size: 14px;
}

.device-account-meta {
  width: fit-content;
}

.device-group__count,
.device-chip {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.devices-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.devices-table th,
.devices-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.devices-table thead th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--theme-border-soft);
}

.devices-table__device + .devices-table__device .devices-table__row--primary td {
  border-top: 1px solid var(--theme-border-soft);
}

.devices-table thead th:nth-child(1) { width: 24%; }
.devices-table thead th:nth-child(2) { width: 18%; }
.devices-table thead th:nth-child(3) { width: 12%; }
.devices-table thead th:nth-child(4) { width: 16%; }
.devices-table thead th:nth-child(5) { width: 14%; }
.devices-table thead th:nth-child(6) { width: 16%; }

.devices-table__row--primary td {
  padding-top: 14px;
  color: var(--theme-text);
  font-size: 14px;
  overflow: hidden;
  max-width: 0;
}

.devices-table__row--secondary td {
  padding-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--theme-border-soft);
}

.devices-table__primary .devices-table__value {
  font-weight: 500;
}

.devices-table__value,
.devices-table__meta-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.devices-table__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--theme-text);
}

.devices-table__meta-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.devices-table__meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.devices-table__meta-label {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.devices-table__meta-value {
  font-size: 13px;
  color: var(--theme-text);
}

.devices-table__muted {
  color: var(--theme-text-soft);
}

.device-empty-state {
  margin-top: 0;
}

.device-activation-panel__body {
  max-width: 42rem;
}

.device-activation-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.device-activation-input-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.device-activation-scan-button {
  gap: 8px;
  flex: 0 0 auto;
}

.device-activation-hint {
  margin: 0.75rem 0 0;
  color: var(--theme-text-soft);
  font-size: 0.92rem;
}

.device-activation-scanner {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.device-activation-scanner[hidden] {
  display: none !important;
}

body.device-activation-scanner-open {
  overflow: hidden;
}

.device-activation-scanner__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(8, 12, 20, 0.72);
  cursor: pointer;
}

.device-activation-scanner__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  border-radius: 1rem;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #111);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.device-activation-scanner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.device-activation-scanner__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.device-activation-scanner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.device-activation-scanner__hint,
.device-activation-scanner__status,
.device-activation-scanner__unsupported {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--theme-text-soft);
}

.device-activation-scanner__viewport {
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000;
  aspect-ratio: 1 / 1;
}

.device-activation-scanner__viewport video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .devices-table-wrap {
    margin-inline: -2px;
    padding-bottom: 4px;
  }

  .devices-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .devices-table thead th:nth-child(n) {
    width: auto;
  }

  .devices-table thead th:nth-child(1) { min-width: 7.5rem; }
  .devices-table thead th:nth-child(2) { min-width: 6.5rem; }
  .devices-table thead th:nth-child(3) { min-width: 5.5rem; }
  .devices-table thead th:nth-child(4) { min-width: 6.5rem; }
  .devices-table thead th:nth-child(5) { min-width: 5.5rem; }
  .devices-table thead th:nth-child(6) { min-width: 6.5rem; }

  .devices-table__row--primary td {
    max-width: none;
    white-space: nowrap;
  }

  .devices-table__meta-strip {
    flex-wrap: wrap;
    gap: 10px 14px;
    overflow-x: visible;
    white-space: normal;
  }

  .devices-table__meta-item {
    white-space: normal;
    flex: 1 1 9rem;
  }

  .devices-table__meta-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .device-panel-heading,
  .device-section-heading,
  .credits-panel-heading,
  .credits-source-card__header,
  .credits-block__header,
  .credits-app-card__summary-main,
  .credits-history-block__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .credits-summary-grid,
  .credits-share-grid {
    grid-template-columns: 1fr;
  }

  .device-activation-input-row {
    flex-direction: column;
  }

  .device-activation-scan-button {
    justify-content: center;
  }
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 18px;
}

.wallet-card {
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: var(--theme-surface-elevated);
}

.wallet-card__header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--theme-text);
}

.wallet-card__header p {
  margin: 8px 0 0;
  color: var(--theme-text-soft);
  line-height: 1.5;
}

.wallet-balance-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--theme-surface-muted);
}

.wallet-balance-card__label,
.wallet-stat-card__label,
.wallet-card__footer,
.wallet-purchase-item__meta {
  color: var(--theme-text-soft);
}

.wallet-balance-card__value {
  font-size: 30px;
  line-height: 1.1;
  color: var(--theme-text);
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.credits-panel-heading {
  align-items: flex-start;
}

.credits-panel-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credits-source-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credits-source-card {
  border: 0;
  border-radius: 22px;
  padding: 20px;
  background: var(--theme-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credits-source-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.credits-source-card__title {
  margin: 0;
  color: var(--theme-text);
}

.credits-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -4px;
  color: var(--theme-text-soft);
}

.credits-meta-row strong {
  color: var(--theme-text);
}

.credits-summary-grid,
.credits-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.credits-stat-card,
.credits-share-card,
.credits-app-card {
  border: 0;
  border-radius: 18px;
  background: var(--theme-surface-muted);
}

.credits-stat-card,
.credits-share-card {
  padding: 18px;
}

.credits-stat-card__label,
.credits-share-card__label,
.credits-app-card__subtitle,
.credits-history-table th {
  color: var(--theme-text-soft);
}

.credits-stat-card__value,
.credits-share-card__value {
  display: block;
  margin-top: 10px;
  color: var(--theme-text);
  font-size: 28px;
  line-height: 1.1;
}

.credits-stat-card__value--compact {
  font-size: 16px;
  line-height: 1.4;
}

.credits-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credits-block__header,
.credits-history-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-block__header h4,
.credits-history-block__header h6,
.credits-app-card__title {
  margin: 0;
  color: var(--theme-text);
}

.credits-block__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
  font-weight: 600;
}

.credits-app-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credits-app-card {
  overflow: hidden;
}

.credits-app-card__subtitle {
  display: block;
  margin-top: 6px;
}

.credits-app-card__summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 18px;
}

.credits-app-card__summary::-webkit-details-marker {
  display: none;
}

.credits-app-card__summary::marker {
  display: none;
}

.credits-app-card__summary-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.credits-app-card__summary-text {
  min-width: 0;
  flex: 1 1 auto;
}

.credits-app-card__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--theme-text-soft);
  border-bottom: 2px solid var(--theme-text-soft);
  transform: rotate(-45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
  flex: 0 0 auto;
  margin-top: 6px;
}

.credits-app-card[open] .credits-app-card__summary {
  border-bottom: 1px solid var(--theme-border-soft);
}

.credits-app-card[open] .credits-app-card__chevron {
  transform: rotate(45deg);
}

.credits-app-card__detail {
  padding: 18px;
}

.credits-history-block {
  margin-top: 0;
}

.credits-history-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.credits-history-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.credits-history-table th,
.credits-history-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--theme-border-soft);
  vertical-align: top;
}

.credits-history-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credits-history-table td {
  color: var(--theme-text);
}

.credits-cell-primary {
  color: var(--theme-text);
  word-break: break-word;
}

.credits-cell-secondary {
  margin-top: 4px;
  color: var(--theme-text-soft);
  font-size: 12px;
  word-break: break-word;
}

.credits-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-word;
}

.credits-empty-state {
  margin: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 960px);
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.logs-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.logs-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-filter-reset {
  color: var(--theme-text-soft);
  text-decoration: none;
}

.support-filter-reset:hover,
.support-filter-reset:focus {
  color: var(--theme-link);
}

.logs-table-wrap {
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.logs-table th,
.logs-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--theme-border-soft);
}

.logs-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.logs-table td {
  color: var(--theme-text);
}

.logs-method-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-muted) 78%, transparent);
  color: var(--theme-text);
  white-space: nowrap;
}

.logs-method-badge--success {
  background: color-mix(in srgb, #1e8e3e 14%, var(--theme-surface-muted));
  color: #166534;
  border: 1px solid color-mix(in srgb, #1e8e3e 26%, transparent);
}

.logs-method-badge--failure {
  background: color-mix(in srgb, #c5221f 12%, var(--theme-surface-muted));
  color: #b3261e;
  border: 1px solid color-mix(in srgb, #c5221f 24%, transparent);
}

.logs-method-badge--navigation {
  background: color-mix(in srgb, #1a73e8 12%, var(--theme-surface-muted));
  color: #1558b0;
  border: 1px solid color-mix(in srgb, #1a73e8 24%, transparent);
}

.logs-method-badge--pkce {
  background: color-mix(in srgb, #9334e6 12%, var(--theme-surface-muted));
  color: #7627bb;
  border: 1px solid color-mix(in srgb, #9334e6 24%, transparent);
}

.logs-retention-note {
  margin: 0;
  color: var(--theme-text-soft);
  font-size: 0.92rem;
}

.logs-presence-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.logs-presence-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logs-presence-section__header h4 {
  margin: 0;
}

.logs-presence-section__refresh {
  color: var(--theme-text-soft);
  font-size: 0.85rem;
}

.logs-presence-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logs-presence-card {
  border: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent);
  border-radius: 14px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--theme-surface-muted) 55%, transparent);
}

.logs-presence-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: nowrap;
}

.logs-presence-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logs-presence-card__item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.logs-presence-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e8e3e;
  box-shadow: 0 0 0 4px color-mix(in srgb, #1e8e3e 18%, transparent);
}

.logs-presence-card__meta {
  color: var(--theme-text-soft);
  font-size: 0.88rem;
}

.logs-presence-card__item.admin-users-table__cell-text {
  flex: 1 1 0;
}

.logs-presence-card__meta.admin-users-table__cell-text {
  flex: 0 1 auto;
  max-width: 38%;
}

.admin-user-activity-panel .logs-filter-form {
  margin: 18px 0;
}

.admin-users-table--user-logs {
  table-layout: fixed;
}

.admin-users-table--user-logs .admin-users-table__col-timestamp {
  width: 15%;
}

.admin-users-table--user-logs .admin-users-table__col-event {
  width: 26%;
}

.admin-users-table--user-logs .admin-users-table__col-app {
  width: 14%;
}

.admin-users-table--user-logs .admin-users-table__col-screen {
  width: 18%;
}

.admin-users-table--user-logs .admin-users-table__col-client {
  width: 15%;
}

.admin-users-table--user-logs .admin-users-table__col-ip {
  width: 12%;
}

.admin-users-table--session-log {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.admin-users-table--session-log th,
.admin-users-table--session-log td,
.admin-users-table--session-log .admin-users-table__sort-link,
.admin-users-table--session-log .admin-users-table__sort-indicator,
.admin-users-table--session-log .admin-users-table__filters input,
.admin-users-table--session-log .admin-users-table__filters select,
.admin-users-table--session-log .admin-users-table__cell-text,
.admin-users-table--session-log .security-session-log-badge,
.admin-users-table--session-log .security-session-log-reference {
  font-size: 12px;
}

.admin-users-table--session-log thead th {
  font-size: 12px;
  white-space: normal;
  line-height: 1.35;
  vertical-align: bottom;
}

.admin-users-table--session-log .admin-users-table__sort-link {
  align-items: flex-start;
  white-space: normal;
}

.admin-users-table--session-log .admin-users-table__sort-link > span:first-child {
  white-space: normal;
  line-height: 1.35;
}

.admin-users-table--session-log tbody td {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

.admin-users-table--session-log .admin-users-table__cell-text {
  display: block;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}

.admin-users-table--session-log .security-session-log-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
}

.security-session-log-table-shell .ui-table-footer,
.security-session-log-table-shell .ui-table-footer * {
  font-size: 10px;
}

.admin-users-table--session-log .admin-users-table__col-timestamp {
  min-width: 148px;
}

.admin-users-table--session-log .admin-users-table__col-event {
  min-width: 92px;
}

.admin-users-table--session-log .admin-users-table__col-reference {
  min-width: 220px;
}

.admin-users-table--session-log .admin-users-table__col-opened-at,
.admin-users-table--session-log .admin-users-table__col-expected-close-at,
.admin-users-table--session-log .admin-users-table__col-actual-close-at {
  min-width: 148px;
}

.admin-users-table--session-log .admin-users-table__col-session {
  min-width: 88px;
}

.admin-users-table--session-log .admin-users-table__col-device {
  min-width: 128px;
}

.admin-users-table--session-log .admin-users-table__col-app {
  min-width: 128px;
}

.admin-users-table--session-log .admin-users-table__col-actor {
  min-width: 168px;
}

.admin-users-table--session-log .admin-users-table__col-process {
  min-width: 148px;
}

.admin-users-table--session-log .admin-users-table__col-how {
  min-width: 108px;
}

.admin-users-table--session-log .admin-users-table__col-ip {
  min-width: 120px;
}

.security-session-log-table-shell .admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table--user-logs tbody td {
  overflow: hidden;
}

.admin-users-table__cell-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-table__cell-text.is-truncated {
  cursor: pointer;
}

.admin-users-table__cell-text.is-truncated:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-primary, #2e7af9) 55%, transparent);
  outline-offset: 2px;
}

.admin-table-cell-tooltip {
  position: fixed;
  z-index: 1400;
  max-width: min(420px, calc(100vw - 24px));
  padding: 15px 17px;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-elevated, #fff);
  color: var(--theme-text);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.16);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
  pointer-events: none;
}

.admin-table-cell-tooltip[hidden] {
  display: none !important;
}

.admin-user-edit-tabs .admin-user-edit-tab[href] {
  text-decoration: none;
  font: inherit;
}

.logs-empty-state {
  margin: 0;
  color: var(--theme-text-soft);
}

.legal-summary-block,
.legal-history-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.legal-summary-card {
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: var(--theme-surface-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-summary-card__header,
.legal-summary-card__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-summary-card__heading h4 {
  margin: 0;
  color: var(--theme-text);
}

.legal-summary-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-summary-card__copy {
  margin: 0;
  color: var(--theme-text-soft);
  line-height: 1.5;
}

.legal-summary-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-history-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--theme-text-soft);
  font-size: 12px;
}

.logs-pagination {
  margin-top: 20px;
}

.support-column {
  min-width: 0;
}

.support-column--detail {
  width: 100%;
  max-width: 960px;
}

.support-block {
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: var(--theme-surface-elevated);
  margin-bottom: 18px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-operator-update-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.support-operator-update-controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.support-operator-update-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.support-operator-update-copy h3 {
  margin: 0;
}

.support-status-select-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
  max-width: 220px;
  margin-left: auto;
}

.support-status-select-compact select {
  width: 100%;
}

.support-status-current-minimal {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--theme-text-soft);
}

.support-status-current-minimal strong {
  color: var(--theme-text);
}

.support-attachments-help {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  color: var(--theme-text-soft);
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-ticket-card {
  --support-ticket-priority-accent: transparent;
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--theme-surface-muted);
  text-decoration: none;
  overflow: hidden;
}

.support-ticket-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: var(--support-ticket-priority-accent);
  opacity: 1;
}

.support-ticket-card--priority-medium::after {
  --support-ticket-priority-accent: #b06000;
}

.support-ticket-card--priority-high::after {
  --support-ticket-priority-accent: #7b1fa2;
}

.support-ticket-card--unread {
  border-color: rgba(217, 48, 37, 0.18);
  background: rgba(217, 48, 37, 0.06);
}

.support-ticket-card.active {
  box-shadow: 0 0 0 1px var(--theme-border-strong);
}

.support-ticket-card--unread.active {
  box-shadow: 0 0 0 1px var(--theme-border-strong);
}

.support-ticket-card__header,
.support-ticket-detail__header,
.support-ticket-detail__meta,
.support-thread-message__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-ticket-card__title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.support-ticket-card__header-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.support-ticket-card__unread-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d93025;
  vertical-align: middle;
  margin-right: 4px;
}

.support-ticket-card__unread-indicator .material-symbols-outlined {
  font-size: calc(18px * var(--ui-font-scale));
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.support-ticket-card__conversation-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: var(--theme-accent, #1a73e8);
  vertical-align: middle;
}

.support-ticket-card__conversation-indicator .material-symbols-outlined {
  font-size: calc(18px * var(--ui-font-scale));
}

.support-ticket-card__meta,
.support-ticket-detail__meta {
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--theme-text-soft);
}

.support-ticket-card__preview {
  margin-top: 10px;
  font-size: 13px;
  color: var(--theme-text-soft);
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-ticket-detail__header h3 {
  margin: 0;
}

.support-ticket-detail__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-copy-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-copy-button {
  width: 0px;
  height: 0px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--theme-text-soft);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.support-copy-button:hover,
.support-copy-button:focus-visible {
  color: var(--theme-text);
  outline: none;
}

.support-copy-button.is-copied {
  color: #137333;
}

.support-copy-button .material-symbols-outlined {
  font-size: calc(16px * var(--ui-font-scale));
}

.support-priority-inline,
.support-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-priority-inline .material-symbols-outlined,
.support-priority-badge .material-symbols-outlined {
  font-size: calc(16px * var(--ui-font-scale));
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.support-priority-inline--normal,
.support-priority-badge--normal {
  color: inherit;
}

.support-priority-inline--medium,
.support-priority-badge--medium {
  color: #b06000;
}

.support-priority-inline--high,
.support-priority-badge--high {
  color: #7b1fa2;
}

.support-priority-badge {
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
}

.support-priority-badge--medium {
  background: rgba(176, 96, 0, 0.1);
}

.support-priority-badge--high {
  background: rgba(123, 31, 162, 0.12);
}

@media (max-width: 840px) {
  .support-operator-update-top {
    flex-direction: column;
  }

  .support-operator-update-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .support-status-select-compact {
    min-width: min(220px, 100%);
  }
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.support-thread-message {
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: var(--theme-surface-muted);
}

.support-thread-message.is-operator {
  box-shadow: inset 0 0 0 1px var(--theme-border-strong);
}

.support-thread-message__meta {
  font-size: 12px;
  color: var(--theme-text-soft);
}

.support-thread-message__status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--theme-text-soft);
}

.support-thread-message__body {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.support-thread-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.support-thread-attachment {
  position: relative;
  width: 110px;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
  text-decoration: none;
  color: inherit !important;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
}

.support-thread-attachment:hover,
.support-thread-attachment:focus-visible {
  border-color: var(--theme-border-strong);
  box-shadow: 0 6px 16px rgba(20, 20, 20, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.support-thread-attachment img,
.support-thread-attachment video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--theme-surface-muted);
}

.support-thread-attachment video {
  pointer-events: none;
}

.support-thread-attachment--pdf,
.support-thread-attachment--audio,
.support-thread-attachment--file {
  background:
    linear-gradient(160deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.01)),
    var(--theme-surface-muted);
}

.support-thread-attachment__center-icon {
  font-size: calc(36px * var(--ui-font-scale));
  color: var(--theme-text-soft);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 40;
}

.support-thread-attachment--pdf .support-thread-attachment__center-icon {
  color: #c5221f;
}

.support-thread-attachment--audio .support-thread-attachment__center-icon {
  color: #1957c2;
}

.support-thread-attachment__download-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--theme-text);
  font-size: calc(15px * var(--ui-font-scale));
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.12);
}

.support-thread-attachment__size {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.support-rating-form {
  gap: 10px;
}

.support-rating-stars {
  color: #d39b09;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.support-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.support-rating-option {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.support-rating-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.support-rating-option span[aria-hidden='true'] {
  color: #d5dbe3;
  font-size: 30px;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.support-rating-option.is-selected span[aria-hidden='true'],
.support-rating-option:hover span[aria-hidden='true'],
.support-rating-option:hover ~ .support-rating-option span[aria-hidden='true'] {
  color: #d39b09;
}

.support-rating-option:hover span[aria-hidden='true'] {
  transform: translateY(-1px);
}

.support-rating-option:focus-within span[aria-hidden='true'] {
  outline: 2px solid rgba(211, 155, 9, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 1120px) {
  .content,
  .account-summary-content-slot > .content {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-items: stretch;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .support-operator-update-top {
    flex-direction: column;
  }

  .support-status-select-compact {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .logs-filter-grid {
    grid-template-columns: 1fr;
  }

}

.wallet-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: color-mix(in srgb, var(--theme-surface-muted) 60%, transparent);
}

.wallet-stat-card__value {
  color: var(--theme-text);
  font-size: 18px;
}

.wallet-card__footer {
  margin-top: 16px;
  font-size: 13px;
}

.wallet-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.wallet-filter-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(260px, 100%);
}

.wallet-filter-form__field span {
  color: var(--theme-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.wallet-filter-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.wallet-purchase-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: color-mix(in srgb, var(--theme-surface-muted) 60%, transparent);
}

.wallet-purchase-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.wallet-purchase-item__title {
  color: var(--theme-text);
  font-weight: 600;
}

.wallet-purchase-item__meta {
  margin-top: 4px;
}

.wallet-purchase-item__description {
  margin-top: 4px;
  color: var(--theme-text-soft);
  line-height: 1.5;
  word-break: break-word;
}

.wallet-purchase-item__link {
  color: var(--theme-link);
  text-decoration: none;
  font-weight: 600;
}

.wallet-purchase-item__link:hover,
.wallet-purchase-item__link:focus {
  text-decoration: underline;
}

body.wallet-pdf-overlay-open {
  overflow: hidden;
}

.wallet-pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wallet-pdf-overlay[hidden] {
  display: none;
}

.wallet-pdf-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.wallet-pdf-overlay__card {
  position: relative;
  width: min(560px, 100%);
}

.wallet-pdf-overlay__body {
  gap: 10px;
}

.wallet-pdf-overlay__title {
  margin: 0;
}

.wallet-pdf-overlay__message-block {
  display: grid;
  gap: 14px;
}

.wallet-pdf-overlay__message {
  margin: 0;
  color: inherit;
  font: inherit;
}

.wallet-pdf-overlay__progress-block {
  display: grid;
  gap: 10px;
}

.wallet-pdf-overlay__progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--account-toast-accent) 16%, rgba(255, 255, 255, 0.16));
}

.wallet-pdf-overlay__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--account-toast-accent) 74%, white) 0%,
      var(--account-toast-accent) 52%,
      color-mix(in srgb, var(--account-toast-accent) 54%, white) 100%
    );
  box-shadow: 0 6px 16px color-mix(in srgb, var(--account-toast-accent) 28%, transparent);
  transition: width 240ms ease;
}

.wallet-pdf-overlay__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-pdf-overlay__status {
  color: color-mix(in srgb, var(--account-toast-text) 78%, transparent);
  font-size: 13px;
  line-height: 1.4;
}

.wallet-pdf-overlay__value {
  color: var(--account-toast-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-pdf-overlay__actions {
  display: flex;
  justify-content: flex-end;
}

.wallet-pdf-overlay__cancel {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--account-toast-accent) 28%, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: color-mix(in srgb, var(--account-toast-accent) 12%, rgba(255, 255, 255, 0.02));
  color: var(--account-toast-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.wallet-pdf-overlay__cancel:hover,
.wallet-pdf-overlay__cancel:focus-visible {
  background: color-mix(in srgb, var(--account-toast-accent) 20%, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--account-toast-accent) 44%, rgba(255, 255, 255, 0.2));
  transform: translateY(-1px);
  outline: none;
}

.wallet-purchase-item__side {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.wallet-purchase-item__invoice-section {
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface) 74%, transparent);
  overflow: hidden;
}

.wallet-purchase-item__invoice-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 600;
}

.wallet-purchase-item__invoice-heading::-webkit-details-marker {
  display: none;
}

.wallet-purchase-item__invoice-count {
  color: var(--theme-text-soft);
  font-size: 13px;
  font-weight: 500;
}

.wallet-purchase-item__invoice-toggle {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid color-mix(in srgb, var(--theme-text-soft) 90%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--theme-text-soft) 90%, transparent);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.wallet-purchase-item__invoice-section[open] .wallet-purchase-item__invoice-toggle {
  transform: rotate(225deg);
}

.wallet-purchase-item__invoice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}

.wallet-purchase-item__invoice-card {
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-surface) 88%, transparent);
}

.wallet-purchase-item__invoice-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wallet-purchase-item__invoice-amount {
  color: var(--theme-text);
  font-weight: 600;
  white-space: nowrap;
}

.wallet-purchase-item__invoice-status-row {
  margin-top: 8px;
}

.wallet-purchase-item__invoice-actions {
  margin-top: 10px;
}

.wallet-purchase-item__invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.wallet-purchase-item__invoice-status--success {
  color: #0f5c33;
  background: color-mix(in srgb, #39a96b 14%, white);
  border: 1px solid color-mix(in srgb, #39a96b 38%, white);
}

.wallet-purchase-item__invoice-status--warning {
  color: #7a4b00;
  background: color-mix(in srgb, #d89a00 15%, white);
  border: 1px solid color-mix(in srgb, #d89a00 38%, white);
}

.wallet-purchase-item__invoice-meta,
.wallet-purchase-item__invoice-empty {
  margin-top: 6px;
  color: var(--theme-text-soft);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.wallet-purchase-item__invoice-empty {
  padding: 0 14px 14px;
}

.wallet-purchase-item__actions {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 8px;
}

.wallet-purchase-item__cancel-form {
  margin: 0;
}

.wallet-purchase-item__cancel-button {
  min-height: 0;
  padding: 0;
  font-size: 13px;
}

.wallet-purchase-item__refund-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.wallet-purchase-item__refund-state--success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.wallet-purchase-item__refund-state--info {
  background: rgba(0, 48, 135, 0.10);
  color: #142c8e;
}

.wallet-purchase-item__refund-state--warning {
  background: rgba(185, 28, 28, 0.10);
  color: #991b1b;
}

.wallet-empty-state {
  margin-top: 18px;
}

.panel-row-theme {
  align-items: start;
}

.theme-current-label {
  display: inline-block;
  margin-left: 6px;
  color: var(--theme-link);
}

.md3-field-button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 18px;
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.md3-field-button:hover {
  border-color: var(--md-sys-color-on-surface-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, var(--md-sys-color-primary-container));
}

.md3-field-button:focus-visible {
  outline: none;
  border-color: var(--md-sys-color-outline);
  background: var(--theme-surface-muted);
}

.md3-field-button[aria-expanded='true'],
.md3-field-button.is-active {
  border-color: var(--md-sys-color-outline);
  background: var(--theme-surface-muted);
  box-shadow: none;
}

.md3-field-indicator {
  flex: 0 0 24px;
  color: var(--md-sys-color-on-surface-variant);
  transition: transform .18s ease, color .18s ease;
}

.md3-field-button[aria-expanded='true'] .md3-field-indicator,
.md3-field-button.is-active .md3-field-indicator {
  color: var(--md-sys-color-primary);
}

.md3-field-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.md3-field-label {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--md-sys-color-on-surface-variant);
}

.md3-field-value {
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.theme-choice-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-choice-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}

.theme-choice-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--theme-preview-card-border, var(--md-sys-color-outline-variant));
  border-radius: 24px;
  background: var(--theme-preview-card-bg, var(--md-sys-color-surface-container-low));
  color: var(--theme-preview-card-text, inherit);
  box-shadow: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.theme-choice-option:hover .theme-choice-card {
  border-color: var(--md-sys-color-outline);
  background: color-mix(in srgb, var(--theme-preview-card-bg, var(--md-sys-color-surface-container-low)) 92%, var(--md-sys-color-primary-container));
}

.theme-choice-option input:checked + .theme-choice-card {
  border-color: var(--md-sys-color-primary);
  background: color-mix(in srgb, var(--theme-preview-card-bg, var(--md-sys-color-surface-container-low)) 86%, var(--md-sys-color-primary-container));
  transform: translateY(-1px);
}

.theme-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-choice-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-preview-title, var(--theme-text));
}

.theme-choice-description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--theme-preview-description, var(--theme-text-soft));
}

.font-scale-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  color: var(--theme-link);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.font-scale-preview-smaller-2 {
  font-size: 13px;
}

.font-scale-preview-smaller {
  font-size: 14px;
}

.font-scale-preview-default {
  font-size: 15px;
}

.font-scale-preview-large {
  font-size: 16px;
}

.font-scale-preview-larger {
  font-size: 17px;
}

.font-scale-preview-extra-large {
  font-size: 18px;
}

.theme-choice-palette {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.theme-choice-palette-grey,
.theme-choice-palette-dark,
.theme-choice-palette-default-brand,
.theme-choice-palette-fluo,
.theme-choice-palette-sinapsi {
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.08);
  border-radius: 999px;
  padding: 6px;
}

.theme-choice-card-default-brand,
.theme-choice-card-grey,
.theme-choice-card-pastel,
.theme-choice-card-fluo,
.theme-choice-card-sinapsi {
  --theme-preview-card-border: #dadce0;
  --theme-preview-card-text: var(--theme-preview-title);
}

.theme-choice-card-default-brand {
  --default-brand-preview-primary: #2e7af9;
  --default-brand-preview-primary-hover: #1f67df;
  --default-brand-preview-text: #ffffff;
  --theme-preview-card-bg: #ffffff;
  --theme-preview-card-border: #dadce0;
  --theme-preview-title: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-preview-description: #5f6368;
}

.theme-choice-card-grey {
  --theme-preview-card-bg: #ffffff;
  --theme-preview-card-border: #e0e0e0;
  --theme-preview-title: var(--sinapsi-black, rgb(20, 20, 20));
  --theme-preview-description: #737373;
}

.theme-choice-card-pastel {
  --theme-preview-card-bg: #f8fbff;
  --theme-preview-card-border: #d3deef;
  --theme-preview-title: #42506f;
  --theme-preview-description: #7584a2;
}

.theme-choice-card-fluo {
  --theme-preview-card-bg: #ffffff;
  --theme-preview-card-border: #dadce0;
  --theme-preview-title: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-preview-description: #5f6368;
}

.theme-choice-card-sinapsi {
  --theme-preview-card-bg: #ffffff;
  --theme-preview-card-border: #dadce0;
  --theme-preview-title: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-preview-description: #5f6368;
}

.theme-choice-card-dark {
  --theme-preview-card-bg: #161d23;
  --theme-preview-card-border: #2e3842;
  --theme-preview-title: #f3f6f9;
  --theme-preview-description: #9aa6b4;
}

.theme-choice-card-dark .theme-choice-palette {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.theme-choice-card-default-brand .theme-choice-palette {
  box-shadow: none;
}

.theme-choice-card-default-brand .theme-choice-swatch {
  box-shadow: none;
}

.theme-choice-swatch {
  width: 100%;
  height: 26px;
  border-radius: 999px;
}

.theme-choice-swatch-default-brand-1 { background: #f7f7f7; }
.theme-choice-swatch-default-brand-2 { background: var(--default-brand-preview-primary); }
.theme-choice-swatch-default-brand-3 { background: var(--default-brand-preview-primary-hover); }
.theme-choice-swatch-default-brand-4 { background: var(--default-brand-preview-text); }
.theme-choice-swatch-grey-1 { background: #f9f9f9; }
.theme-choice-swatch-grey-2 { background: #f2f2f2; }
.theme-choice-swatch-grey-3 { background: var(--sinapsi-black, rgb(20, 20, 20)); }
.theme-choice-swatch-grey-4 { background: #e5e5e5; }
.theme-choice-swatch-dark-1 { background: #101417; }
.theme-choice-swatch-dark-2 { background: #1d2329; }
.theme-choice-swatch-dark-3 { background: #8ab4ff; }
.theme-choice-swatch-dark-4 { background: #f3f6f9; }
.theme-choice-swatch-pastel-1 { background: #faf6fb; }
.theme-choice-swatch-pastel-2 { background: #90b6ff; }
.theme-choice-swatch-pastel-3 { background: #c2a0f6; }
.theme-choice-swatch-pastel-4 { background: #f0a1b5; }
.theme-choice-swatch-fluo-1 { background: #f7f7f7; }
.theme-choice-swatch-fluo-2 { background: #e6ff2e; }
.theme-choice-swatch-fluo-3 { background: var(--sinapsi-black, rgb(20, 20, 20)); }
.theme-choice-swatch-fluo-4 { background: #d6f216; }
.theme-choice-swatch-sinapsi-1 { background: #f7f7f7; }
.theme-choice-swatch-sinapsi-2 { background: rgb(46, 122, 249); }
.theme-choice-swatch-sinapsi-3 { background: var(--sinapsi-black, rgb(20, 20, 20)); }
.theme-choice-swatch-sinapsi-4 { background: rgb(31, 103, 223); }

.settings-sections .theme-choice {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.settings-sections .theme-choice-option {
  display: flex;
  height: 100%;
  min-height: 0;
}

.settings-sections .theme-choice-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 104px;
  max-height: none;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  box-sizing: border-box;
}

.settings-sections .theme-choice-copy {
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.settings-sections .theme-choice-title {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.settings-sections .theme-choice-description {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

html[data-font-scale] .settings-sections .theme-choice-title {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html[data-font-scale] .settings-sections .theme-choice-description {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.settings-sections .theme-choice-palette {
  gap: 4px;
}

.settings-sections .theme-choice-swatch {
  height: 14px;
}

.settings-sections .font-scale-preview-smaller-2 {
  font-size: 13px !important;
}

.settings-sections .font-scale-preview-smaller {
  font-size: 14px !important;
}

.settings-sections .font-scale-preview-default {
  font-size: 15px !important;
}

.settings-sections .font-scale-preview-large {
  font-size: 16px !important;
}

.settings-sections .font-scale-preview-larger {
  font-size: 17px !important;
}

.settings-sections .font-scale-preview-extra-large {
  font-size: 18px !important;
}

@media (max-width: 1120px) {
  .theme-choice {
    grid-template-columns: 1fr;
  }

  .settings-sections .theme-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-sections .theme-choice {
    grid-template-columns: 1fr;
  }

  .security-notice-menu.open .security-notice-panel {
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    right: max(8px, env(safe-area-inset-right, 0px));
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }

  .security-notice-panel__body {
    padding: 14px;
  }
}

body,
.search-box,
.search-box input,
.menu-link,
.mobile-menu-toggle-text,
.row-label,
.row-value,
.chip,
.row-actions button,
.row-actions a,
.address-actions a,
.address-link,
label,
input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="file"],
select,
textarea,
.left p,
.subtitle,
p.subtitle,
.message,
.action-link,
.actions a,
.actions button,
.btn-primary,
.btn-secondary,
.hint,
.helper,
.notice,
.warning,
.msg,
.field-note,
.option-box label,
.option-box small,
.inline,
.address-item,
.photo-subtitle,
.photo-file-name,
.theme-choice-description,
.divider-text,
.back-link a,
.lang-switch a,
.mobile-menu-toggle-kicker,
.muted {
  font-size: calc(14px * var(--ui-font-scale));
}

.page-title,
.left h1,
.header h1 {
  font-size: calc(24px * var(--ui-font-scale));
}

.page-title {
  font-size: calc(34px * var(--ui-font-scale));
}

.menu-icon,
.material-symbols-outlined {
  font-size: calc(20px * var(--ui-font-scale));
}

.profile-menu-avatar-fallback,
.toggle-password,
.allow,
.deny {
  font-size: calc(16px * var(--ui-font-scale));
}

.panel h2,
.theme-choice-title {
  font-size: calc(20px * var(--ui-font-scale));
}

.section-title,
.photo-title {
  font-size: calc(15px * var(--ui-font-scale));
}

.status,
.row-value,
.inline,
.helper,
.address-item,
.code-item,
.compatible-list,
.secret-box,
.steps,
.notice,
.warning,
.msg {
  font-size: calc(13px * var(--ui-font-scale));
}

.mobile-menu-toggle-kicker,
.badge,
.option-box small,
.photo-subtitle,
.photo-file-name,
.divider-text,
.field-note,
.hint {
  font-size: calc(12px * var(--ui-font-scale));
}

.back-link a,
.links,
.actions a,
.actions button,
.alt-auth a,
.header p,
.btn-primary,
.btn-secondary,
.allow,
.deny {
  font-size: calc(14px * var(--ui-font-scale));
}

.guide-sidebar {
  grid-column: auto;
  position: sticky;
  top: 84px;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

.guide-sidebar.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

.guide-sidebar__card,
.account-guide-page__card {
  padding: 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--theme-surface-elevated) 96%, transparent);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
}

.guide-sidebar__header,
.account-guide-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.guide-sidebar__header h2,
.account-guide-page__header h1 {
  margin: 4px 0 0;
  font-size: calc(24px * var(--ui-font-scale));
  line-height: 1.2;
}

.guide-sidebar__kicker {
  font-size: calc(11px * var(--ui-font-scale));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.guide-sidebar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
  cursor: pointer;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-content__intro {
  margin: 0;
  color: var(--theme-text);
  line-height: 1.65;
}

.guide-content h3 {
  margin: 0;
  font-size: calc(15px * var(--ui-font-scale));
  color: var(--theme-text);
}

.guide-content__list {
  margin: 0;
  padding-left: 18px;
  color: var(--theme-text-soft);
  line-height: 1.7;
}

.guide-content__list li + li {
  margin-top: 10px;
}

.account-guide-page {
  min-height: 100vh;
  background: var(--theme-body-bg);
}

.account-guide-page__main {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.account-guide-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .guide-sidebar {
    display: none;
  }

  .account-guide-page__main {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }
}

.account-summary-content-slot.is-loading .content,
.content.is-section-loading {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-panel__intro {
  margin: 0;
}

.info-panel__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--theme-surface-muted, #f8f9fb);
}

.info-stat-card__label {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text-soft);
}

.info-stat-card__value {
  font-size: 18px;
  line-height: 1.35;
  color: var(--theme-text);
  word-break: break-word;
}

.info-stat-card__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.info-changelog-card {
  margin: 0;
}

.info-changelog-card__header {
  margin-bottom: 4px;
}

.info-empty-state {
  margin: 0;
  padding: 8px 0 4px;
  color: var(--theme-text-soft);
}

.info-changelog-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-changelog-group {
  border-top: 1px solid var(--theme-border-soft, #eceff3);
  padding-top: 16px;
}

.info-changelog-group:first-child {
  border-top: none;
  padding-top: 0;
}

.info-changelog-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.info-changelog-group__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.info-changelog-group__version {
  margin: 0;
  font-size: 16px;
  color: var(--theme-text);
}

.info-changelog-group__commit,
.info-changelog-item__date,
.info-changelog-group__date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--theme-text-soft);
}

.info-changelog-group__date {
  white-space: nowrap;
}

.info-changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-changelog-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--theme-surface-muted, #f8f9fb);
}

.info-changelog-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.info-changelog-item__summary {
  color: var(--theme-text);
  line-height: 1.45;
}

.info-changelog-item__details {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-text-soft);
  white-space: pre-wrap;
}

.info-changelog-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #eef2f7;
  color: #4b5563;
}

.info-changelog-type--feat { background: #e8f5e9; color: #1b5e20; }
.info-changelog-type--fix { background: #fff3e0; color: #e65100; }
.info-changelog-type--chore { background: #eef2f7; color: #4b5563; }

@media (max-width: 900px) {
  .info-build-grid {
    grid-template-columns: 1fr;
  }

  .info-changelog-group__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.account-summary-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.72);
}

.account-summary-empty-state .material-symbols-outlined {
  font-size: 2rem;
}
