/* 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;
}
*/
/* Google Sans da CDN (funziona subito) */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
  --ui-font-scale: 1;
  --theme-body-bg: rgb(247, 247, 247);
  --theme-surface: rgb(252, 252, 252);
  --theme-surface-elevated: #ffffff;
  --theme-surface-muted: #f8f9fa;
  --theme-text: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-text-muted: oklab(0.19125 0.00000869483 0.0000038445 / 0.7);
  --theme-text-soft: #5f6368;
  --theme-border: #dadce0;
  --theme-border-soft: #eceff3;
  --theme-border-strong: #d2e3fc;
  --theme-link: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-link-hover-bg: #eef3fd;
  --theme-menu-active-bg: oklab(0.19125 0.00000869483 0.0000038445 / 0.08);
  --theme-menu-text: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-menu-text-active: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-menu-active-shadow: rgba(23, 78, 166, 0.04);
  --theme-button-bg: rgb(20, 20, 20);
  --theme-button-bg-hover: rgb(40, 40, 40);
  --theme-button-text: #ffffff;
  --theme-input-bg: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  --theme-focus: #1a73e8;
  --theme-status-info-bg: rgb(247, 247, 247);
  --theme-status-info-color: #174ea6;
  --theme-status-info-border: #d2e3fc;
  --theme-status-ok-bg: rgb(247, 247, 247);
  --theme-status-ok-color: #137333;
  --theme-status-ok-border: #cce7d1;
  --theme-danger: #d93025;
  --theme-danger-soft: #f4c7c3;
  --theme-icon-main: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-settings: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-security: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-passkeys: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-backup: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-applications: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-wallet: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-addresses: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-shadow-accent: rgba(23, 78, 166, 0.14);
}

:root[data-theme='flat-pastel'] {
  --theme-body-bg: rgb(247, 247, 247);
  --theme-surface: rgb(252, 252, 252);
  --theme-surface-elevated: #f8fbff;
  --theme-surface-muted: #eaf1ff;
  --theme-text: #42506f;
  --theme-text-muted: #667695;
  --theme-text-soft: #7584a2;
  --theme-border: #d3deef;
  --theme-border-soft: #e2eaf8;
  --theme-border-strong: #c1d4f4;
  --theme-link: #4f76bf;
  --theme-link-hover-bg: #dfe9ff;
  --theme-menu-active-bg: #dfe9ff;
  --theme-menu-text: #42506f;
  --theme-menu-text-active: #4f76bf;
  --theme-menu-active-shadow: rgba(79, 118, 191, 0.18);
  --theme-button-bg: #6788c8;
  --theme-button-bg-hover: #5778b7;
  --theme-button-text: #f7f9ff;
  --theme-input-bg: #f2f6ff;
  --theme-focus: #6788c8;
  --theme-status-info-bg: #e4edff;
  --theme-status-info-color: #4f71b2;
  --theme-status-info-border: #c8d9f7;
  --theme-status-ok-bg: #edf8f1;
  --theme-status-ok-color: #5a9a78;
  --theme-status-ok-border: #cfe8d9;
  --theme-danger: #d87189;
  --theme-danger-soft: #f4c8d2;
  --theme-icon-main: #7f94be;
  --theme-icon-settings: #6788c8;
  --theme-icon-security: #74ad9f;
  --theme-icon-passkeys: #8b84c9;
  --theme-icon-backup: #caa06f;
  --theme-icon-applications: #5f8fcc;
  --theme-icon-wallet: #5fa79b;
  --theme-icon-addresses: #bf7f9f;
  --theme-shadow-accent: rgba(79, 118, 191, 0.24);
}

:root[data-theme='flat-fluo'] {
  --theme-body-bg: rgb(247, 247, 247);
  --theme-surface: rgb(252, 252, 252);
  --theme-surface-elevated: #ffffff;
  --theme-surface-muted: #f8f9fa;
  --theme-text: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-text-muted: oklab(0.19125 0.00000869483 0.0000038445 / 0.7);
  --theme-text-soft: #5f6368;
  --theme-border: #dadce0;
  --theme-border-soft: #eceff3;
  --theme-border-strong: #d2e3fc;
  --theme-link: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-link-hover-bg: #eef3fd;
  --theme-menu-active-bg: #e6ff2e;
  --theme-menu-text: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-menu-text-active: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-menu-active-shadow: rgba(198, 219, 26, 0.2);
  --theme-button-bg: #e6ff2e;
  --theme-button-bg-hover: #d6f216;
  --theme-button-text: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-input-bg: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  --theme-focus: #bfd800;
  --theme-status-info-bg: rgb(247, 247, 247);
  --theme-status-info-color: #174ea6;
  --theme-status-info-border: #d2e3fc;
  --theme-status-ok-bg: rgb(247, 247, 247);
  --theme-status-ok-color: #137333;
  --theme-status-ok-border: #cce7d1;
  --theme-danger: #d93025;
  --theme-danger-soft: #f4c7c3;
  --theme-icon-main: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-settings: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-security: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-passkeys: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-backup: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-applications: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-wallet: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-addresses: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-shadow-accent: rgba(198, 219, 26, 0.22);
}

:root[data-theme='flat-sinapsi'] {
  --theme-body-bg: rgb(247, 247, 247);
  --theme-surface: rgb(252, 252, 252);
  --theme-surface-elevated: #ffffff;
  --theme-surface-muted: #f8f9fa;
  --theme-text: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-text-muted: oklab(0.19125 0.00000869483 0.0000038445 / 0.7);
  --theme-text-soft: #5f6368;
  --theme-border: #dadce0;
  --theme-border-soft: #eceff3;
  --theme-border-strong: #d2e3fc;
  --theme-link: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  --theme-link-hover-bg: #eef3fd;
  --theme-menu-active-bg: rgb(46, 122, 249);
  --theme-menu-text: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-menu-text-active: #ffffff;
  --theme-menu-active-shadow: rgba(46, 122, 249, 0.2);
  --theme-button-bg: rgb(46, 122, 249);
  --theme-button-bg-hover: rgb(31, 103, 223);
  --theme-button-text: #ffffff;
  --theme-input-bg: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  --theme-focus: rgb(46, 122, 249);
  --theme-status-info-bg: rgb(247, 247, 247);
  --theme-status-info-color: #174ea6;
  --theme-status-info-border: #d2e3fc;
  --theme-status-ok-bg: rgb(247, 247, 247);
  --theme-status-ok-color: #137333;
  --theme-status-ok-border: #cce7d1;
  --theme-danger: #d93025;
  --theme-danger-soft: #f4c7c3;
  --theme-icon-main: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-settings: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-security: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-passkeys: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-backup: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-applications: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-wallet: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-icon-addresses: oklab(0.489505 0.0000223668 0.00000981271);
  --theme-shadow-accent: rgba(46, 122, 249, 0.22);
}

:root[data-font-scale='minus-1'] {
  --ui-font-scale: 0.94;
}

:root[data-font-scale='default'] {
  --ui-font-scale: 1;
}

:root[data-font-scale='plus-1'] {
  --ui-font-scale: 1.08;
}

:root[data-font-scale='plus-2'] {
  --ui-font-scale: 1.16;
}

:root[data-font-scale='plus-3'] {
  --ui-font-scale: 1.24;
}

/* CSS estratto da account-summary.ejs */
@media (max-width: 1120px) {
  .panel>.panel-heading h2,
  .panel>h2 {
    display: none !important;
  }
}
@media (max-width: 1120px) {
  .sidebar {
    background: transparent !important;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: rgb(247, 247, 247);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  font-weight: 300;

}
a[href] {
  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: rgb(247, 247, 247);
  border-bottom: 0;
  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: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  white-space: nowrap;
}
.main-profile-hero {
  background-color: rgb(252, 252, 252);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #eceff3;
}

.main-profile-avatar {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--theme-surface-muted) 86%, white);
  border: 1px solid color-mix(in srgb, var(--theme-border-soft) 72%, transparent);
  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: #174ea6;
}

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

.main-profile-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}

.main-profile-secondary {
  margin-top: 4px;
  font-size: 14px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.7);
  word-break: break-word;
}

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

.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: rgb(247, 247, 247);
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
  color: #5f6368;
  font-size: 14px;
}
.search-box>span {
  display: none;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}
.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d9e5;
  border-radius: 999px;
  background: rgb(247, 247, 247);
  color: #4f5b6b;
  cursor: pointer;
  padding: 0;
  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 rgba(247, 247, 247, 0.95);
}
.app-launcher-trigger {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-launcher-trigger .material-symbols-outlined {
  font-size: 22px;
  color: inherit;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.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: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  border-color: #b8c7de;
  outline: none;
}
.security-notice-trigger:hover,
.security-notice-trigger:focus-visible {
  background: transparent;
  color: #b3261e;
  border-color: transparent;
}
.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;
  display: block;
}
.profile-menu-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(247, 247, 247);
  color: #174ea6;
  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 #d9e0ea;
  border-radius: 14px;
  background: rgb(247, 247, 247);
  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 #d9e0ea;
  border-radius: 18px;
  background: var(--theme-surface);
  z-index: 60;
  overflow: hidden;
}
.security-notice-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 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(0, 0, 0, 0.08);
}
.security-notice-menu.open .security-notice-panel,
.app-launcher.open .app-launcher-panel,
.profile-menu.open .profile-menu-panel {
  display: block;
}
.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__copy {
  min-width: 0;
}
.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;
}
.security-notice-panel__action {
  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;
  text-decoration: none;
  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;
}
.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: oklab(0.19125 0.00000869483 0.0000038445 / 0.94) !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;
}
.app-launcher-item__subtitle {
  margin-top: 2px;
  color: var(--theme-text-soft);
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}
.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: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  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:hover,
.profile-menu-item:focus-visible {
  background: rgb(247, 247, 247);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  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: 1px solid #dadce0;
  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) 290px;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 20px 16px 30px;
}
.sidebar {
  grid-column: 1;
  width: 290px;
  position: sticky;
  top: 84px;
  align-self: start;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.mobile-menu-toggle {
  display: flex;
  width: 100%;
  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: 14px;
  border: 1px solid transparent;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  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-button-bg);
  border-color: var(--theme-button-bg);
  color: var(--theme-button-text) !important;
}
.menu-link.active {
  background: var(--theme-button-bg);
  color: var(--theme-button-text) !important;
  font-weight: 300;
  border: 0;
  box-shadow: 0 2px 8px 0 var(--theme-menu-active-shadow);
  border-radius: 9999px;
}
.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 {
  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: 2;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 1480px;
}
.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-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 0;
  background-color: rgb(252, 252, 252);
}
.panel {
  background: rgb(252, 252, 252);
  border: 0;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  scroll-margin-top: 86px;
}
.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: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #202124 !important;
  text-decoration: none;
  font-weight: 600;
}
.admin-tab:visited,
.admin-tab:hover,
.admin-tab:focus {
  color: #202124 !important;
}
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.94);
}
.admin-tab.active {
  background: var(--theme-button-bg, #202124);
  color: var(--theme-button-text, #fff) !important;
  border-color: var(--theme-button-bg, #202124);
}
.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 rgba(0, 0, 0, 0.1);
}
.admin-section-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: rgba(32, 33, 36, 0.74) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.admin-section-tab:visited,
.admin-section-tab:hover,
.admin-section-tab:focus {
  color: rgba(32, 33, 36, 0.94) !important;
}
.admin-section-tab:hover {
  background: rgba(0, 0, 0, 0.03);
}
.admin-section-tab.active {
  background: #fff;
  color: #202124 !important;
  border-color: rgba(0, 0, 0, 0.1);
}
.admin-section-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
}
.admin-section-tab.active:visited,
.admin-section-tab.active:hover,
.admin-section-tab.active:focus {
  color: #202124 !important;
}
.support-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 24px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.support-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: rgba(32, 33, 36, 0.74) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.support-tab:visited,
.support-tab:hover,
.support-tab:focus {
  color: rgba(32, 33, 36, 0.94) !important;
}
.support-tab:hover {
  background: rgba(0, 0, 0, 0.03);
}
.support-tab.active {
  background: #fff;
  color: #202124 !important;
  border-color: rgba(0, 0, 0, 0.1);
}
.support-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
}
.support-tab.active:visited,
.support-tab.active:hover,
.support-tab.active:focus {
  color: #202124 !important;
}
.admin-message-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.admin-message-block h3 {
  margin: 0 0 14px;
}
.admin-message-card {
  border: 0;
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}
.admin-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.admin-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.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: rgba(255, 255, 255, 0.72);
  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 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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: #5f6368;
}
.admin-message-form input,
.admin-message-form select,
.admin-message-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #202124;
  background: #fff;
}
.admin-message-textarea textarea {
  resize: vertical;
  min-height: 96px;
}
.admin-message-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.admin-message-flags label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.admin-message-flags input {
  width: auto;
}
.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: #5f6368;
}
.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: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #202124 !important;
  text-decoration: none;
  font-weight: 600;
}
.admin-pagination__link:visited,
.admin-pagination__link:hover,
.admin-pagination__link:focus {
  color: #202124 !important;
}
.admin-pagination__link:hover {
  background: rgba(255, 255, 255, 0.94);
}
.admin-pagination__link.active {
  background: var(--theme-button-bg, #202124);
  color: var(--theme-button-text, #fff) !important;
  border-color: var(--theme-button-bg, #202124);
}
.admin-pagination__link.active:visited,
.admin-pagination__link.active:hover,
.admin-pagination__link.active:focus {
  color: var(--theme-button-text, #fff) !important;
}
@media (max-width: 1120px) {
  .admin-panel-body {
    padding: 16px;
  }

  .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;
  }

  .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;
  background-color: rgb(252, 252, 252);

}
.panel-heading h2 {
  padding: 0;
  border-bottom: none;
}
.panel-heading .status {
  margin: 0;
  white-space: nowrap;
}
 .panel-row {
  background-color: rgb(252, 252, 252);
  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-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,
.row-actions button,
.admin-message-actions button,
.row-actions a,
.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,
.row-actions button.danger,
.admin-message-actions button.danger,
.row-actions a.danger {
  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;
}
.address-clickable {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .sidebar {
    grid-column: auto;
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin-bottom: 8px;
    background: #ffffff;
    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;
  }
  .content {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }
}
@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;
    font-size: 18px;
  }
  .search-box {
    grid-area: search;
  }
  .topbar-right {
    grid-area: right;
  }
  .security-notice-panel {
    position: fixed;
    top: 72px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(300px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }
  .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;
  }
  .page-title {
    font-size: 28px;
  }
}
@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(0,0,0,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(0,0,0,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: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    padding: 16px 14px;
    font-weight: 300;
    border: 0px;
    transition: background 0.2s, color 0.2s;
  }
  .menu-mobile-link.active {
    background: #fff;
    color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  }
  .menu-mobile-link:focus, .menu-mobile-link:hover {
    background: #eef3fd;
    color: #174ea6;
  }
  .menu-mobile-link .material-symbols-outlined {
    font-size: 24px;
  }
  .sidebar, .layout > aside.sidebar {
    display: none !important;
  }
}
@media (min-width: 1121px) {
  #mobile-menu-overlay, .mobile-menu-overlay { display: none !important; }
}
/* --- FINE CSS mobile overlay menu --- */

/* Brand Sinapsi/Account stile toolbar */
.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: inherit !important;
  text-decoration: none;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 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,
.menu-icon {
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94) !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(32, 33, 36, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(32, 33, 36, 0.12);
}

.login-message-overlay__card.is-blocking {
  border-color: rgba(32, 33, 36, 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;
  border: 1px solid #dadce0;
  display: flex;
  flex-direction: row;
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.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 img {
  width: 100px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.left h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #202124;
}
.left p {
  font-size: 14px;
  color: #5f6368;
}
.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card singola (reset-2fa, recovery, backup-codes…) */
.card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  padding: 28px;
  box-sizing: border-box;
}

/* Elementi di form */
.form-group {
  margin-bottom: 24px;
}
label {
  display: block;
  font-size: 13px;
  color: #3c4043;
  margin-bottom: 6px;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
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: 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[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 1px #1a73e8;
}
.password-field {
  position: relative;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 44px;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  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;
}
.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;
}

/* Blocco auth alternativo (passkey) */
.alt-auth {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eceff3;
}
.alt-auth a {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid #d2e3fc;
  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;
}

/* 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;
}

/* Riga azioni (pulsante + link) */
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.actions a {
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
}
.actions button {
  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: #202124;
  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: #202124;
  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;
}

/* Header colorato (passkey) */
.header {
  background: rgb(247, 247, 247);
  text-align: center;
}
.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}
.header p {
  background: transparent;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  font-size: 14px;
}
.header-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

/* Pulsanti passkey */
.btn-primary {
  background: rgb(20, 20, 20);
  color: white;
  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(0, 0, 0, 0.3);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: rgb(20, 20, 20);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgb(40, 40, 40); }
.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 { color: #1a73e8; text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link a:hover { text-decoration: underline; }

/* Griglia a due colonne (complete-profile) */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.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: #202124; }
.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; border-color: #bfd3fb; }
.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: 8px;
  font-size: 13px;
  color: #202124;
}
.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: #202124; 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: 8px; margin-top: 8px; font-size: 13px; color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94); }
.inline input[type="checkbox"] {
  width: auto;
  margin: 0;
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  accent-color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}

/* Option box (signup) */
.option-box {
  margin-bottom: 24px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafd;
}
.option-box label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  cursor: pointer;
}
.option-box input[type="checkbox"] {
  margin-top: 2px;
  background: oklab(0.19125 0.00000869483 0.0000038445 / 0.06);
  color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
  accent-color: oklab(0.19125 0.00000869483 0.0000038445 / 0.94);
}
.option-box small { display: block; margin-top: 6px; color: #5f6368; font-size: 12px; line-height: 1.4; }

/* 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: #202124;
  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; }
.helper { margin-top: 18px; font-size: 13px; color: #5f6368; line-height: 1.5; }

/* Consent */
.allow { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; }
.deny  { background-color: #f44336; color: white; 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: 0px;
    padding-top: 10px;
  }
  .actions {
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
  }
  .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;
  }
}

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

a[href] {
  color: var(--theme-link) !important;
}

.topbar,
.search-box,
.profile-menu-trigger,
.profile-menu-avatar-fallback,
.profile-menu-panel,
.mobile-menu-content,
.header {
  background: var(--theme-body-bg);
}

.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,
.menu-mobile-link.active,
.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: 0;
}

.panel-heading,
.panel,
.panel h2,
.panel-row,
.card,
.menu-mobile-link,
.menu-mobile-link.active,
.container,
.secret-box,
.steps,
.option-box,
.code-item,
.photo-section,
.mobile-menu-link {
  background: var(--theme-surface);
}

.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-mobile-link:focus,
.menu-mobile-link:hover {
  background: var(--theme-menu-active-bg);
  color: var(--theme-menu-text-active) !important;
}

.chip,
.row-actions button,
.admin-message-actions button,
.row-actions a,
.address-actions a,
.address-link,
.action-link,
.photo-upload-button,
.alt-auth a {
/*  background: var(--theme-surface-muted);*/
  color: var(--theme-link);
  border: 1px solid var(--theme-border-strong);
}

.row-actions button,
.admin-message-actions button,
.actions button,
.btn-primary,
.btn-secondary,
.allow,
.deny,
a.action-btn,
a.action-btn:visited,
a.action-btn:hover,
a.action-btn:focus {
  background: var(--theme-button-bg);
  border-color: var(--theme-button-bg);
  color: var(--theme-button-text) !important;
}

.actions button:hover,
.btn-secondary:hover,
.btn-primary:hover:not(:disabled),
a.action-btn:hover,
a.action-btn:focus {
  background: var(--theme-button-bg-hover);
  border-color: var(--theme-button-bg-hover);
}

.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;
  border-color: 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;
  border-color: var(--theme-button-bg-hover) !important;
}

.row-actions button.danger,
.admin-message-actions button.danger,
.row-actions a.danger,
.chip.danger,
.required-icon,
.error {
  color: var(--theme-danger);
  border-color: var(--theme-danger-soft);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="file"],
select,
textarea,
.inline input[type="checkbox"],
.option-box input[type="checkbox"] {
  background: var(--theme-input-bg);
  border-color: var(--theme-border);
  color: var(--theme-text);
  accent-color: var(--theme-link);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--theme-focus);
  box-shadow: 0 0 0 1px var(--theme-focus);
}

.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;
}

.device-panel-heading {
  align-items: flex-start;
}

.devices-panel-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.device-type-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.device-type-group + .device-type-group {
  padding-top: 10px;
  border-top: 1px solid var(--theme-border-soft);
}

.device-type-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-type-group__header h4 {
  margin: 0;
  font-size: 15px;
  color: var(--theme-text);
}

.device-type-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 600;
}

.device-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-group__header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--theme-text);
}

.device-group__count,
.device-chip {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.device-card {
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--theme-surface-elevated);
}

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

.device-card__chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.device-card__title {
  margin: 0;
  font-size: 17px;
  color: var(--theme-text);
  word-break: break-word;
}

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

.device-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 18px 0 0;
}

.device-card__meta dt {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--theme-text-soft);
}

.device-card__meta dd {
  margin: 0;
  color: var(--theme-text);
  word-break: break-word;
}

.device-empty-state {
  margin-top: 0;
}

@media (max-width: 720px) {
  .device-panel-heading,
  .device-group__header,
  .device-type-group__header,
  .device-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .device-card__chips {
    justify-content: flex-start;
  }

  .device-card__meta {
    grid-template-columns: 1fr;
  }
}

.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;
}

.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-empty-state {
  margin: 0;
  color: var(--theme-text-soft);
}

.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-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 {
  display: block;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--theme-surface-muted);
  text-decoration: none;
}

.support-ticket-card.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__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-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-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.support-thread-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}

.support-thread-attachment small {
  color: var(--theme-text-soft);
}

.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 {
    max-width: 760px;
  }

  .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-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.wallet-purchase-item {
  display: flex;
  align-items: center;
  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__title {
  color: var(--theme-text);
  font-weight: 600;
}

.wallet-purchase-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.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);
}

.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: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--theme-surface-elevated);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}

.theme-choice-option:hover .theme-choice-card {
  box-shadow: 0 0 0 1px var(--theme-link);
}

.theme-choice-option input:checked + .theme-choice-card {
  box-shadow: 0 0 0 1px var(--theme-link), 0 10px 24px var(--theme-shadow-accent);
  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-text);
}

.theme-choice-description {
  font-size: 12px;
  line-height: 1.5;
  color: 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 {
  font-size: 15px;
}

.font-scale-preview-default {
  font-size: 18px;
}

.font-scale-preview-large {
  font-size: 20px;
}

.font-scale-preview-larger {
  font-size: 22px;
}

.font-scale-preview-extra-large {
  font-size: 24px;
}

.theme-choice-palette {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.theme-choice-palette-grey,
.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-swatch {
  width: 100%;
  height: 26px;
  border-radius: 999px;
}

.theme-choice-swatch-grey-1 { background: #f7f7f7; }
.theme-choice-swatch-grey-2 { background: #d8dce2; }
.theme-choice-swatch-grey-3 { background: #202124; }
.theme-choice-swatch-grey-4 { background: #174ea6; }
.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: #202124; }
.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: #202124; }
.theme-choice-swatch-sinapsi-4 { background: rgb(31, 103, 223); }

@media (max-width: 1120px) {
  .theme-choice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .security-notice-panel {
    position: fixed;
    top: 72px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
  }

  .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[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
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));
}

.brand,
.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));
}

.section-guide-link-row {
  margin-top: 12px;
  padding: 0 4px 8px;
}

.section-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
}

.section-guide-link:hover {
  background: transparent !important;
}

.guide-sidebar {
  grid-column: 3;
  position: sticky;
  top: 84px;
  align-self: start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity .22s ease, transform .22s ease;
}

.guide-sidebar.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.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(32, 33, 36, 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) {
  .section-guide-link-row {
    margin-top: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .guide-sidebar {
    display: none;
  }

  .account-guide-page__main {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }
}
