.eyebrow,
.panel-tag,
.sidebar-kicker,
.sidebar-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  padding-block: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.sidebar-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand);
  display: inline-block;
  border-radius: 999px;
}

.auth-feature-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-feature-list article {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-feature-list strong,
.sidebar-user strong {
  display: block;
  margin-bottom: 6px;
}

.panel,
.hero-card,
.page-heading {
  padding: var(--surface-padding);
}

.auth-panel {
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 240, 227, 0.82)),
    var(--panel);
}

.auth-panel-login {
  width: min(680px, 100%);
  padding: 38px 36px 32px;
  border-radius: 30px;
  border-color: rgba(var(--brand-r), 0.14);
  background:
    radial-gradient(circle at top right, rgba(var(--brand-soft-r), 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(var(--brand-r), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 240, 227, 0.92)),
    var(--panel);
  box-shadow:
    0 28px 54px rgba(58, 40, 20, 0.12),
    0 10px 20px rgba(var(--brand-r), 0.08);
}

.auth-panel-header {
  margin-bottom: 24px;
}

.auth-panel-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.auth-panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid rgba(var(--brand-r), 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-panel-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.auth-panel-lead {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-login-form {
  gap: 18px;
}

.auth-panel-login .field {
  gap: 8px;
}

.auth-panel-login .field label {
  font-size: 0.77rem;
  letter-spacing: 0.08em;
}

.auth-panel-login .field input {
  min-height: 56px;
  padding: 14px 17px;
  border-radius: 18px;
  border-color: rgba(var(--brand-r), 0.18);
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(231, 239, 251, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 20px rgba(53, 76, 110, 0.05);
}

.auth-panel-login .field input::placeholder {
  color: #7f8c98;
}

.auth-panel-login .field-checkbox {
  margin-top: 2px;
  min-height: 28px;
}

.auth-panel-login .field-checkbox label {
  font-size: 0.95rem;
}

.auth-panel-login .primary-button {
  min-height: 58px;
  margin-top: 8px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 20px 34px rgba(var(--accent-r), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-panel-login .primary-button:hover {
  box-shadow:
    0 24px 42px rgba(var(--accent-r), 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.auth-panel-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h2 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.panel-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-page-heading h1 {
  max-width: none;
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (max-width: 960px) {
  .news-feed-body-wrap--with-cover {
    grid-template-columns: 1fr;
  }

  .news-feed-cover,
  .news-feed-cover-img {
    width: 100%;
  }

  .news-feed-cover-img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .news-feed-item {
    padding: 16px;
    border-radius: 20px;
  }

  .news-feed-item--compact {
    padding: 14px 16px;
  }

  .news-feed-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-feed-meta {
    gap: 6px 10px;
    font-size: 0.76rem;
  }

  .news-feed-body {
    font-size: 0.82rem;
    line-height: 1.6;
    padding-top: 12px;
  }

  .news-feed-body p {
    margin: 0.55em 0;
  }

  .news-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-image-link,
  .news-image-preview {
    width: 100%;
  }

  .news-image-preview {
    height: 108px;
  }

  .news-attachments li {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-feed-header .compact-button {
    width: 100%;
    justify-content: center;
  }

  .profile-page-heading h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    text-wrap: pretty;
  }
}

.stacked-form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.field-compact {
  gap: 4px;
  align-content: start;
}

.field label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.field input,
.field select,
.field textarea,
.inline-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(24, 32, 28, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field .select-control {
  min-height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.field .select-control.select-control-long-list {
  padding-right: 38px;
}

.scroll-select {
  position: relative;
}

.scroll-select-native {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.scroll-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 9px 42px 9px 14px;
  border: 1px solid rgba(24, 32, 28, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.scroll-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.7;
}

.scroll-select.is-open .scroll-select-trigger {
  border-color: rgba(var(--brand-r), 0.48);
  box-shadow:
    0 0 0 4px rgba(var(--brand-r), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.scroll-select-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 10px;
  border: 1px solid rgba(24, 32, 28, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 232, 0.96)),
    var(--panel);
  box-shadow: 0 20px 48px rgba(24, 32, 28, 0.18);
}

.scroll-select-search-wrap {
  margin-bottom: 8px;
}

.scroll-select-search {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(24, 32, 28, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--ink);
}

.scroll-select-options {
  display: grid;
  gap: 4px;
  max-height: min(40vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.scroll-select-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scroll-select-option:hover,
.scroll-select-option.is-selected {
  background: rgba(var(--brand-r), 0.1);
}

.field input[type="file"] {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 6px 8px 6px 4px;
  line-height: normal;
}

.field input[type="file"]::file-selector-button,
.field input[type="file"]::-webkit-file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-right: 10px;
  padding: 0 14px;
  border: 1px solid rgba(24, 32, 28, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.field input[type="file"]::file-selector-button:hover,
.field input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(255, 255, 255, 1);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-input:focus {
  outline: none;
  border-color: rgba(var(--brand-r), 0.48);
  box-shadow:
    0 0 0 4px rgba(var(--brand-r), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #fff8ef !important;
  background: linear-gradient(135deg, var(--brand-deep), var(--accent) 64%, var(--brand-soft));
  box-shadow: 0 18px 30px rgba(var(--accent-r), 0.24);
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.secondary-button {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(235, 217, 187, 0.62)),
    var(--panel-strong);
  border: 1px solid rgba(var(--brand-r), 0.28);
  box-shadow: var(--shadow-soft);
}

.secondary-button:link,
.secondary-button:visited,
.secondary-button:hover,
.secondary-button:active {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-logout {
  color: #f8f1e4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.sidebar-logout:hover {
  box-shadow: 0 18px 30px rgba(31, 23, 16, 0.14);
}

.auth-panel .primary-button {
  width: 100%;
}

.flash {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.flash-notice {
  background: rgba(67, 84, 66, 0.92);
  color: #f2f7f2;
}

.flash-alert {
  background: rgba(var(--brand-deep-r), 0.92);
  color: #fff5f2;
}

.uk-notification {
  width: min(360px, calc(100vw - 24px));
}

.uk-notification-message {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(233, 209, 165, 0.22)),
    var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.5;
}

.uk-notification-message-primary,
.uk-notification-message-success {
  border-color: rgba(67, 84, 66, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(var(--brand-gold-r), 0.16)),
    var(--panel-strong);
  color: var(--ink);
}

.uk-notification-message-danger {
  border-color: rgba(var(--brand-deep-r), 0.2);
  background:
    linear-gradient(135deg, rgba(255, 247, 244, 0.96), rgba(var(--brand-deep-r), 0.12)),
    #fff8f5;
  color: var(--brand-deep);
}

.uk-notification-message .uk-close {
  color: rgba(29, 35, 31, 0.42);
}

.uk-notification-message .uk-close:hover {
  color: var(--ink);
}

.shell-layout {
  display: grid;
  grid-template-columns: 292px 1fr;
  height: 100vh;
  overflow: hidden;
  align-items: start;
  background: linear-gradient(to right, #171e1b 292px, transparent 292px);
}

.mobile-topbar,
.sidebar-backdrop,
.sidebar-mobile-close {
  display: none;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding:
    calc(14px + env(safe-area-inset-top, 0px))
    calc(16px + env(safe-area-inset-right, 0px))
    14px
    calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(24, 32, 28, 0.08);
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-topbar-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mobile-topbar-brand span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-topbar-brand strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
}

.mobile-topbar-toggle,
.sidebar-mobile-close {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(24, 32, 28, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
}

.mobile-topbar-toggle span,
.sidebar-mobile-close span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-topbar-toggle span:nth-child(1) { top: 15px; }
.mobile-topbar-toggle span:nth-child(2) { top: 22px; }
.mobile-topbar-toggle span:nth-child(3) { top: 29px; }

.sidebar-mobile-close span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.sidebar-mobile-close span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  border: 0;
  padding: 0;
  background: rgba(11, 16, 14, 0.48);
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(18, 25, 22, 0.99), rgba(27, 36, 31, 0.97)),
    var(--sidebar);
  color: #f5ecde;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 18px 0 42px rgba(18, 15, 11, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sidebar-brand {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sidebar-brand h1 {
  font-size: 2.2rem;
  line-height: 0.92;
  margin: 0;
  color: #fff6e8;
}

.sidebar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(255, 247, 236, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold), rgba(var(--brand-gold-r), 0.2));
}

.sidebar-brand p {
  margin: 0;
  max-width: 14ch;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sidebar-top {
  display: grid;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-top-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-profile-row {
  position: relative;
  display: block;
}

.sidebar-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: rgba(245, 236, 222, 0.86);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-notification-bell:link,
.sidebar-notification-bell:visited,
.sidebar-notification-bell:hover,
.sidebar-notification-bell:active {
  color: rgba(245, 236, 222, 0.86);
  text-decoration: none;
}

.sidebar-notification-bell:hover,
.sidebar-notification-bell.has-unseen {
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--brand-r), 0.18);
}

.sidebar-notification-bell.has-unseen {
  box-shadow: 0 0 0 3px rgba(var(--brand-r), 0.12);
}

.sidebar-notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(23, 30, 27, 0.95);
}

.sidebar-brand p,
.sidebar-profile span,
.sidebar-user span {
  color: rgba(245, 236, 222, 0.74);
}

.sidebar-profile {
  display: grid;
  gap: 6px;
  padding: 16px 64px 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-profile-link-mobile {
  display: none;
  color: inherit;
  text-decoration: none;
}

.sidebar-profile-link-mobile:visited,
.sidebar-profile-link-mobile:hover,
.sidebar-profile-link-mobile:active {
  color: inherit;
  text-decoration: none;
}

.sidebar-profile-menu {
  display: grid;
  gap: 12px;
  position: relative;
}

.sidebar-profile-menu[open] {
  z-index: 3;
}

.sidebar-profile-menu:not([open]) .sidebar-profile-popover {
  display: none;
}

.sidebar-profile-trigger {
  display: block;
  list-style: none;
  cursor: pointer;
}

.sidebar-profile-trigger::-webkit-details-marker {
  display: none;
}

.sidebar-profile-trigger .sidebar-profile {
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-profile-trigger .sidebar-profile::after {
  content: "";
  position: absolute;
  right: 18px;
  top: calc(50% + 10px);
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(245, 236, 222, 0.55);
  border-bottom: 2px solid rgba(245, 236, 222, 0.55);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-profile-trigger:hover .sidebar-profile,
.sidebar-profile-menu[open] .sidebar-profile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(var(--brand-r), 0.18);
  transform: translateY(-1px);
}

.sidebar-profile-menu[open] .sidebar-profile::after {
  transform: translateY(-35%) rotate(-135deg);
  border-color: rgba(255, 248, 239, 0.84);
}

.sidebar-profile strong,
.sidebar-user strong {
  display: block;
  margin-bottom: 0;
  max-width: 18ch;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #fff7ec;
}

.sidebar-profile span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.sidebar-profile span:last-child {
  color: rgba(255, 247, 236, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-profile-bell {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  margin-top: 0;
  border-radius: 12px;
  z-index: 2;
}

.sidebar-profile-bell:hover {
  transform: none;
}

.sidebar-profile-popover {
  position: static;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-top: 2px;
  border-radius: 22px;
  border: 1px solid rgba(var(--brand-r), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 227, 0.96)),
    var(--panel-strong);
  box-shadow: 0 18px 34px rgba(10, 13, 12, 0.14);
}

@media (min-width: 1025px) {
  .sidebar-profile-menu[open] {
    z-index: 36;
  }

  .sidebar-profile-popover {
    position: fixed;
    top: 40px;
    left: 306px;
    width: 372px;
    max-width: min(372px, calc(100vw - 330px));
    max-height: min(72vh, 640px);
    padding: 16px;
    margin-top: 0;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(10, 13, 12, 0.18);
    scrollbar-gutter: stable;
    z-index: 60;
  }
}

.sidebar-profile-popover-head {
  display: grid;
  gap: 8px;
}

.profile-overview-stack {
  display: grid;
  gap: 18px;
}

.profile-heading-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-heading-copy {
  display: grid;
  gap: 6px;
}

.profile-heading-avatar,
.sidebar-profile-avatar {
  overflow: hidden;
}

.profile-heading-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-gold), var(--accent));
  color: #fff8ef;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(var(--accent-r), 0.18);
}

.profile-heading-avatar img,
.sidebar-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-account-panel,
.profile-sections-panel {
  display: grid;
  gap: 18px;
}

.profile-sections-intro {
  margin: -4px 0 0;
  max-width: 56ch;
  color: var(--muted-strong);
}

.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-section-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 238, 225, 0.9)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(var(--brand-r), 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 16px 32px rgba(var(--accent-r), 0.08);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.profile-section-card-button {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.profile-section-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -40% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--brand-gold-r), 0.18), transparent 72%);
  pointer-events: none;
}

.profile-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-r), 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 20px 36px rgba(var(--accent-r), 0.12);
}

.profile-section-card:visited,
.profile-section-card:hover,
.profile-section-card:active {
  color: inherit;
  text-decoration: none;
}

.profile-section-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  padding-block: 0.08em;
  text-transform: uppercase;
}

.profile-section-eyebrow-long {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: normal;
  text-wrap: balance;
}

.profile-section-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--brand-r), 0.88), rgba(var(--brand-r), 0.18));
}

.profile-section-card strong,
.profile-section-metric,
.profile-section-card p {
  position: relative;
  z-index: 1;
}

.profile-section-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.15;
}

.profile-section-metric {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.82rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(var(--brand-r), 0.12);
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  text-wrap: balance;
}

.profile-section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sidebar-profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-profile-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-gold), var(--accent));
  color: #fff8ef;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(var(--accent-r), 0.18);
}

.sidebar-profile-identity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sidebar-profile-identity-copy strong,
.sidebar-profile-popover-head strong {
  color: var(--ink);
}

.sidebar-profile-identity-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-profile-role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(70, 120, 224, 0.1);
  color: #3664b5;
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-profile-loyalty-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-r), 0.12);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.nordcoin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--brand-soft-r), 0.95), rgba(var(--brand-r), 0.95));
  color: #fff7eb;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sidebar-profile-scale-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 32, 28, 0.04);
}

.sidebar-profile-scale-panel span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-profile-scale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-button-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.sidebar-profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-profile-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-profile-mentor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(24, 32, 28, 0.04);
  border: 1px solid var(--border);
}

.sidebar-profile-mentor-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-profile-mentor-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.sidebar-profile-mentor-position {
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar-profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-quick-tile {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 235, 0.92)),
    var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.sidebar-quick-tile:link,
.sidebar-quick-tile:visited,
.sidebar-quick-tile:hover,
.sidebar-quick-tile:active {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-quick-tile strong {
  font-size: 0.92rem;
}

.sidebar-quick-tile span {
  color: var(--muted);
  font-size: 0.79rem;
}

.sidebar-quick-tile:hover,
.sidebar-quick-tile.active {
  border-color: rgba(var(--brand-r), 0.2);
  transform: translateY(-1px);
}

.sidebar-profile-popover-section {
  display: grid;
  gap: 8px;
  padding: 2px 0;
}

.sidebar-profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-profile-summary-card {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  background: rgba(65, 82, 70, 0.04);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar-profile-summary-card:link,
.sidebar-profile-summary-card:visited,
.sidebar-profile-summary-card:hover,
.sidebar-profile-summary-card:active {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-profile-summary-card:hover {
  border-color: rgba(var(--brand-r), 0.18);
  transform: translateY(-1px);
}

.sidebar-profile-summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sidebar-profile-summary-card strong {
  font-size: 1.1rem;
  color: var(--brand-deep);
}

.sidebar-profile-summary-card-attention {
  background:
    linear-gradient(120deg, rgba(var(--brand-r), 0.12), rgba(var(--brand-r), 0.04)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(var(--accent-r), 0.18);
}

.sidebar-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-profile-section-head strong {
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.sidebar-mentor-progress-list {
  display: grid;
  gap: 8px;
}

.sidebar-mentor-progress-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.sidebar-mentor-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-mentor-progress-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.sidebar-mentor-progress-card p,
.sidebar-mentor-progress-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.sidebar-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(65, 82, 70, 0.04);
  border: 1px solid rgba(24, 32, 28, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-profile-link:link,
.sidebar-profile-link:visited,
.sidebar-profile-link:hover,
.sidebar-profile-link:active {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-profile-link:hover,
.sidebar-profile-link.active {
  background:
    linear-gradient(120deg, rgba(var(--brand-r), 0.16), rgba(var(--brand-r), 0.04)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(var(--brand-r), 0.14);
}

.sidebar-profile-link-attention {
  border-color: rgba(var(--accent-r), 0.18);
  background:
    linear-gradient(120deg, rgba(var(--accent-r), 0.12), rgba(var(--accent-r), 0.04)),
    rgba(255, 255, 255, 0.7);
}

.sidebar-profile-popover-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(24, 32, 28, 0.08);
}

.sidebar-popover-logout {
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  color: #fff8ef;
  background: linear-gradient(135deg, var(--brand-deep), var(--accent) 64%, var(--brand-soft));
  box-shadow: 0 16px 28px rgba(var(--accent-r), 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-popover-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(31, 23, 16, 0.14);
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.sidebar-section {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.sidebar-section-collapsible {
  gap: 0;
  padding-top: 4px;
}

.sidebar-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 6px;
  cursor: pointer;
  list-style: none;
}

.sidebar-section-summary::-webkit-details-marker {
  display: none;
}

.sidebar-section-summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(245, 236, 222, 0.55);
  border-bottom: 2px solid rgba(245, 236, 222, 0.55);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-section-collapsible[open] .sidebar-section-summary::after {
  transform: translateY(2px) rotate(-135deg);
  border-color: rgba(255, 248, 239, 0.84);
}

.sidebar-section-body {
  display: grid;
  gap: 8px;
}

.sidebar-section:last-child {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.sidebar-section:last-child .sidebar-section-body {
  padding-bottom: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 44px;
  padding: 10px 14px 10px 16px;
  border-radius: 14px;
  color: rgba(245, 236, 222, 0.92);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-link-nested {
  padding-left: 28px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.sidebar-link:link,
.sidebar-link:visited,
.sidebar-link:hover,
.sidebar-link:active {
  color: rgba(245, 236, 222, 0.92);
  text-decoration: none;
}

.sidebar-link:focus-visible {
  outline: none;
  color: #fff8ef;
  text-decoration: none;
  border-color: rgba(var(--accent-r), 0.28);
  box-shadow:
    0 0 0 4px rgba(var(--accent-r), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.sidebar-link.active {
  background:
    linear-gradient(120deg, rgba(var(--accent-r), 0.24), rgba(var(--accent-r), 0.08)),
    rgba(255, 255, 255, 0.05);
  color: #fff8ef;
  border-color: rgba(var(--accent-r), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-link.active:link,
.sidebar-link.active:visited,
.sidebar-link.active:hover,
.sidebar-link.active:active,
.sidebar-link.active:focus-visible {
  color: #fff8ef;
  text-decoration: none;
}

.sidebar-link.active::before {
  background: linear-gradient(180deg, #d5a054, #b6782d);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-user {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-badge {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(var(--accent-r), 0.24);
  color: #fff8ef;
  text-align: center;
}

.shell-main {
  position: relative;
  min-width: 0;
  width: 100%;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    calc(clamp(18px, 2vw, 28px) + env(safe-area-inset-right, 0px))
    calc(34px + env(safe-area-inset-bottom, 0px))
    calc(clamp(18px, 2vw, 28px) + env(safe-area-inset-left, 0px));
  display: grid;
  gap: var(--page-section-gap);
  align-content: start;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shell-main > * {
  min-width: 0;
}

.shell-content-frame {
  display: grid;
  gap: var(--page-section-gap);
  align-content: start;
  min-width: 0;
  width: min(100%, var(--page-max-width));
  justify-self: center;
}

.shell-content-frame > * {
  min-width: 0;
}

.hero-card {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.74), rgba(244, 235, 220, 0.9) 58%, rgba(231, 200, 149, 0.3)),
    var(--panel-strong);
  overflow: hidden;
}

.hero-card p,
.page-heading p {
  max-width: 62ch;
  font-size: 0.96rem;
}

.hero-card::before,
.page-heading::before {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--accent-r), 0.18), transparent 70%);
  pointer-events: none;
}

.hero-card::after,
.page-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-grid-wide {
  grid-template-columns: 1.2fr 0.8fr;
}

.news-card h2 {
  margin-top: 14px;
  margin-bottom: 10px;
  max-width: 12ch;
}

.news-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 245, 237, 0.88)),
    var(--panel-strong);
}

.news-card .panel-tag {
  color: var(--muted-strong);
}

.news-card p {
  max-width: 34ch;
}

.mentor-progress-panel {
  display: grid;
  gap: 18px;
}
