.userpage {
  --userpage-bg: #f6f8fb;
  --userpage-surface: rgba(255, 255, 255, 0.82);
  --userpage-surface-solid: #ffffff;
  --userpage-border: #e5e7eb;
  --userpage-border-soft: #eef2f7;
  --userpage-text: #0f172a;
  --userpage-text-mid: #334155;
  --userpage-text-muted: #64748b;
  --userpage-accent: #10b981;
  --userpage-accent-soft: #ecfdf5;
  --userpage-accent-strong: #059669;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfdfc 0%, var(--userpage-bg) 42%, #f3f6fa 100%);
}

.app-main:has(.userpage) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.userpage-user-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.userpage-user-switch-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--userpage-text-muted);
}

.userpage-user-select {
  width: min(18rem, 38vw);
  min-height: 1.9rem;
  padding: 0.25rem 1.75rem 0.25rem 0.55rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--userpage-text-mid);
  font-size: 0.76rem;
  font-weight: 600;
  outline: none;
}

.userpage-user-select:focus {
  border-color: var(--userpage-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.userpage-layout {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.userpage-sidebar {
  position: sticky;
  top: 3.75rem;
  display: grid;
  gap: 0.9rem;
}

.userpage-card-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--userpage-text-muted);
}

.userpage-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--userpage-text);
}

.userpage-profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.userpage-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.userpage-status-badge.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.userpage-status-badge.is-inactive {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.userpage-status-badge.is-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.userpage-info-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
}

.userpage-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.userpage-permission-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--userpage-text-mid);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.userpage-permission-chip::after {
  content: attr(data-permission-code);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translate(-50%, 0.2rem);
  padding: 0.22rem 0.4rem;
  border-radius: 0.45rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease, transform 0.08s ease;
  z-index: 5;
}

.userpage-permission-chip:hover::after,
.userpage-permission-chip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.userpage-main {
  min-width: 0;
}

.userpage-empty-state {
  min-height: 18rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 2rem;
  border: 1px dashed var(--userpage-border);
  border-radius: 0.9rem;
  background: #f8fafc;
  text-align: center;
}

.userpage-empty-state-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
  font-size: 1.5rem;
}

.userpage-empty-state h3 {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.95rem;
}

.userpage-empty-state p {
  max-width: 34rem;
  margin: 0.35rem auto 0;
  color: var(--userpage-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.userpage-worksummary {
  display: grid;
  gap: 0.9rem;
}

.userpage-worksummary.is-loading {
  opacity: 0.62;
  pointer-events: none;
}

.userpage-worksummary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.userpage-worksummary-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--userpage-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  appearance: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.userpage-worksummary-nav-link:hover,
.userpage-worksummary-nav-link.is-active {
  border-color: rgba(16, 185, 129, 0.24);
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
}

.userpage-worksummary-shell {
  display: grid;
  gap: 0.9rem;
}

.userpage-range-form {
  margin: 0;
  margin-left: auto;
}

.userpage-panel-head.userpage-workbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--userpage-border);
}

.userpage-range-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.userpage-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.userpage-preset-btn {
  min-height: 1.85rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--userpage-border);
  border-radius: 999px;
  background: #fff;
  color: var(--userpage-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.userpage-preset-btn:hover,
.userpage-preset-btn.is-active {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
}

.userpage-range-toolbar .userpage-form-row {
  width: 7.4rem;
  gap: 0.22rem;
}

.userpage-range-toolbar .userpage-form-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.userpage-range-toolbar .userpage-form-input {
  min-height: 1.85rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 0.55rem;
}

.userpage-range-actions {
  display: flex;
  justify-content: flex-end;
}

.userpage-range-actions .userpage-submit-btn {
  min-height: 1.85rem;
  padding: 0.34rem 0.65rem;
  font-size: 0.7rem;
  border-radius: 0.55rem;
}

.userpage-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.userpage-kpi-grid--secondary {
  margin-bottom: 0;
}

.userpage-worksummary-secondary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.userpage-worksummary-secondary-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.userpage-worksummary-secondary-copy {
  font-size: 0.72rem;
  color: var(--userpage-text-muted);
}

.userpage-kpi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "copy copy";
  align-items: start;
  column-gap: 0.6rem;
  row-gap: 0.18rem;
  width: 100%;
  padding: 0.68rem 0.72rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.userpage-kpi-link {
  appearance: none;
  border: 1px solid var(--userpage-border);
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.userpage-kpi-link:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.userpage-kpi-link.is-active {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.userpage-kpi-label {
  grid-area: label;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--userpage-text);
}

.userpage-kpi-value {
  grid-area: value;
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--userpage-text);
  text-align: right;
}

.userpage-kpi-copy {
  grid-area: copy;
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.25;
  color: var(--userpage-text-muted);
}

.userpage-activity-table {
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  box-shadow: none;
}

.userpage-activity-table .cc-work-table-toolbar {
  padding: 0.5rem 0.75rem;
}

.userpage-work-table {
  min-width: 720px;
}

.userpage-table-limit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--userpage-text-muted);
}

.userpage-activity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--userpage-border);
  font-size: 0.68rem;
  font-weight: 700;
}

.userpage-activity-badge.is-won {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.userpage-activity-badge.is-opened {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.userpage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.userpage-panel-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--userpage-accent-strong);
}

.userpage-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--userpage-text);
}

.cc-work-table-counter-label,
.cc-work-table-th {
  font-weight: 800;
}

.userpage-password-form {
  display: grid;
  gap: 0.9rem;
}

.userpage-form-row {
  display: grid;
  gap: 0.38rem;
}

.userpage-form-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--userpage-text);
}

.userpage-password-wrap {
  position: relative;
}

.userpage-form-input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 2.8rem 0.7rem 0.9rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: #f8fafc;
  color: var(--userpage-text);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.userpage-form-input:focus {
  border-color: var(--userpage-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  background: #ffffff;
}

.userpage-worksummary--deferred.is-loading {
  opacity: 1;
}

.userpage-worksummary-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.userpage-worksummary-skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 0.7rem;
  background: #eef2f6;
}

.userpage-worksummary-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: userpage-skeleton-shimmer 1.35s ease-in-out infinite;
}

.userpage-worksummary-skeleton--toolbar {
  min-height: 4.4rem;
}

.userpage-worksummary-skeleton--kpi {
  min-height: 7.2rem;
}

.userpage-worksummary-skeleton--table {
  min-height: 19rem;
}

@keyframes userpage-skeleton-shimmer {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .userpage-worksummary-skeleton::after {
    animation: none;
  }
}

.userpage-worksummary-error {
  min-height: 17rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  background: #fffafa;
}

.userpage-worksummary-error > .material-symbols-outlined {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.2rem;
}

.userpage-worksummary-error strong {
  color: var(--userpage-text);
  font-size: 0.82rem;
}

.userpage-worksummary-error p {
  margin: 0.2rem 0 0;
  color: var(--userpage-text-muted);
  font-size: 0.72rem;
}

.userpage-worksummary-error button {
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--userpage-text-mid);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.userpage-form-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.userpage-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--userpage-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.userpage-password-toggle:hover {
  color: var(--userpage-accent-strong);
}

.userpage-form-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--userpage-text-muted);
}

.userpage-password-error {
  color: #dc2626;
}

.userpage-form-actions {
  display: flex;
  justify-content: flex-end;
}

.userpage-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.68rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--userpage-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.userpage-submit-btn:hover {
  background: var(--userpage-accent-strong);
}

.userpage-secondary-btn,
.userpage-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.68rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.userpage-secondary-btn {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
}

.userpage-secondary-btn:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: #d1fae5;
}

.userpage-ghost-btn {
  border: 1px solid var(--userpage-border);
  background: #fff;
  color: var(--userpage-text-muted);
}

.userpage-ghost-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--userpage-text-mid);
}

.userpage-submit-btn:disabled,
.userpage-secondary-btn:disabled,
.userpage-ghost-btn:disabled {
  cursor: progress;
  opacity: 0.68;
}

.userpage-panel-label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.userpage-notifications {
  display: grid;
  gap: 0.65rem;
}

.userpage-notification-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.72fr);
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.userpage-notification-hero-copy {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  min-width: 0;
}

.userpage-notification-hero-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  border: 1px solid #dbe7f3;
  background: #f8fafc;
  color: #0f766e;
  font-size: 1rem;
  line-height: 1;
}

.userpage-notification-hero p {
  margin: 0.22rem 0 0;
  color: var(--userpage-text-mid);
  font-size: 0.78rem;
  line-height: 1.42;
  max-width: 42rem;
}

.userpage-notification-status {
  align-self: stretch;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.16rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.75rem;
  background: #f8fafc;
}

.userpage-notification-status p {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.userpage-notification-status [data-state="ok"],
.userpage-notification-checks [data-state="ok"] {
  color: #047857;
}

.userpage-notification-status [data-state="warn"],
.userpage-notification-checks [data-state="warn"] {
  color: #b45309;
}

.userpage-notification-status [data-state="bad"],
.userpage-notification-checks [data-state="bad"] {
  color: #b91c1c;
}

.userpage-notification-commandbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.userpage-notification-command {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.userpage-notification-command:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.userpage-notification-command .material-symbols-outlined {
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  border: 1px solid #dbe7f3;
  background: #f8fafc;
  font-size: 0.92rem;
  flex: 0 0 auto;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.userpage-notification-command span:last-child {
  display: grid;
  gap: 0.16rem;
}

.userpage-notification-command strong {
  color: var(--userpage-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.userpage-notification-command small {
  color: var(--userpage-text-muted);
  font-size: 0.67rem;
  line-height: 1.3;
}

.userpage-notification-command--primary .material-symbols-outlined {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.userpage-notification-command--secondary .material-symbols-outlined {
  color: #0369a1;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.userpage-notification-command--ghost .material-symbols-outlined {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.userpage-notification-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.8rem;
  align-items: start;
}

.userpage-notification-shell,
.userpage-notification-preferences,
.userpage-notification-diagnostics {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.userpage-notification-preferences-head h2,
.userpage-notification-preferences-head h3 {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.userpage-notification-preferences-head p:last-child {
  margin: 0.22rem 0 0;
  font-size: 0.74rem;
  color: var(--userpage-text-mid);
  line-height: 1.42;
}

.userpage-notification-preferences-list {
  display: grid;
  gap: 0.55rem;
}

.userpage-notification-group {
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: #ffffff;
}

.userpage-notification-group[open] {
  background: #fcfdfd;
}

.userpage-notification-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  cursor: pointer;
  list-style: none;
}

.userpage-notification-group-summary::-webkit-details-marker {
  display: none;
}

.userpage-notification-group-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.userpage-notification-group-copy strong {
  color: var(--userpage-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.userpage-notification-group-copy span {
  color: var(--userpage-text-muted);
  font-size: 0.69rem;
  line-height: 1.32;
}

.userpage-notification-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.userpage-notification-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 1.35rem;
  padding: 0 0.42rem;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--userpage-text-mid);
  font-size: 0.65rem;
  font-weight: 700;
}

.userpage-notification-group-chevron {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.18s ease;
}

.userpage-notification-group[open] .userpage-notification-group-chevron {
  transform: rotate(180deg);
}

.userpage-notification-group-options {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.82rem 0.82rem;
}

.userpage-notification-preference {
  display: block;
  margin: 0;
  cursor: pointer;
}

.userpage-notification-preference input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.userpage-notification-preference-box {
  display: grid;
  gap: 0.25rem;
  min-height: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.userpage-notification-preference-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.userpage-notification-preference-box strong {
  color: var(--userpage-text);
  font-size: 0.78rem;
}

.userpage-notification-preference-copy {
  color: var(--userpage-text-muted);
  font-size: 0.7rem;
  line-height: 1.34;
  max-width: 32rem;
}

.userpage-notification-switch {
  position: relative;
  width: 2.45rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.userpage-notification-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7dee7;
  transition: background-color 0.18s ease;
}

.userpage-notification-switch-thumb {
  position: absolute;
  top: 0.12rem;
  left: 0.14rem;
  width: 1.16rem;
  height: 1.16rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease;
}

.userpage-notification-preference input:checked + .userpage-notification-preference-box {
  border-color: rgba(16, 185, 129, 0.42);
  background: #f8fffc;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
}

.userpage-notification-preference input:checked + .userpage-notification-preference-box .userpage-notification-switch-track {
  background: var(--userpage-accent);
}

.userpage-notification-preference input:checked + .userpage-notification-preference-box .userpage-notification-switch-thumb {
  transform: translateX(1.02rem);
}

.userpage-notification-preference input:focus-visible + .userpage-notification-preference-box {
  border-color: var(--userpage-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.userpage-notification-diagnostics-head h2,
.userpage-notification-diagnostics-head h3 {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.userpage-notification-diagnostics-head p:last-child {
  margin: 0.22rem 0 0;
  color: var(--userpage-text-mid);
  font-size: 0.74rem;
  line-height: 1.42;
}

.userpage-notification-grid,
.userpage-notification-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.userpage-notification-grid--channels {
  grid-template-columns: 1fr;
}

.userpage-notification-channel {
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: #ffffff;
}

.userpage-notification-channel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.userpage-notification-channel-icon {
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0.62rem;
  border: 1px solid #dbe7f3;
  background: #f8fafc;
  color: #0f766e;
  padding: 0;
}

.userpage-notification-channel-glyph {
  display: block;
  color: #0f766e;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  transform-origin: center;
}

.userpage-notification-channel-glyph--mail {
  transform: translate(0.08rem, 0.06rem);
}

.userpage-notification-channel-glyph--campaign {
  transform: translate(0.07rem, 0.04rem);
}

.userpage-notification-channel h3 {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.userpage-notification-copy {
  margin-bottom: 0.65rem !important;
  color: var(--userpage-text-mid);
  font-size: 0.71rem;
  line-height: 1.35;
}

.userpage-notification-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}

.userpage-notification-checks div {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.68rem;
  background: #f8fafc;
}

.userpage-notification-checks dt {
  margin: 0 0 0.18rem;
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.userpage-notification-checks dd {
  margin: 0;
  color: var(--userpage-text-mid);
  font-size: 0.68rem;
  font-weight: 700;
  word-break: break-word;
}

.userpage-notification-note {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--userpage-text);
}

.userpage-notification-note-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.58rem;
  border: 1px solid #dbe7f3;
  background: #ffffff;
  color: #0f766e;
  padding: 0;
}

.userpage-notification-note-icon-glyph {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.userpage-notification-note-icon-glyph--computer {
  transform: translate(0.01rem, -0.01rem);
}

.userpage-notification-note p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.userpage-notification-note--diagnosis {
  background: #fcfdfd;
}

.userpage-notification-note--tip .material-symbols-outlined {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.userpage-notification-note a {
  color: #1d4ed8;
  font-weight: 750;
  text-decoration: none;
}

.userpage-notification-note a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .userpage-layout {
    grid-template-columns: 1fr;
  }

  .userpage-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .userpage-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .userpage-workbar,
  .userpage-range-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .userpage-range-toolbar .userpage-form-row {
    width: 100%;
  }

  .userpage-notification-hero,
  .userpage-notification-commandbar,
  .userpage-notification-workspace,
  .userpage-notification-grid,
  .userpage-notification-info-grid,
  .userpage-notification-checks {
    grid-template-columns: 1fr;
  }

  .userpage-notification-status {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .userpage-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* User area v2: flat detail-page workspace */
.userpage {
  --userpage-bg: #f8fafc;
  --userpage-surface: #ffffff;
  --userpage-surface-solid: #ffffff;
  --userpage-border: #e2e8f0;
  --userpage-border-soft: #f1f5f9;
  min-height: 100vh;
  background: var(--userpage-bg);
}

.userpage-content-shell {
  padding: 1rem;
}

.userpage-contextbar {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem 0.65rem 0.9rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.userpage-contextbar-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.userpage-contextbar-copy > .material-symbols-outlined {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  border-radius: 0.55rem;
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
  font-size: 1.05rem;
}

.userpage-contextbar-copy div {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.userpage-contextbar-copy strong {
  color: var(--userpage-text);
  font-size: 0.78rem;
}

.userpage-contextbar-copy span:not(.material-symbols-outlined) {
  color: var(--userpage-text-muted);
  font-size: 0.7rem;
}

.userpage-user-switch {
  flex: 0 1 24rem;
  justify-content: flex-end;
}

.userpage-user-switch-label {
  white-space: nowrap;
  font-size: 0.65rem;
}

.userpage-user-select {
  width: min(20rem, 42vw);
  min-height: 2.25rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.userpage-layout {
  grid-template-columns: 20.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
}

.userpage-sidebar {
  top: 1rem;
}

.userpage-profile-card {
  overflow: hidden;
  border: 1px solid var(--userpage-border);
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.userpage-customization-card {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  border: 1px solid var(--app-border, #e5e7eb);
  border-radius: 0.9rem;
  background: var(--app-surface, #ffffff);
  padding: 1rem;
  box-shadow: var(--app-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.userpage-customization-card__header,
.userpage-customization-card__field,
.userpage-customization-card__toggle,
.userpage-customization-card__scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.userpage-customization-card__header {
  justify-content: flex-start;
}

.userpage-customization-card__header > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--app-accent-soft, #ecfdf5);
  color: var(--app-accent-strong, #047857);
}

.userpage-customization-card__header h2 {
  margin: 0.1rem 0 0;
  color: var(--app-text, #111827);
  font-size: 1rem;
  line-height: 1.2;
}

.userpage-customization-card__intro {
  margin: -0.15rem 0 0;
  color: var(--app-text-muted, #6b7280);
  font-size: 0.78rem;
  line-height: 1.4;
}

.userpage-customization-card__field,
.userpage-customization-card__toggle {
  color: var(--app-text, #111827);
  font-size: 0.82rem;
  font-weight: 700;
}

.userpage-customization-card__field input[type='color'] {
  width: 2.2rem;
  height: 1.75rem;
  padding: 0.12rem;
  border: 1px solid var(--app-border, #e5e7eb);
  border-radius: 0.4rem;
  background: #ffffff;
  cursor: pointer;
}

.userpage-customization-card__scope select {
  min-width: 0;
  max-width: 11rem;
  border: 1px solid var(--app-border, #e5e7eb);
  border-radius: 0.4rem;
  background: #ffffff;
  color: var(--app-text, #111827);
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.78rem;
}

.userpage-customization-card__toggle input {
  appearance: none;
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  margin: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.userpage-customization-card__toggle input::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease;
}

.userpage-customization-card__toggle input:checked {
  background: var(--app-accent, #16a34a);
}

.userpage-customization-card__toggle input:checked::after {
  transform: translateX(1rem);
}

.userpage-customization-card__field input:focus-visible,
.userpage-customization-card__toggle input:focus-visible,
.userpage-customization-card__scope select:focus-visible {
  outline: 2px solid var(--app-accent, #16a34a);
  outline-offset: 2px;
}

.userpage-customization-card__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--app-accent-strong, #047857);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.userpage-customization-card__apply:hover,
.userpage-customization-card__apply:focus-visible {
  background: var(--app-accent, #16a34a);
  outline: none;
}

.userpage-customization-card__apply:disabled {
  cursor: wait;
  opacity: 0.65;
}

.userpage-customization-card__apply .material-symbols-outlined {
  font-size: 1rem;
}

.userpage-customization-card__status {
  min-height: 1.1rem;
  margin: -0.3rem 0 0;
  color: var(--app-text-muted, #6b7280);
  font-size: 0.75rem;
  font-weight: 650;
}

.userpage-customization-card__status.is-success {
  color: #047857;
}

.userpage-customization-card__status.is-error {
  color: #b91c1c;
}

.userpage-profile-hero {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--userpage-border-soft);
}

.userpage-profile-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid #a7f3d0;
  border-radius: 0.75rem;
  background: var(--userpage-accent-soft);
  color: #047857;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.userpage-profile-identity {
  min-width: 0;
}

.userpage-profile-identity .userpage-card-title {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userpage-profile-identity > p:last-child {
  overflow: hidden;
  margin: 0.18rem 0 0;
  color: var(--userpage-text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userpage-profile-body {
  padding: 0.9rem 1rem 1rem;
}

.userpage-profile-badge-row {
  margin-bottom: 0.8rem;
}

.userpage-status-badge {
  min-height: 1.5rem;
  padding: 0.16rem 0.48rem;
  font-size: 0.61rem;
  letter-spacing: 0.04em;
}

.userpage-status-dot {
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.32rem;
  border-radius: 999px;
  background: currentColor;
}

.userpage-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.userpage-profile-facts > div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.65rem;
  background: #f8fafc;
}

.userpage-profile-facts dt {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.userpage-profile-facts dt .material-symbols-outlined {
  font-size: 0.85rem;
}

.userpage-profile-facts dd {
  overflow: hidden;
  margin: 0.3rem 0 0;
  color: var(--userpage-text-mid);
  font-size: 0.75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userpage-access-details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--userpage-border-soft);
}

.userpage-access-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0 0;
  color: var(--userpage-text-mid);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  list-style: none;
}

.userpage-access-details summary::-webkit-details-marker {
  display: none;
}

.userpage-access-details summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.userpage-access-details summary .material-symbols-outlined {
  color: var(--userpage-text-muted);
  font-size: 0.95rem;
}

.userpage-access-chevron {
  transition: transform 0.15s ease;
}

.userpage-access-details[open] .userpage-access-chevron {
  transform: rotate(180deg);
}

.userpage-access-content {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.8rem;
}

.userpage-access-group {
  display: grid;
  gap: 0.3rem;
}

.userpage-access-copy {
  margin: 0;
  color: var(--userpage-text-mid);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.userpage-permission-chip {
  min-height: 1.45rem;
  padding: 0.16rem 0.45rem;
  border-color: var(--userpage-border);
  font-size: 0.62rem;
}

.userpage-permission-chip::after {
  content: none;
}

.userpage-main {
  min-width: 0;
}

.userpage-page {
  display: grid;
  gap: 1rem;
}

.userpage-page-header {
  min-height: 4.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.15rem 0.85rem;
  border-bottom: 1px solid var(--userpage-border);
}

.userpage-page-title {
  margin: 0;
  color: var(--userpage-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.userpage-page-description {
  max-width: 46rem;
  margin: 0.32rem 0 0;
  color: var(--userpage-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.userpage-page-header-aside {
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.userpage-panel-kicker {
  margin-bottom: 0.25rem;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
}

.userpage-kpi-card,
.userpage-notification-shell,
.userpage-notification-preferences,
.userpage-notification-diagnostics {
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.userpage-kpi-card {
  padding: 0.85rem;
}

.userpage-kpi-value {
  font-size: 1.35rem;
}

.userpage-panel-head.userpage-workbar {
  margin-bottom: 0;
  padding: 0.75rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.7rem;
  background: #ffffff;
}

.userwm-intro,
.usernc-service-note {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: #f8fbff;
  color: #475569;
  font-size: 0.72rem;
}

.userwm-intro .material-symbols-outlined,
.usernc-service-note .material-symbols-outlined {
  color: #2563eb;
  font-size: 1rem;
}

.userpage-security-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.userpage-security-status {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--userpage-border);
  border-radius: 0.7rem;
  background: #ffffff;
}

.userpage-security-status-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--userpage-accent-soft);
  color: var(--userpage-accent-strong);
  font-size: 1.1rem;
}

.userpage-security-status > div {
  display: grid;
  gap: 0.2rem;
}

.userpage-security-status strong {
  color: var(--userpage-text);
  font-size: 0.82rem;
}

.userpage-security-status p {
  margin: 0;
  color: var(--userpage-text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.userpage-security-password-card {
  overflow: hidden;
  border: 1px solid var(--userpage-border);
  border-radius: 0.75rem;
  background: #ffffff;
}

.userpage-security-password-card > header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--userpage-border-soft);
}

.userpage-security-password-card > header > .material-symbols-outlined {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1rem;
}

.userpage-security-password-card h3 {
  margin: 0;
  color: var(--userpage-text);
  font-size: 0.85rem;
}

.userpage-security-password-card header p {
  margin: 0.18rem 0 0;
  color: var(--userpage-text-muted);
  font-size: 0.68rem;
}

.userpage-security-password-card .userpage-password-form {
  padding: 0.95rem;
}

.userpage-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.userpage-notification-workspace {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 0.75rem;
}

.userpage-empty-state {
  min-height: 22rem;
  border-radius: 0.75rem;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .userpage-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
  }

  .userpage-notification-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .userpage-layout {
    grid-template-columns: 1fr;
  }

  .userpage-sidebar {
    position: static;
  }

  .userpage-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
    gap: 0.75rem 1rem;
  }

  .userpage-profile-badge-row {
    align-content: start;
    margin: 0;
  }

  .userpage-access-details {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .userpage-content-shell {
    padding: 0.75rem;
  }

  .userpage-contextbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }

  .userpage-user-switch {
    display: grid;
    flex: none;
    justify-content: stretch;
  }

  .userpage-user-select {
    width: 100%;
  }

  .userpage-profile-body,
  .userpage-profile-facts,
  .userpage-security-status-grid,
  .userpage-password-fields,
  .userpage-worksummary-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .userpage-worksummary-error {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .userpage-worksummary-error button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .userpage-page-header {
    min-height: 0;
    flex-direction: column;
  }

  .userpage-page-title {
    font-size: 1.1rem;
  }
}
