.portal-shell-page {
  min-height: 100vh;
  color: rgb(15 23 42);
  background-color: #dfe9f4;
  background-image:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%),
    linear-gradient(180deg, #e6eef7 0%, #dbe7f2 42%, #d3e0ed 100%);
  background-repeat: no-repeat;
}

html.dark .portal-shell-page {
  color: rgb(241 245 249);
  background-color: rgb(2 6 23);
  background-image:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0f172a 56%, #111827 100%);
}

.portal-shell-header {
  position: relative;
  z-index: 2000;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  isolation: isolate;
}

html.dark .portal-shell-header {
  border-bottom-color: rgba(51, 65, 85, 0.9);
  background: rgba(2, 6, 23, 0.82);
  box-shadow: none;
}

.portal-shell-header__brand {
  color: rgb(15 23 42);
}

html.dark .portal-shell-header__brand {
  color: rgb(241 245 249);
}

.portal-shell-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.portal-shell-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.portal-shell-header__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.portal-shell-header__navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(51 65 85);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-shell-header__navlink:hover {
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(240, 249, 255, 0.98);
  color: rgb(15 23 42);
}

.portal-shell-header__navlink.is-active {
  border-color: rgb(3 105 161);
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(3, 105, 161, 0.2);
}

html.dark .portal-shell-header__navlink {
  border-color: transparent;
  background: transparent;
  color: rgb(203 213 225);
  box-shadow: none;
}

html.dark .portal-shell-header__navlink:hover {
  background: rgba(30, 41, 59, 0.88);
  color: rgb(241 245 249);
}

html.dark .portal-shell-header__navlink.is-active {
  border-color: rgb(14 165 233);
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.portal-shell-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(71 85 105);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-shell-header__icon-button:hover {
  border-color: rgb(15 23 42);
  color: rgb(15 23 42);
}

.portal-shell-header__icon-button--theme {
  border-color: rgba(20, 184, 166, 0.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.65), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(6, 182, 212, 0.24));
  color: rgb(15 118 110);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.18);
}

.portal-shell-header__icon-button--theme:hover {
  border-color: rgba(13, 148, 136, 0.68);
  background:
    radial-gradient(circle at 30% 30%, rgba(153, 246, 228, 0.72), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(8, 145, 178, 0.28));
  color: rgb(17 94 89);
}

.portal-shell-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(51 65 85);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-shell-header__action:hover {
  border-color: rgb(15 23 42);
  color: rgb(15 23 42);
}

.portal-shell-header__action--signout {
  border-color: rgba(251, 113, 133, 0.34);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
  color: rgb(190 24 93);
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.14);
}

.portal-shell-header__action--signout:hover {
  border-color: rgba(225, 29, 72, 0.5);
  background: linear-gradient(180deg, rgba(255, 228, 230, 1), rgba(254, 205, 211, 0.94));
  color: rgb(159 18 57);
}

.portal-shell-header__action--login {
  border-color: rgba(14, 165, 233, 0.34);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(224, 242, 254, 0.92));
  color: rgb(3 105 161);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.14);
}

.portal-shell-header__action--login:hover {
  border-color: rgba(2, 132, 199, 0.5);
  background: linear-gradient(180deg, rgba(224, 242, 254, 1), rgba(186, 230, 253, 0.94));
  color: rgb(12 74 110);
}

.portal-shell-header__account {
  position: relative;
  z-index: 2;
}

.portal-shell-header__account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.9rem;
  max-width: 18rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(15 23 42);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-shell-header__account-toggle:hover,
.portal-shell-header__account-toggle[aria-expanded='true'] {
  border-color: rgba(2, 132, 199, 0.5);
  background: rgba(240, 249, 255, 0.98);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.16);
}

.portal-error-page {
  position: relative;
  min-height: calc(100vh - 15rem);
  display: flex;
  align-items: center;
}

.portal-error-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 5px solid #0ea5e9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html.dark .portal-error-panel {
  border-left-color: #38bdf8;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.portal-error-panel__media {
  display: grid;
  gap: 1.8rem;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.portal-error-panel__media img {
  width: min(100%, 15rem);
  height: auto;
}

.portal-error-panel__media span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4.2rem, 12vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  color: rgba(2, 132, 199, 0.16);
}

html.dark .portal-error-panel__media span {
  color: rgba(56, 189, 248, 0.2);
}

.portal-error-panel__copy {
  min-width: 0;
}

.portal-error-panel__copy h1 {
  margin: 0;
  max-width: 48rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 700;
  color: rgb(15 23 42);
}

html.dark .portal-error-panel__copy h1 {
  color: rgb(248 250 252);
}

.portal-error-panel__copy > p:not(.portal-shell-eyebrow) {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: rgb(71 85 105);
  font-size: 1.06rem;
  line-height: 1.75;
}

html.dark .portal-error-panel__copy > p:not(.portal-shell-eyebrow) {
  color: rgb(203 213 225);
}

.portal-error-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.portal-shell-header__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-shell-header__account-avatar--large {
  width: 2.55rem;
  height: 2.55rem;
}

.portal-shell-header__account-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.portal-shell-header__account-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgb(3 105 161);
}

.portal-shell-header__account-email,
.portal-shell-header__account-menu-email {
  overflow: hidden;
  color: rgb(51 65 85);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-shell-header__account-chevron {
  color: rgb(71 85 105);
  font-size: 1.25rem;
}

.portal-shell-header__account-toggle[aria-expanded='true'] .portal-shell-header__account-chevron {
  transform: rotate(180deg);
}

.portal-shell-header__account-menu {
  position: absolute;
  z-index: 2001;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.portal-shell-header__account-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.9);
}

.portal-shell-header__account-name {
  margin: 0 0 0.15rem;
  color: rgb(15 23 42);
  font-size: 0.95rem;
  font-weight: 800;
}

.portal-shell-header__account-menu-email {
  display: block;
  max-width: 14rem;
  margin: 0;
  color: rgb(100 116 139);
}

.portal-shell-header__account-links {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0;
}

.portal-shell-header__account-links a,
.portal-shell-header__account-signout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: rgb(51 65 85);
  font-size: 0.92rem;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.portal-shell-header__account-links a:hover,
.portal-shell-header__account-links a.is-active {
  background: rgba(224, 242, 254, 0.9);
  color: rgb(3 105 161);
}

.portal-shell-header__account-links .material-icons,
.portal-shell-header__account-signout .material-icons {
  font-size: 1.15rem;
}

.portal-shell-header__account-signout {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  color: rgb(190 24 93);
}

.portal-shell-header__account-signout:hover {
  background: rgba(255, 228, 230, 0.8);
  color: rgb(159 18 57);
}

.portal-shell-header__mobile-account {
  display: grid;
  gap: 0.75rem;
}

.portal-shell-header__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: rgb(15 23 42);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.portal-shell-header__menu-button:hover {
  border-color: rgba(14, 165, 233, 0.75);
  background: rgba(240, 249, 255, 0.98);
  color: rgb(3 105 161);
}

.portal-shell-header__mobile-panel {
  display: none;
  position: relative;
  z-index: 2001;
}

.portal-shell-header__mobile-nav {
  display: grid;
  gap: 0.75rem;
}

.portal-shell-header__mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.94);
  color: rgb(30 41 59);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.12);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.portal-shell-header__mobile-link:hover {
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(240, 249, 255, 0.98);
  color: rgb(15 23 42);
}

.portal-shell-header__mobile-link.is-active {
  border-color: rgb(3 105 161);
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.portal-shell-header__mobile-actions {
  display: grid;
  margin-top: 1rem;
}

.portal-shell-header__mobile-account-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

html.dark .portal-shell-header__icon-button,
html.dark .portal-shell-header__action {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.88);
  color: rgb(226 232 240);
  box-shadow: none;
}

html.dark .portal-shell-header__icon-button:hover,
html.dark .portal-shell-header__action:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: rgb(241 245 249);
}

html.dark .portal-shell-header__icon-button--theme {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.26), rgba(6, 95, 70, 0.38));
  color: rgb(153 246 228);
}

html.dark .portal-shell-header__icon-button--theme:hover {
  border-color: rgba(94, 234, 212, 0.52);
  color: rgb(204 251 241);
}

html.dark .portal-shell-header__action--signout {
  border-color: rgba(244, 114, 182, 0.34);
  background: linear-gradient(180deg, rgba(76, 5, 25, 0.88), rgba(63, 10, 18, 0.92));
  color: rgb(253 164 175);
}

html.dark .portal-shell-header__action--signout:hover {
  border-color: rgba(251, 113, 133, 0.48);
  color: rgb(255 228 230);
}

html.dark .portal-shell-header__action--login {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: rgb(125 211 252);
}

html.dark .portal-shell-header__action--login:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.18);
  color: rgb(186 230 253);
}

html.dark .portal-shell-header__account-toggle {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.9);
  color: rgb(241 245 249);
  box-shadow: none;
}

html.dark .portal-shell-header__account-toggle:hover,
html.dark .portal-shell-header__account-toggle[aria-expanded='true'] {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.98);
}

html.dark .portal-shell-header__account-label {
  color: rgb(125 211 252);
}

html.dark .portal-shell-header__account-email,
html.dark .portal-shell-header__account-menu-email,
html.dark .portal-shell-header__account-chevron {
  color: rgb(203 213 225);
}

html.dark .portal-shell-header__account-menu {
  border-color: rgba(56, 189, 248, 0.12);
  background: rgba(8, 15, 30, 0.98);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.5);
}

html.dark .portal-shell-header__account-card {
  border-color: rgba(56, 189, 248, 0.1);
  background: rgba(15, 23, 42, 0.9);
}

html.dark .portal-shell-header__account-name {
  color: rgb(241 245 249);
}

html.dark .portal-shell-header__account-links a,
html.dark .portal-shell-header__account-signout {
  color: rgb(203 213 225);
}

html.dark .portal-shell-header__account-links a:hover,
html.dark .portal-shell-header__account-links a.is-active {
  background: rgba(14, 165, 233, 0.12);
  color: rgb(125 211 252);
}

html.dark .portal-shell-header__account-signout {
  border-top-color: rgba(56, 189, 248, 0.1);
  color: rgb(253 164 175);
}

html.dark .portal-shell-header__account-signout:hover {
  background: rgba(244, 63, 94, 0.12);
  color: rgb(255 228 230);
}

html.dark .portal-shell-header__menu-button {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.88);
  color: rgb(226 232 240);
  box-shadow: none;
}

html.dark .portal-shell-header__menu-button:hover {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(15, 23, 42, 0.96);
  color: rgb(241 245 249);
}

html.dark .portal-shell-header__mobile-link {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(15, 23, 42, 0.9);
  color: rgb(226 232 240);
  box-shadow: none;
}

html.dark .portal-shell-header__mobile-link:hover {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(30, 41, 59, 0.92);
  color: rgb(241 245 249);
}

html.dark .portal-shell-header__mobile-link.is-active {
  border-color: rgb(14 165 233);
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.portal-shell-footer {
  position: relative;
  isolation: isolate;
  margin-top: 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(236, 245, 251, 0.74));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.portal-shell-footer::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 8%;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
  pointer-events: none;
}

.portal-shell-footer__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.portal-shell-footer__particle {
  position: absolute;
  left: -8%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(191, 219, 254, 0.8) 34%, rgba(34, 211, 238, 0.16) 100%);
  box-shadow: 0 0 0.8rem rgba(56, 189, 248, 0.28), 0 0 1.6rem rgba(45, 212, 191, 0.18);
  opacity: 0.7;
  will-change: transform, opacity;
}

.portal-shell-footer__particle::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 45%;
  width: 4.5rem;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(186, 230, 253, 0), rgba(186, 230, 253, 0.44));
  opacity: 0.7;
}

.portal-shell-footer__particle:nth-child(1) {
  top: 22%;
  animation: portal-footer-particle-drift-a 18s linear infinite;
}

.portal-shell-footer__particle:nth-child(2) {
  top: 36%;
  width: 0.42rem;
  height: 0.42rem;
  opacity: 0.52;
  animation: portal-footer-particle-drift-b 24s linear infinite;
  animation-delay: -7s;
}

.portal-shell-footer__particle:nth-child(3) {
  top: 68%;
  width: 0.68rem;
  height: 0.68rem;
  animation: portal-footer-particle-drift-c 21s linear infinite;
  animation-delay: -4s;
}

.portal-shell-footer__particle:nth-child(4) {
  top: 54%;
  width: 0.35rem;
  height: 0.35rem;
  opacity: 0.44;
  animation: portal-footer-particle-drift-d 27s linear infinite;
  animation-delay: -11s;
}

.portal-shell-footer__particle:nth-child(5) {
  top: 14%;
  width: 0.5rem;
  height: 0.5rem;
  animation: portal-footer-particle-drift-e 23s linear infinite;
  animation-delay: -15s;
}

.portal-shell-footer__particle:nth-child(6) {
  top: 80%;
  width: 0.3rem;
  height: 0.3rem;
  opacity: 0.38;
  animation: portal-footer-particle-drift-f 29s linear infinite;
  animation-delay: -6s;
}

@keyframes portal-footer-particle-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    transform: translate3d(56vw, -0.55rem, 0) scale(1.08);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(112vw, 0.45rem, 0) scale(0.94);
    opacity: 0;
  }
}

@keyframes portal-footer-particle-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0;
  }
  12% {
    opacity: 0.52;
  }
  48% {
    transform: translate3d(52vw, 0.65rem, 0) scale(1.02);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(110vw, -0.9rem, 0) scale(0.9);
    opacity: 0;
  }
}

@keyframes portal-footer-particle-drift-c {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 0.76;
  }
  45% {
    transform: translate3d(54vw, -0.85rem, 0) scale(1.1);
    opacity: 0.86;
  }
  100% {
    transform: translate3d(111vw, 0.75rem, 0) scale(0.92);
    opacity: 0;
  }
}

@keyframes portal-footer-particle-drift-d {
  0% {
    transform: translate3d(0, 0, 0) scale(0.88);
    opacity: 0;
  }
  14% {
    opacity: 0.44;
  }
  52% {
    transform: translate3d(60vw, 0.9rem, 0) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(114vw, -0.7rem, 0) scale(0.86);
    opacity: 0;
  }
}

@keyframes portal-footer-particle-drift-e {
  0% {
    transform: translate3d(0, 0, 0) scale(0.94);
    opacity: 0;
  }
  11% {
    opacity: 0.66;
  }
  47% {
    transform: translate3d(58vw, 0.5rem, 0) scale(1.05);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(113vw, -0.65rem, 0) scale(0.9);
    opacity: 0;
  }
}

@keyframes portal-footer-particle-drift-f {
  0% {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: 0;
  }
  13% {
    opacity: 0.38;
  }
  50% {
    transform: translate3d(57vw, -0.45rem, 0) scale(0.94);
    opacity: 0.46;
  }
  100% {
    transform: translate3d(110vw, 0.55rem, 0) scale(0.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-shell-footer__particle {
    animation: none;
    opacity: 0.22;
  }

  .portal-shell-footer__particle::after {
    opacity: 0;
  }
}

.portal-shell-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.portal-shell-footer__brand-block {
  display: grid;
  gap: 0.35rem;
}

.portal-shell-footer__brand {
  color: rgb(15 23 42);
}

.portal-shell-footer__meta,
.portal-shell-footer__tagline {
  margin: 0;
  color: rgb(71 85 105);
  font-size: 0.95rem;
  line-height: 1.65;
}

.portal-shell-footer__tagline {
  max-width: 28rem;
  text-wrap: balance;
}

body.portal-mobile-menu-open {
  overflow: hidden;
}

html.dark .portal-shell-footer {
  border-top-color: rgba(51, 65, 85, 0.7);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.9));
}

html.dark .portal-shell-footer__particle {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(125, 211, 252, 0.78) 34%, rgba(14, 165, 233, 0.18) 100%);
  box-shadow: 0 0 0.95rem rgba(14, 165, 233, 0.28), 0 0 1.9rem rgba(45, 212, 191, 0.16);
}

html.dark .portal-shell-footer__particle::after {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.34));
}

html.dark .portal-shell-footer__brand {
  color: rgb(241 245 249);
}

html.dark .portal-shell-footer__meta,
html.dark .portal-shell-footer__tagline {
  color: rgb(148 163 184);
}

.portal-shell-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.56));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  padding: 1.75rem;
}

html.dark .portal-shell-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

.portal-shell-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  align-items: end;
}

.portal-shell-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.portal-shell-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.portal-shell-copy {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(51 65 85);
}

html.dark .portal-shell-copy,
html.dark .portal-shell-muted,
html.dark .portal-shell-stat__note,
html.dark .portal-exam-card__reason,
html.dark .portal-journal-result__meta,
html.dark .portal-runner__copy,
html.dark .portal-runner__meta,
html.dark .portal-runner__helper {
  color: rgb(148 163 184);
}

.portal-shell-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.portal-shell-tag {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  background: rgba(224, 242, 254, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(3 105 161);
}

html.dark .portal-shell-tag {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: var(--portal-primary);
}

.portal-shell-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.portal-shell-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.portal-shell-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.portal-shell-section-head > * {
  min-width: 0;
}

.portal-shell-section-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-shell-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.portal-shell-search {
  position: relative;
  flex: 1 1 18rem;
}

.portal-shell-search span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(100 116 139);
}

.portal-shell-search input,
.portal-shell-form input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.portal-shell-search input {
  padding: 0.95rem 1rem 0.95rem 3rem;
}

.portal-shell-form {
  display: grid;
  gap: 1rem;
}

.portal-shell-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgb(51 65 85);
}

html.dark .portal-shell-form label {
  color: rgb(226 232 240);
}

.portal-shell-form input {
  padding: 0.9rem 1rem;
}

.portal-shell-form textarea,
.portal-shell-form select {
  padding: 0.9rem 1rem;
}

html.dark .portal-shell-search input,
html.dark .portal-shell-form input,
html.dark .portal-shell-form textarea,
html.dark .portal-shell-form select {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.76);
}

.portal-shell-search input:focus,
.portal-shell-form input:focus,
.portal-shell-form textarea:focus,
.portal-shell-form select:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.portal-shell-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: rgb(15 23 42);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.portal-shell-button:hover {
  transform: translateY(-1px);
}

.portal-shell-button--primary {
  background: var(--portal-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 18px 38px rgba(0, 120, 212, 0.2);
}

.portal-shell-button--secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: inherit;
  box-shadow: none;
}

.portal-shell-button--danger {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(248, 113, 113, 0.28);
  color: rgb(185 28 28);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.portal-shell-button--small {
  min-height: 2.35rem;
  padding: 0 0.95rem;
  font-size: 0.82rem;
}

.portal-shell-button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

html.dark .portal-shell-button {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgb(241 245 249);
  box-shadow: none;
}

html.dark .portal-shell-button--primary {
  background: var(--portal-primary);
  border-color: transparent;
  color: white;
}

html.dark .portal-shell-button--secondary {
  background: transparent;
  color: rgb(226 232 240);
}

html.dark .portal-shell-button--danger {
  background: rgba(127, 29, 29, 0.68);
  border-color: rgba(248, 113, 113, 0.3);
  color: rgb(254 226 226);
}

.portal-shell-muted {
  color: rgb(100 116 139);
}

portal-profile-page,
portal-profile-nav,
portal-profile-training {
  display: block;
}

.portal-profile-stack {
  display: grid;
  gap: 1.25rem;
}

.portal-profile-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
  align-items: start;
}

.profile-stage__content {
  display: grid;
  gap: 1rem;
}

.portal-profile-layout--rows {
  grid-template-columns: 1fr;
  gap: 0;
}

.portal-profile-nav {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-profile-layout--rows .portal-profile-nav {
  position: static;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.portal-profile-layout--rows .portal-profile-nav__intro {
  display: none;
}

.portal-profile-nav__intro {
  display: grid;
  gap: 0.45rem;
  padding: 0.15rem 0.2rem 0.35rem;
}

.portal-profile-nav__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: rgb(15 23 42);
}

.portal-profile-nav__meta,
.portal-profile-nav__active {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.portal-profile-nav__active {
  font-size: 0.83rem;
  font-weight: 700;
  color: rgb(3 105 161);
}

.portal-profile-nav__list {
  display: grid;
  gap: 0.55rem;
}

.portal-profile-layout--rows .portal-profile-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.portal-profile-nav__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.45);
  color: rgb(51 65 85);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portal-profile-layout--rows .portal-profile-nav__button,
.portal-profile-layout--rows .portal-profile-skeleton-nav-item {
  flex: 0 1 auto;
  width: auto;
  min-height: 2.9rem;
  margin: 0 0 -1px;
  border-color: transparent;
  border-bottom-color: rgba(148, 163, 184, 0.24);
  border-radius: 0;
  padding: 0.72rem 1rem;
  background: transparent;
}

.portal-profile-layout--rows .portal-profile-nav__button .material-icons {
  font-size: 1.05rem;
}

.portal-profile-nav__button:hover {
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(240, 249, 255, 0.9);
  color: rgb(15 23 42);
  transform: translateX(2px);
}

.portal-profile-layout--rows .portal-profile-nav__button:hover {
  background: rgba(240, 249, 255, 0.72);
  transform: none;
}

.portal-profile-nav__button.is-active {
  border-color: rgba(2, 132, 199, 0.32);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.96), rgba(240, 249, 255, 0.88));
  color: rgb(3 105 161);
}

.portal-profile-layout--rows .portal-profile-nav__button.is-active {
  border-color: rgba(148, 163, 184, 0.24);
  border-bottom-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.84);
  color: rgb(3 105 161);
}

.portal-profile-panels {
  display: grid;
  gap: 0.85rem;
}

.portal-profile-layout--rows .portal-profile-panels {
  gap: 0;
}

.portal-profile-layout--rows .portal-profile-panels,
.portal-profile-layout--rows .portal-profile-panel {
  min-width: 0;
  width: 100%;
}

.portal-profile-panel {
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.portal-profile-layout--rows .portal-profile-panel {
  border-radius: 0;
}

.portal-profile-panel[hidden] {
  display: none !important;
}

.portal-profile-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), rgba(255, 255, 255, 0.28));
}

.portal-profile-panel__head > div {
  display: grid;
  gap: 0.3rem;
}

.portal-profile-panel__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
}

.portal-profile-panel__copy {
  margin: 0;
  max-width: 44rem;
  color: rgb(100 116 139);
  line-height: 1.6;
}

.portal-profile-panel__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.portal-profile-form {
  display: grid;
  gap: 1.25rem;
}

.portal-profile-form-section {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 0;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.94));
}

.portal-profile-form-section__head {
  display: grid;
  gap: 0.3rem;
}

.portal-profile-form-section__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.portal-profile-form-section__copy {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

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

.portal-profile-field {
  display: grid;
  gap: 0.45rem;
}

.portal-profile-field--full {
  grid-column: 1 / -1;
}

.portal-profile-field label,
.portal-profile-checkbox__copy strong,
.portal-profile-radio__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgb(51 65 85);
}

.portal-profile-input,
.portal-profile-select,
.portal-profile-search {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.portal-profile-input:focus,
.portal-profile-select:focus,
.portal-profile-search:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.portal-profile-input[data-validation-state='invalid'],
.portal-profile-select[data-validation-state='invalid'],
.portal-profile-search[data-validation-state='invalid'] {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.96);
  animation: portal-validation-attention 220ms ease-out;
}

.portal-profile-input.is-validating-success,
.portal-profile-select.is-validating-success,
.portal-profile-search.is-validating-success {
  border-color: rgba(22, 163, 74, 0.78);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  background: rgba(240, 253, 244, 0.98);
  animation: portal-validation-resolve 1.35s ease forwards;
}

.portal-profile-field-feedback {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: transparent;
}

.portal-profile-field-feedback[data-state='error'] {
  color: rgb(185 28 28);
}

.portal-profile-hint {
  margin: 0;
  color: rgb(100 116 139);
  font-size: 0.86rem;
  line-height: 1.55;
}

.portal-profile-inline-card,
.portal-profile-training-card,
.portal-profile-preference-card,
.portal-profile-theme-card {
  border-radius: 0;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
  padding: 1rem 1.1rem;
}

.portal-profile-inline-card__title,
.portal-profile-training-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.portal-profile-inline-card__value,
.portal-profile-training-card__value {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgb(15 23 42);
}

.portal-profile-inline-card__meta {
  margin: 0.35rem 0 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.portal-profile-inline-card--notice {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.portal-profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.portal-profile-preferences-grid {
  display: grid;
  gap: 1rem;
}

.portal-profile-preference-card,
.portal-profile-theme-card {
  display: grid;
  gap: 0.9rem;
}

.portal-profile-preference-card__head {
  display: grid;
  gap: 0.3rem;
}

.portal-profile-preference-card__copy,
.portal-profile-training-card__note {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.portal-profile-feedback {
  min-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(100 116 139);
}

.portal-profile-feedback.is-success {
  color: rgb(21 128 61);
}

.portal-profile-feedback.is-error {
  color: rgb(185 28 28);
}

.portal-profile-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 0;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 250, 252, 0.84);
}

.portal-profile-checkbox input {
  margin-top: 0.2rem;
}

.portal-profile-checkbox__copy p {
  margin: 0.3rem 0 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.portal-profile-radio-group {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-profile-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 250, 252, 0.84);
}

.portal-profile-radio p {
  margin: 0.3rem 0 0;
  color: rgb(100 116 139);
  line-height: 1.5;
}

.portal-profile-search-wrap {
  position: relative;
}

.portal-profile-search-results {
  position: absolute;
  inset: calc(100% + 0.4rem) 0 auto;
  z-index: 30;
  display: grid;
  gap: 0.45rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.7rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.portal-profile-search-results[hidden] {
  display: none !important;
}

.portal-profile-search-result {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.82);
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.portal-profile-search-result:hover {
  border-color: rgba(14, 165, 233, 0.34);
  background: rgba(240, 249, 255, 0.92);
}

.portal-profile-search-result strong {
  font-size: 0.94rem;
  color: rgb(15 23 42);
}

.portal-profile-search-result span {
  color: rgb(100 116 139);
  font-size: 0.86rem;
}

.portal-profile-training {
  display: grid;
  gap: 1rem;
}

.portal-profile-training__summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-profile-training__list {
  display: grid;
  gap: 0.9rem;
}

.portal-profile-training-card--summary {
  position: relative;
  overflow: hidden;
}

.portal-profile-training-card--summary::after {
  content: '';
  position: absolute;
  inset: auto 1.1rem 0;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
}

.portal-profile-training-card--summary.is-success::after {
  background: rgba(34, 197, 94, 0.28);
}

.portal-profile-training-card--summary.is-warning::after {
  background: rgba(245, 158, 11, 0.3);
}

.portal-profile-training-card--module {
  display: grid;
  gap: 0.7rem;
}

.portal-profile-training-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.portal-profile-training-card__status,
.portal-profile-training-card__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-profile-training-card__status {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.88);
  color: rgb(51 65 85);
}

.portal-profile-training-card__status.is-success {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.96);
  color: rgb(21 128 61);
}

.portal-profile-training-card__status.is-warning {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 251, 235, 0.96);
  color: rgb(180 83 9);
}

.portal-profile-training-card__status.is-danger {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.96);
  color: rgb(185 28 28);
}

.portal-profile-training-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.portal-profile-training-card__fact {
  background: rgba(241, 245, 249, 0.92);
  color: rgb(71 85 105);
}

.portal-profile-training-card__meta,
.portal-profile-training-card__reason {
  margin: 0.45rem 0 0;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.portal-profile-training-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.portal-profile-empty {
  border-radius: 0;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 1rem 1.1rem;
  color: rgb(100 116 139);
  background: rgba(248, 250, 252, 0.74);
}

.portal-profile-skeleton-card {
  position: relative;
  overflow: hidden;
}

.portal-profile-skeleton-card--inner {
  box-shadow: none;
}

.portal-profile-skeleton-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.45);
}

.portal-profile-skeleton-line,
.portal-profile-skeleton-pill,
.portal-profile-skeleton-dot {
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(148, 163, 184, 0.18);
}

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

.portal-profile-skeleton-line {
  border-radius: 999px;
  width: 100%;
  height: 0.95rem;
}

.portal-profile-skeleton-line--title {
  max-width: 10rem;
  height: 1.45rem;
}

.portal-profile-skeleton-line--panel-title {
  max-width: 16rem;
  height: 1.4rem;
}

.portal-profile-skeleton-line--eyebrow {
  max-width: 7rem;
  height: 0.78rem;
}

.portal-profile-skeleton-line--copy {
  margin-top: 0.7rem;
  max-width: 24rem;
}

.portal-profile-skeleton-line--copy-short {
  margin-top: 0.7rem;
  max-width: 16rem;
}

.portal-profile-skeleton-line--nav {
  max-width: 8rem;
  margin: 0;
}

.portal-profile-skeleton-line--field {
  margin-top: 0.85rem;
}

.portal-profile-skeleton-line--metric {
  max-width: 4rem;
  height: 2rem;
  margin-top: 1rem;
}

.portal-profile-skeleton-pill {
  border-radius: 999px;
  width: 5.5rem;
  height: 1.7rem;
}

.portal-profile-skeleton-pill--small {
  width: 4.75rem;
  height: 1.35rem;
}

.portal-profile-skeleton-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

@keyframes portal-profile-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

html.dark .portal-profile-nav__meta,
html.dark .portal-profile-nav__active,
html.dark .portal-profile-panel__copy,
html.dark .portal-profile-hint,
html.dark .portal-profile-form-section__copy,
html.dark .portal-profile-inline-card__meta,
html.dark .portal-profile-preference-card__copy,
html.dark .portal-profile-training-card__note,
html.dark .portal-profile-training-card__meta,
html.dark .portal-profile-training-card__reason,
html.dark .portal-profile-empty,
html.dark .portal-profile-checkbox__copy p,
html.dark .portal-profile-radio p,
html.dark .portal-profile-search-result span,
html.dark .portal-profile-feedback {
  color: rgb(148 163 184);
}

html.dark .portal-profile-panel,
html.dark .portal-profile-nav,
html.dark .portal-profile-form-section,
html.dark .portal-profile-inline-card,
html.dark .portal-profile-preference-card,
html.dark .portal-profile-training-card,
html.dark .portal-profile-theme-card,
html.dark .portal-profile-checkbox,
html.dark .portal-profile-radio,
html.dark .portal-profile-search-result,
html.dark .portal-profile-empty {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

html.dark .portal-profile-skeleton-nav-item {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.54);
}

html.dark .portal-profile-skeleton-line,
html.dark .portal-profile-skeleton-pill,
html.dark .portal-profile-skeleton-dot {
  background: rgba(71, 85, 105, 0.42);
}

html.dark .portal-profile-skeleton-line::after,
html.dark .portal-profile-skeleton-pill::after,
html.dark .portal-profile-skeleton-dot::after {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.26), transparent);
}

html.dark .portal-profile-nav__title,
html.dark .portal-profile-panel__title,
html.dark .portal-profile-form-section__title,
html.dark .portal-profile-inline-card__value,
html.dark .portal-profile-training-card__value,
html.dark .portal-profile-search-result strong,
html.dark .portal-profile-field label,
html.dark .portal-profile-checkbox__copy strong,
html.dark .portal-profile-radio__label {
  color: rgb(241 245 249);
}

html.dark .portal-profile-input,
html.dark .portal-profile-select,
html.dark .portal-profile-search,
html.dark .portal-profile-search-results {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.88);

html.dark .portal-profile-input[data-validation-state='invalid'],
html.dark .portal-profile-select[data-validation-state='invalid'],
html.dark .portal-profile-search[data-validation-state='invalid'] {
  background: rgba(69, 10, 10, 0.32);
  border-color: rgba(248, 113, 113, 0.72);
}

html.dark .portal-profile-input.is-validating-success,
html.dark .portal-profile-select.is-validating-success,
html.dark .portal-profile-search.is-validating-success {
  background: rgba(20, 83, 45, 0.32);
  border-color: rgba(74, 222, 128, 0.78);
}

html.dark .portal-profile-field-feedback[data-state='error'] {
  color: rgb(252 165 165);
}
}

html.dark .portal-profile-nav__button {
  color: rgb(203 213 225);
}

html.dark .portal-profile-nav__button:hover {
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.08);
  color: rgb(241 245 249);
}

html.dark .portal-profile-nav__button.is-active {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.1);
  color: rgb(125 211 252);
}

html.dark .portal-profile-training-card__status,
html.dark .portal-profile-training-card__fact {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.64);
  color: rgb(203 213 225);
}

html.dark .portal-profile-training-card__status.is-success {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(20, 83, 45, 0.35);
  color: rgb(134 239 172);
}

html.dark .portal-profile-training-card__status.is-warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(120, 53, 15, 0.38);
  color: rgb(253 224 71);
}

html.dark .portal-profile-training-card__status.is-danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(127, 29, 29, 0.34);
  color: rgb(252 165 165);
}

html.dark .portal-profile-feedback.is-success {
  color: rgb(74 222 128);
}

html.dark .portal-profile-feedback.is-error {
  color: rgb(248 113 113);
}

html.dark .portal-profile-nav {
  border-color: rgba(56, 189, 248, 0.14);
  background: linear-gradient(180deg, rgba(6, 13, 28, 0.94), rgba(12, 23, 42, 0.9));
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.42);
}

html.dark .portal-profile-layout--rows .portal-profile-nav {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.dark .portal-profile-panel {
  border-color: rgba(56, 189, 248, 0.12);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.96), rgba(12, 23, 42, 0.92));
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.4);
}

html.dark .portal-profile-panel__head {
  border-bottom-color: rgba(56, 189, 248, 0.12);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(18, 35, 62, 0.94), rgba(10, 21, 39, 0.9));
}

html.dark .portal-profile-form-section,
html.dark .portal-profile-inline-card,
html.dark .portal-profile-preference-card,
html.dark .portal-profile-training-card,
html.dark .portal-profile-theme-card,
html.dark .portal-profile-checkbox,
html.dark .portal-profile-radio,
html.dark .portal-profile-search-result,
html.dark .portal-profile-empty {
  border-color: rgba(56, 189, 248, 0.1);
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.9), rgba(7, 15, 30, 0.84));
}

html.dark .portal-profile-inline-card--notice {
  border-color: rgba(56, 189, 248, 0.16);
  background: linear-gradient(180deg, rgba(12, 30, 53, 0.94), rgba(8, 21, 40, 0.88));
}

html.dark .portal-profile-input,
html.dark .portal-profile-select,
html.dark .portal-profile-search,
html.dark .portal-profile-search-results {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(2, 8, 22, 0.92);
  color: rgb(226 232 240);
}

html.dark .portal-profile-input:focus,
html.dark .portal-profile-select:focus,
html.dark .portal-profile-search:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

html.dark .portal-profile-nav__button {
  border-color: rgba(56, 189, 248, 0.1);
  background: linear-gradient(180deg, rgba(17, 30, 52, 0.78), rgba(10, 20, 38, 0.84));
  color: rgb(226 232 240);
}

html.dark .portal-profile-nav__button:hover {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(16, 46, 78, 0.74), rgba(11, 31, 56, 0.84));
  color: rgb(240 249 255);
}

html.dark .portal-profile-nav__button.is-active {
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(180deg, rgba(10, 68, 122, 0.5), rgba(8, 40, 74, 0.88));
  color: rgb(125 211 252);
}

html.dark .portal-profile-layout--rows .portal-profile-nav__list {
  border-bottom-color: rgba(56, 189, 248, 0.12);
}

html.dark .portal-profile-layout--rows .portal-profile-nav__button {
  border-color: transparent;
  border-bottom-color: rgba(56, 189, 248, 0.12);
  background: transparent;
}

html.dark .portal-profile-layout--rows .portal-profile-nav__button:hover {
  border-color: transparent;
  border-bottom-color: rgba(56, 189, 248, 0.18);
  background: rgba(14, 165, 233, 0.08);
}

html.dark .portal-profile-layout--rows .portal-profile-nav__button.is-active {
  border-color: rgba(56, 189, 248, 0.12);
  border-bottom-color: rgba(8, 15, 30, 0.96);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.96), rgba(12, 23, 42, 0.92));
}

html.dark .portal-profile-nav__active,
html.dark .portal-profile-form-section__title,
html.dark .portal-profile-inline-card__title,
html.dark .portal-profile-training-card__title {
  color: rgb(125 211 252);
}

html.dark .portal-profile-search-results {
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.52);
}

html.dark .portal-profile-training-card__fact {
  background: rgba(15, 36, 63, 0.82);
  color: rgb(186 230 253);
}

@media (max-width: 1024px) {
  .portal-profile-layout {
    grid-template-columns: 1fr;
  }

  .portal-profile-nav {
    position: static;
  }

  .portal-profile-layout--rows .portal-profile-nav {
    grid-template-columns: 1fr;
  }

  .portal-profile-layout--rows .portal-profile-nav__list {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .portal-profile-grid,
  .portal-profile-training__summary,
  .portal-profile-radio-group {
    grid-template-columns: 1fr;
  }

  .portal-profile-training-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-profile-panel__head,
  .portal-profile-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-profile-panel__head,
  .portal-profile-panel__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-profile-layout--rows .portal-profile-nav__button,
  .portal-profile-layout--rows .portal-profile-skeleton-nav-item {
    flex: 1 1 12rem;
    justify-content: space-between;
  }
}

.portal-exam-card__meta,
.portal-runner__meta,
.portal-journal-result__meta {
  color: rgb(71 85 105);
}

.portal-shell-stat__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.portal-shell-stat__value {
  margin: 0.8rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.portal-shell-stat__note {
  margin: 0.8rem 0 0;
  line-height: 1.6;
  color: rgb(100 116 139);
}

.portal-shell-empty {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  color: rgb(100 116 139);
  background: rgba(255, 255, 255, 0.72);
}

.publication-hub__head {
  align-items: center;
}

.publication-hub__create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.publication-hub__type-select select {
  min-height: 3rem;
  min-width: 16rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.96);
}

.publication-hub__search {
  min-width: min(100%, 36rem);
}

.publication-stage {
  position: relative;
  isolation: isolate;
}

.publication-stage > section {
  position: relative;
  z-index: 1;
}

.publication-stage__ambient {
  position: absolute;
  inset: -3rem -2rem auto;
  height: 32rem;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.publication-stage__orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.72;
  will-change: transform, opacity;
}

.publication-stage__orb--one {
  top: 0;
  left: -4rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, rgba(14, 165, 233, 0.08) 46%, transparent 72%);
}

.publication-stage__orb--two {
  top: 2rem;
  right: 8%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.08) 42%, transparent 72%);
}

.publication-stage__orb--three {
  top: 10rem;
  left: 34%;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(125, 211, 252, 0.06) 45%, transparent 72%);
}

.publication-workspace {
  padding: 1.9rem;
}

.publication-workspace--compact {
  display: grid;
  gap: 1.25rem;
}

.publication-workspace__compose {
  border-color: rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(240, 253, 250, 0.78));
}

.publication-workspace__topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.publication-workspace__heading {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.publication-workspace__action-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.publication-workspace__action-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(241, 245, 249, 0.5));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.publication-workspace__action-card--search {
  align-content: end;
}

.publication-workspace__action-head {
  display: grid;
  gap: 0.2rem;
}

.publication-workspace__action-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.publication-workspace__hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.9fr);
  align-items: start;
}

.publication-workspace__intro,
.publication-workspace__control,
.publication-toolkit,
.publication-toolkit__block {
  display: grid;
  gap: 1rem;
}

.publication-workspace__title {
  max-width: 13ch;
}

.publication-workspace__copy {
  max-width: 52rem;
}

.publication-workspace__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-workspace__stat {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.82));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.08);
}

.publication-workspace__stat-label,
.publication-workspace__kicker,
.publication-hub__card-note {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.publication-workspace__stat-label,
.publication-workspace__kicker {
  color: var(--portal-primary);
}

.publication-workspace__stat-value {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: rgb(15 23 42);
}

.publication-workspace__stat-value--text {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.publication-workspace__stat-note,
.publication-workspace__control-copy,
.publication-workspace__message,
.publication-dashboard__summary {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.6;
}

.publication-workspace__control {
  align-content: start;
  padding: 1.25rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.72), rgba(224, 242, 254, 0.46));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.publication-workspace__control-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.publication-workspace__create {
  display: grid;
  gap: 0.85rem;
}

.publication-workspace__create--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.publication-workspace__type-select select {
  width: 100%;
  min-width: 0;
  border-radius: 1rem;
}

.publication-workspace__guide {
  padding: 1rem 1.05rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.46);
}

.publication-workspace__guide-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(15 23 42);
}

.publication-workspace__guide-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.publication-dashboard {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(21rem, 0.85fr);
  align-items: start;
}

.publication-dashboard--rows {
  grid-template-columns: 1fr;
}

.publication-dashboard__board,
.publication-toolkit {
  min-width: 0;
}

.publication-dashboard--rows .publication-dashboard__board,
.publication-dashboard--rows .publication-dashboard__sidebar {
  grid-column: 1;
}

.publication-dashboard__head {
  align-items: flex-start;
}

.publication-dashboard__summary {
  max-width: 22rem;
  text-align: right;
}

.publication-dashboard__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.publication-dashboard__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.46);
  color: rgb(51 65 85);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.publication-dashboard__filter:hover {
  border-color: rgba(14, 165, 233, 0.26);
  background: rgba(240, 249, 255, 0.72);
  color: rgb(15 23 42);
}

.publication-dashboard__filter.is-active {
  border-color: rgba(2, 132, 199, 0.28);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.92), rgba(240, 249, 255, 0.84));
  color: rgb(3 105 161);
}

.publication-dashboard__results,
.publication-toolkit__results {
  display: grid;
  gap: 1rem;
}

.publication-dashboard__results {
  grid-template-columns: 1fr;
}

.publication-dashboard__sidebar {
  position: sticky;
  top: 1.5rem;
}

.publication-dashboard--rows .publication-dashboard__sidebar {
  position: static;
}

.publication-toolkit {
  padding: 1.55rem;
}

.publication-toolkit__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.32), transparent);
}

.publication-hub__card {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(248, 250, 252, 0.5));
  border-radius: 1.6rem;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 18px 38px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.publication-hub__card:hover,
.publication-hub__card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.26);
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.12);
}

.publication-hub__card--featured {
  grid-column: 1 / -1;
  padding: 1.35rem 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 246, 255, 0.58));
}

.publication-hub__card--row {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.publication-hub__card-head,
.publication-editor__hero,
.publication-editor__section-head,
.publication-editor__lookup-head,
.publication-editor__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.publication-hub__row-main {
  min-width: 0;
}

.publication-hub__row-side {
  display: grid;
  justify-items: end;
  gap: 0.85rem;
  min-width: 11rem;
}

.publication-hub__type {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.publication-hub__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.publication-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  color: rgb(100 116 139);
  font-size: 0.9rem;
}

.publication-hub__copy,
.publication-hub__detail {
  margin: 0.65rem 0 0;
  color: rgb(71 85 105);
  line-height: 1.65;
}

.publication-hub__detail--authors {
  font-size: 0.95rem;
}

.publication-hub__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.publication-hub__card-note {
  color: rgb(100 116 139);
}

.publication-toolkit {
  padding: 1.3rem;
}

.publication-toolkit .portal-shell-section-title {
  font-size: 1.35rem;
}

.publication-editor__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.publication-editor__hero-main,
.publication-editor__hero-aside,
.publication-editor__hero-actions {
  min-width: 0;
}

.publication-editor__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.publication-editor__help-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.publication-editor__help-button .material-icons {
  font-size: 1rem;
}

.publication-editor__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.publication-editor__hero-tag,
.publication-editor__section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.16);
  background: rgba(224, 242, 254, 0.9);
  color: rgb(3 105 161);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-editor__hero-tag {
  padding: 0.55rem 0.85rem;
}

.publication-editor__hero-card {
  padding: 1rem 1.1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.9);
}

.publication-editor__hero-card-title,
.publication-hub__helper-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(15 23 42);
}

.publication-editor__hero-list,
.publication-hub__helper-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.publication-editor__section-kicker {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.75rem;
}

.publication-editor__section-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.publication-editor__section {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  padding: 1.4rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.publication-editor-form {
  gap: 0;
}

.publication-editor__fields {
  display: grid;
  gap: 1rem 1.1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.publication-editor__field {
  min-width: 0;
}

.publication-editor__field--full {
  grid-column: 1 / -1;
}

.publication-editor__field--half {
  grid-column: span 6;
}

.publication-editor__field--compact {
  grid-column: span 4;
}

.publication-editor__section-head h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
}

.publication-editor__section-head p,
.publication-editor__field-help,
.publication-editor__selected-meta,
.publication-editor__lookup-result-meta,
.publication-editor__lookup-empty,
.publication-editor__selected-empty,
#publication-editor-message {
  color: rgb(100 116 139);
}

#publication-editor-meta,
.publication-editor__section-head h2,
.publication-editor__section-head p,
.publication-editor__selected-name,
.publication-editor__lookup-result-name,
.publication-editor__selected-meta,
.publication-editor__lookup-result-meta,
.publication-editor__lookup-empty,
.publication-editor__selected-empty {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.publication-editor__section label,
.publication-editor__lookup-head span {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: rgb(51 65 85);
}

.publication-editor__field-help {
  line-height: 1.45;
}

.publication-editor__field-feedback {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: transparent;
}

.publication-editor__field-feedback[data-state='error'] {
  color: rgb(185 28 28);
}

.publication-editor__section input,
.publication-editor__section textarea,
.publication-editor__section select,
.publication-editor__lookup-search input {
  width: 100%;
  min-height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  padding: 0.95rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.publication-editor__section textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.publication-editor__section input:focus,
.publication-editor__section textarea:focus,
.publication-editor__lookup-search input:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.publication-editor__field input[data-validation-state='invalid'],
.publication-editor__field textarea[data-validation-state='invalid'],
.publication-editor__field select[data-validation-state='invalid'],
.publication-editor__lookup-search input[data-validation-state='invalid'] {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.96);
  animation: portal-validation-attention 220ms ease-out;
}

.publication-editor__field input.is-validating-success,
.publication-editor__field textarea.is-validating-success,
.publication-editor__field select.is-validating-success,
.publication-editor__lookup-search input.is-validating-success {
  border-color: rgba(22, 163, 74, 0.78);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  background: rgba(240, 253, 244, 0.98);
  animation: portal-validation-resolve 1.35s ease forwards;
}

.publication-editor__lookup-block {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.72);
}

.publication-editor__lookup-link {
  justify-self: start;
  text-decoration: none;
}

.publication-editor__selected-list,
.publication-editor__lookup-results {
  display: grid;
  gap: 0.55rem;
}

.publication-editor__selected-item,
.publication-editor__lookup-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
  text-align: left;
}

.publication-editor__selected-name,
.publication-editor__lookup-result-name {
  margin: 0;
  font-weight: 700;
  color: rgb(15 23 42);
}

.publication-editor__selected-meta,
.publication-editor__lookup-result-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.publication-editor__remove {
  white-space: nowrap;
}

.publication-editor__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  padding: 1rem 1.15rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.publication-hub__library-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.22fr);
}

.publication-hub__journal-create-card {
  min-width: 0;
}

.publication-hub__helper-card {
  padding: 1rem 1.1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.54);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.publication-hub__journal-form {
  gap: 1rem 1.1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.publication-hub__journal-field {
  min-width: 0;
}

.publication-hub__journal-field--full {
  grid-column: 1 / -1;
}

.publication-hub__journal-field--half {
  grid-column: span 6;
}

.publication-hub__journal-form .portal-shell-button {
  justify-self: start;
}

#publication-editor-message[data-tone='error'] {
  color: rgb(185 28 28);
}

#publication-editor-message[data-tone='warning'] {
  color: rgb(180 83 9);
}

html.dark .publication-hub__type-select select,
html.dark .publication-hub__card,
html.dark .publication-editor__section,
html.dark .publication-editor__selected-item,
html.dark .publication-editor__lookup-result,
html.dark .publication-editor__section input,
html.dark .publication-editor__section textarea,
html.dark .publication-editor__section select,
html.dark .publication-editor__lookup-search input {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

html.dark .publication-hub__copy,
html.dark .publication-hub__detail,
html.dark .publication-editor__section-head p,
html.dark .publication-editor__field-help,
html.dark .publication-editor__selected-meta,
html.dark .publication-editor__lookup-result-meta,
html.dark .publication-editor__lookup-empty,
html.dark .publication-editor__selected-empty,
html.dark .publication-editor__lookup-link,
html.dark #publication-editor-message,
html.dark .publication-hub__meta {
  color: rgb(148 163 184);
}

html.dark .publication-hub__title,
html.dark .publication-editor__section-head h2,
html.dark .publication-editor__selected-name,
html.dark .publication-editor__lookup-result-name,
html.dark .publication-editor__hero-card-title,
html.dark .publication-hub__helper-title,
html.dark .publication-editor__section label,
html.dark .publication-editor__lookup-head span {
  color: rgb(241 245 249);
}

html.dark .publication-editor__field-feedback[data-state='error'] {
  color: rgb(252 165 165);
}

html.dark .publication-editor__field input[data-validation-state='invalid'],
html.dark .publication-editor__field textarea[data-validation-state='invalid'],
html.dark .publication-editor__field select[data-validation-state='invalid'],
html.dark .publication-editor__lookup-search input[data-validation-state='invalid'] {
  border-color: rgba(248, 113, 113, 0.82);
  box-shadow: 0 0 0 4px rgba(127, 29, 29, 0.26);
  background: rgba(69, 10, 10, 0.38);
}

html.dark .publication-editor__field input.is-validating-success,
html.dark .publication-editor__field textarea.is-validating-success,
html.dark .publication-editor__field select.is-validating-success,
html.dark .publication-editor__lookup-search input.is-validating-success {
  border-color: rgba(74, 222, 128, 0.82);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.26);
  background: rgba(20, 83, 45, 0.22);
}

html.dark .publication-stage__orb--one {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24) 0%, rgba(14, 165, 233, 0.08) 44%, transparent 72%);
}

html.dark .publication-stage__orb--two {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(59, 130, 246, 0.08) 42%, transparent 72%);
}

html.dark .publication-stage__orb--three {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 72%);
}

html.dark .publication-workspace__stat,
html.dark .publication-workspace__control,
html.dark .publication-workspace__guide,
html.dark .publication-toolkit,
html.dark .publication-hub__card--featured {
  border-color: rgba(56, 189, 248, 0.14);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.94), rgba(12, 23, 42, 0.88));
  box-shadow: none;
}

html.dark .publication-workspace__compose,
html.dark .publication-workspace__action-card,
html.dark .publication-toolkit {
  border-color: rgba(56, 189, 248, 0.14);
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.94), rgba(12, 23, 42, 0.88));
}

html.dark .publication-workspace__heading,
html.dark .publication-workspace__action-title {
  color: rgb(241 245 249);
}

html.dark .publication-workspace__action-title,
html.dark .publication-hub__card-note {
  color: rgb(125 211 252);
}

html.dark .publication-workspace__stat-label,
html.dark .publication-workspace__kicker,
html.dark .publication-hub__type,
html.dark .publication-hub__card-note {
  color: rgb(125 211 252);
}

html.dark .publication-workspace__stat-value,
html.dark .publication-workspace__control-title,
html.dark .publication-workspace__guide-title {
  color: rgb(241 245 249);
}

html.dark .publication-workspace__stat-note,
html.dark .publication-workspace__control-copy,
html.dark .publication-workspace__message,
html.dark .publication-dashboard__summary,
html.dark .publication-workspace__guide-list {
  color: rgb(148 163 184);
}

html.dark .publication-dashboard__filter {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(8, 16, 32, 0.56);
  color: rgb(203 213 225);
}

html.dark .publication-dashboard__filter:hover {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(10, 30, 54, 0.76);
  color: rgb(241 245 249);
}

html.dark .publication-dashboard__filter.is-active {
  border-color: rgba(56, 189, 248, 0.32);
  background: linear-gradient(180deg, rgba(10, 68, 122, 0.42), rgba(8, 40, 74, 0.8));
  color: rgb(125 211 252);
}

html.dark .publication-hub__card:hover,
html.dark .publication-hub__card:focus-within {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.32);
}

html.dark .publication-toolkit__divider,
html.dark .publication-hub__card-footer {
  border-color: rgba(56, 189, 248, 0.12);
}

html.dark .publication-toolkit__divider {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.24), transparent);
}

html.dark .publication-editor__hero-tag,
html.dark .publication-editor__section-kicker {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: var(--portal-primary);
}

html.dark .publication-editor__hero-card,
html.dark .publication-hub__helper-card,
html.dark .publication-editor__footer {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
  box-shadow: none;
}

html.dark .publication-editor__hero-list,
html.dark .publication-hub__helper-list {
  color: rgb(148 163 184);
}

html.dark .publication-editor__lookup-block {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.34);
}

html.dark #publication-editor-message[data-tone='error'] {
  color: rgb(248 113 113);
}

html.dark #publication-editor-message[data-tone='warning'] {
  color: rgb(251 191 36);
}

@media (max-width: 860px) {
  .publication-stage__ambient {
    inset: -2rem -1rem auto;
    height: 24rem;
  }

  .publication-stage__orb--one {
    width: 16rem;
    height: 16rem;
  }

  .publication-stage__orb--two,
  .publication-stage__orb--three {
    width: 13rem;
    height: 13rem;
  }

  .publication-workspace__topbar,
  .publication-hub__head,
  .publication-hub__card-head,
  .publication-dashboard__head,
  .publication-editor__section-head,
  .publication-editor__lookup-head,
  .publication-editor__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .publication-hub__row-side {
    justify-items: start;
    min-width: 0;
  }

  .publication-workspace__action-grid,
  .publication-workspace__hero,
  .publication-dashboard,
  .publication-workspace__stats,
  .publication-dashboard__results {
    grid-template-columns: 1fr;
  }

  .publication-editor__hero {
    grid-template-columns: 1fr;
  }

  .publication-workspace__create--inline {
    grid-template-columns: 1fr;
  }

  .publication-dashboard__sidebar {
    position: static;
  }

  .publication-editor__hero {
    grid-template-columns: 1fr;
  }

  .publication-editor__fields,
  .publication-hub__journal-form {
    grid-template-columns: 1fr;
  }

  .publication-hub__library-grid {
    grid-template-columns: 1fr;
  }

  .publication-editor__field--half,
  .publication-editor__field--compact,
  .publication-hub__journal-field--half {
    grid-column: 1 / -1;
  }

  .publication-editor__footer {
    position: static;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.portal-journal-result,
.portal-exam-card,
.portal-runner__panel,
.portal-runner__answer {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
}

html.dark .portal-journal-result,
html.dark .portal-exam-card,
html.dark .portal-runner__panel,
html.dark .portal-runner__answer {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.62);
}

.portal-journal-result {
  padding: 1rem 1.1rem;
}

.portal-journal-result__title,
.portal-exam-card__title,
.portal-runner__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.portal-journal-result__meta,
.portal-exam-card__meta,
.portal-runner__meta {
  margin: 0.5rem 0 0;
  color: rgb(100 116 139);
}

.portal-exam-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.portal-exam-card__header,
.portal-runner__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-exam-card__status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.portal-exam-card__status[data-status='COMPLETED'] {
  background: rgba(220, 252, 231, 0.95);
  color: rgb(21 128 61);
}

.portal-exam-card__status[data-status='EXPIRED'] {
  background: rgba(255, 237, 213, 0.96);
  color: rgb(194 65 12);
}

.portal-exam-card__status[data-status='FAILED'] {
  background: rgba(254, 226, 226, 0.96);
  color: rgb(185 28 28);
}

.portal-exam-card__status[data-status='NOT_STARTED'] {
  background: rgba(224, 242, 254, 0.96);
  color: rgb(3 105 161);
}

.portal-exam-card__reason,
.portal-runner__helper {
  margin: 0;
  line-height: 1.6;
  color: rgb(71 85 105);
}

.portal-exam-card__footer,
.portal-runner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.portal-shell-link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgb(71 85 105);
  font-weight: 600;
}

html.dark .portal-shell-link-back {
  color: rgb(203 213 225);
}

.portal-runner {
  display: grid;
  gap: 1.5rem;
}

.portal-runner__panel {
  padding: 1.5rem;
}

.portal-runner__copy {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: rgb(100 116 139);
}

.portal-runner__progress-track {
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(186, 230, 253, 0.7);
  overflow: hidden;
}

html.dark .portal-runner__progress-track {
  background: rgba(148, 163, 184, 0.18);
}

.portal-runner__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0078d4, #06b6d4);
  transition: width 220ms ease;
}

.portal-runner__slides {
  display: grid;
  gap: 1rem;
}

.portal-runner__slide-frame {
  overflow: hidden;
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.92);
}

html.dark .portal-runner__slide-frame {
  background: rgba(15, 23, 42, 0.04);
}

.portal-runner__slide-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.portal-runner__answers {
  display: grid;
  gap: 0.85rem;
}

.portal-runner__answer {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.portal-runner__answer input {
  margin-top: 0.1rem;
}

.portal-runner__result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: 1.25rem;
}

.portal-runner__result-box {
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

html.dark .portal-runner__result-box {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.54);
}

.portal-runner__result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.workspace-home {

}

.workspace-home__ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 32rem;
  overflow: hidden;
  pointer-events: none;
}

.workspace-home__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.45;
  transform: translate3d(0, 0, 0);
}

.workspace-home__orb--one {
  top: 1.5rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(56, 189, 248, 0.24);
}

.workspace-home__orb--two {
  top: 0;
  right: 4rem;
  width: 15rem;
  height: 15rem;
  background: rgba(34, 197, 94, 0.16);
}

.workspace-home__orb--three {
  top: 13rem;
  left: 34%;
  width: 13rem;
  height: 13rem;
  background: rgba(244, 114, 182, 0.14);
}

.workspace-home__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.95fr);
  gap: 2rem;
  align-items: end;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.66));
  isolation: isolate;
}

.workspace-home__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 50%, rgba(14, 165, 233, 0.06));
  pointer-events: none;
  z-index: -1;
}

.workspace-home__hero-copy {
  display: grid;
  gap: 0.8rem;
}

.workspace-home__headline {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
}

.workspace-home__meta {
  margin: 1rem 0 0;
  max-width: 46rem;
  color: rgb(71 85 105);
  font-size: 1.03rem;
  line-height: 1.75;
}

.workspace-home__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.workspace-home__signal {
  display: grid;
  gap: 0.2rem;
  min-width: 10.5rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workspace-home__signal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.workspace-home__signal-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgb(15 23 42);
}

.workspace-home__hero-actions {
  display: grid;
  gap: 0.85rem;
  justify-items: stretch;
}

.workspace-home__announcements {
  display: grid;
  gap: 1rem;
}

.workspace-home__attention {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-home__attention-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.95rem;
  align-content: start;
  min-height: 100%;
}

.workspace-home__attention-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.28rem;
  opacity: 0.9;
}

.workspace-home__attention-card--proposal::before {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(56, 189, 248, 0.4));
}

.workspace-home__attention-card--publication::before {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.9), rgba(45, 212, 191, 0.4));
}

.workspace-home__attention-card--exam::before {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.9), rgba(132, 204, 22, 0.4));
}

.workspace-home__attention-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-home__attention-title {
  margin: 0.15rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
}

.workspace-home__attention-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(15 23 42);
}

.workspace-home__attention-copy {
  margin: 0;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.workspace-home__attention-list {
  display: grid;
  gap: 0.75rem;
}

.workspace-home__attention-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.workspace-home__attention-item-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.workspace-home__attention-item-meta,
.workspace-home__attention-empty {
  margin: 0.3rem 0 0;
  color: rgb(100 116 139);
  font-size: 0.9rem;
  line-height: 1.6;
}

.workspace-home__attention-item-link,
.workspace-home__attention-link {
  color: var(--portal-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-home__attention-link {
  justify-self: start;
}

.workspace-home__attention-item-link:hover,
.workspace-home__attention-link:hover {
  color: rgb(12 74 110);
}

.workspace-home__summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-home__summary-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.62));
}

.workspace-home__summary-card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.9), rgba(14, 165, 233, 0.08));
  opacity: 0.9;
}

.workspace-home__summary-card--proposal {
  background:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.66));
}

.workspace-home__summary-card--publication {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 254, 255, 0.68));
}

.workspace-home__summary-card--exam {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 244, 0.68));
}

.workspace-home__summary-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.workspace-home__summary-value {
  margin: 0.7rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.7rem;
  line-height: 1;
}

.workspace-home__summary-note {
  margin: 0.7rem 0 0;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.workspace-home__summary-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.workspace-home__summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgb(51 65 85);
  font-size: 0.78rem;
  line-height: 1;
}

.workspace-home__summary-chip strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
}

.workspace-home__streams {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-home__streams--rows {
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.workspace-home__stream {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.workspace-home__stream::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.28rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.85), rgba(16, 185, 129, 0.5), rgba(244, 114, 182, 0.38));
  opacity: 0.78;
}

.workspace-home__stream--row {
  --workspace-stream-accent: linear-gradient(180deg, rgba(14, 165, 233, 0.85), rgba(16, 185, 129, 0.5));
  overflow: visible;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.workspace-home__stream--row::before {
  inset: 0 auto 0 0;
  width: 0.28rem;
  height: auto;
  background: var(--workspace-stream-accent);
}

.workspace-home__stream--proposal {
  --workspace-stream-accent: linear-gradient(180deg, rgba(0, 120, 212, 0.92), rgba(14, 165, 233, 0.62));
}

.workspace-home__stream--publication {
  --workspace-stream-accent: linear-gradient(180deg, rgba(15, 118, 110, 0.9), rgba(45, 212, 191, 0.56));
}

.workspace-home__stream--exam {
  --workspace-stream-accent: linear-gradient(180deg, rgba(249, 115, 22, 0.9), rgba(251, 191, 36, 0.58));
}

.workspace-home__stream--row > .workspace-home__stream-head,
.workspace-home__stream--row > .workspace-home__stream-summary {
  grid-column: 1;
}

.workspace-home__stream--row > .workspace-home__list,
.workspace-home__stream--row > portal-data-table {
  grid-column: 1;
  grid-row: auto;
  min-width: 0;
}

.workspace-home__stream:hover,
.workspace-home__stream:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.workspace-home__stream-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-home__stream-title {
  margin: 0.15rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
}

.workspace-home__stream-summary {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.7;
}

.workspace-home__list {
  display: grid;
  gap: 0.85rem;
}

.workspace-home__item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.workspace-home__item:hover,
.workspace-home__item:focus-within {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(255, 255, 255, 0.84);
}

.workspace-home__item-head,
.workspace-home__item-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.workspace-home__item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.workspace-home__item-meta,
.workspace-home__empty {
  color: rgb(100 116 139);
  font-size: 0.92rem;
  line-height: 1.65;
}

.workspace-home__empty {
  padding: 1rem 0;
}

.workspace-home__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: rgba(226, 232, 240, 0.9);
  color: rgb(15 23 42);
}

.portal-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.portal-pagination__copy {
  display: grid;
  gap: 0.2rem;
}

.portal-pagination__label,
.portal-pagination__meta {
  margin: 0;
}

.portal-pagination__label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.portal-pagination__meta {
  color: rgb(100 116 139);
  line-height: 1.5;
}

.portal-pagination__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.workspace-home__badge[data-tone='draft'],
.workspace-home__badge[data-tone='available'] {
  background: rgba(191, 219, 254, 0.9);
  color: rgb(30 64 175);
}

.workspace-home__badge[data-tone='submitted'],
.workspace-home__badge[data-tone='publication'] {
  background: rgba(207, 250, 254, 0.94);
  color: rgb(14 116 144);
}

.workspace-home__badge[data-tone='approved'],
.workspace-home__badge[data-tone='completed'] {
  background: rgba(220, 252, 231, 0.94);
  color: rgb(21 128 61);
}

.workspace-home__badge[data-tone='review'] {
  background: rgba(254, 249, 195, 0.94);
  color: rgb(161 98 7);
}

.workspace-home__badge[data-tone='revision'],
.workspace-home__badge[data-tone='failed'],
.workspace-home__badge[data-tone='expired'] {
  background: rgba(254, 226, 226, 0.94);
  color: rgb(185 28 28);
}

.workspace-home__link {
  color: var(--portal-primary);
  font-weight: 700;
  text-decoration: none;
}

.workspace-home__link:hover {
  color: rgb(12 74 110);
}

.workspace-home__icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 8px;
  background: rgba(0, 102, 204, 0.06);
  color: #0066cc;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.workspace-home__icon-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workspace-home__icon-link:hover,
.workspace-home__icon-link:focus-visible {
  border-color: rgba(0, 102, 204, 0.34);
  background: rgba(0, 102, 204, 0.12);
  color: #004a99;
  transform: translateY(-1px);
}

.workspace-home__icon-link::after {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 12rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.workspace-home__icon-link:hover::after,
.workspace-home__icon-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.proposal-stage,
.exam-stage {

}

.proposal-stage__ambient,
.exam-stage__ambient {
  height: 30rem;
}

.proposal-stage__summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proposal-stage__content,
.exam-stage__content {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.proposal-stage__content {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.95fr);
}

.proposal-stage__content--rows {
  grid-template-columns: 1fr;
}

.exam-stage__content {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr);
}

.exam-stage__content--rows {
  grid-template-columns: 1fr;
}

.proposal-stage__stream,
.proposal-stage__compose {
  min-width: 0;
  overflow: visible;
}

.proposal-stage__compose {
  border-color: rgba(14, 165, 233, 0.24);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(240, 253, 250, 0.78));
}

.proposal-stage__content--rows .proposal-stage__stream,
.proposal-stage__content--rows .proposal-stage__compose {
  grid-column: 1;
}

.proposal-stage__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.proposal-stage__search {
  flex: 1 1 18rem;
  min-width: min(100%, 22rem);
}

.proposal-stage__form {
  display: grid;
  gap: 0.95rem;
}

.proposal-stage__field {
  display: grid;
  gap: 0.45rem;
  color: rgb(51 65 85);
  font-size: 0.92rem;
  font-weight: 600;
}

.proposal-stage__field input,
.proposal-stage__field select {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: rgb(15 23 42);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.proposal-stage__field input:focus,
.proposal-stage__field select:focus {
  border-color: rgba(14, 165, 233, 0.56);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 1);
}

.proposal-stage__type-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3rem;
  gap: 0.55rem;
  align-items: stretch;
}

.proposal-stage__type-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: rgb(3 105 161);
  cursor: pointer;
}

.proposal-stage__type-help:hover:not(:disabled),
.proposal-stage__type-help:focus-visible {
  border-color: rgba(14, 165, 233, 0.7);
  background: rgba(224, 242, 254, 0.9);
  outline: none;
}

.proposal-stage__type-help:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.proposal-stage__type-help-modal {
  width: min(34rem, calc(100vw - 2rem));
}

.proposal-stage__type-help-detail {
  margin: 0;
  color: rgb(71 85 105);
  line-height: 1.6;
}

.proposal-stage__field-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.proposal-stage__field-feedback::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.proposal-stage__field-feedback[data-state='error'] {
  color: rgb(185 28 28);
}

.proposal-stage__field-feedback[data-state='error']::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23FEF2F2' stroke='%23DC2626' stroke-width='1.5'/%3E%3Cpath d='M10 5.75V10.25' stroke='%23DC2626' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.25' r='1.1' fill='%23DC2626'/%3E%3C/svg%3E");
}

.proposal-stage__field-feedback[data-state='success'] {
  color: rgb(21 128 61);
  animation: portal-validation-feedback-fade 1.35s ease forwards;
}

.proposal-stage__field-feedback[data-state='success']::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23F0FDF4' stroke='%2316A34A' stroke-width='1.5'/%3E%3Cpath d='M5.8 10.2L8.6 13L14.3 7.3' stroke='%2316A34A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.proposal-stage__field input[data-validation-state='invalid'],
.proposal-stage__field select[data-validation-state='invalid'] {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.96);
}

.proposal-stage__field input.is-validating-success,
.proposal-stage__field select.is-validating-success {
  border-color: rgba(22, 163, 74, 0.78);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  background: rgba(240, 253, 244, 0.98);
  animation: portal-validation-resolve 1.35s ease forwards;
}

.proposal-stage__submit {
  justify-self: start;
}

.proposal-stage #proposal-message {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.proposal-stage__account {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.72));
}

.proposal-stage__account-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-primary);
}

.proposal-stage__account-user,
.exam-stage__hero-note-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  color: rgb(15 23 42);
}

.proposal-stage__account-user {
  font-size: 1.4rem;
}

.proposal-stage__account-copy,
.proposal-stage__account-note {
  margin: 0;
  color: rgb(71 85 105);
  line-height: 1.6;
}

.proposal-stage__account-note {
  min-height: 1.25rem;
}

.proposal-status-badge {
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1;
}

.publication-workspace__hero-shell {
  align-items: start;
}

.publication-workspace__signals {
  margin-top: 0.75rem;
}

.publication-stage__summary {
  margin-top: 1.5rem;
}

.publication-workspace__link {
  justify-self: start;
}

.exam-stage__hero-note {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.exam-stage__list {
  min-width: 0;
}

.exam-stage__content .workspace-home__attention-card {
  min-height: 100%;
}

.schedule-stage__hero {
  align-items: center;
}

.schedule-stage__calendar {
  padding: 0;
  overflow: hidden;
}

.schedule-stage .schedule-calendar {
  display: block;
  width: 100%;
  margin: 0;
}

.schedule-stage .schedule-calendar .sexp-header {
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: rgba(255, 255, 255, 0.74);
}

.schedule-stage .schedule-calendar .cv-grid {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.dark .workspace-home__hero,
html.dark .workspace-home__summary-card,
html.dark .workspace-home__item {
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .workspace-home__signal,
html.dark .workspace-home__summary-chip,
html.dark .workspace-home__attention-value,
html.dark .workspace-home__attention-item {
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .workspace-home__hero {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.66));
}

html.dark .workspace-home__hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 52%, rgba(34, 211, 238, 0.08));
}

html.dark .workspace-home__summary-card,
html.dark .workspace-home__item,
html.dark .workspace-home__signal,
html.dark .workspace-home__summary-chip,
html.dark .workspace-home__attention-value,
html.dark .workspace-home__attention-item {
  background: rgba(15, 23, 42, 0.56);
}

html.dark .workspace-home__headline,
html.dark .workspace-home__stream-title,
html.dark .workspace-home__item-title,
html.dark .workspace-home__summary-value,
html.dark .workspace-home__signal-value,
html.dark .workspace-home__attention-title,
html.dark .workspace-home__attention-value,
html.dark .workspace-home__attention-item-title {
  color: rgb(248 250 252);
}

html.dark .workspace-home__meta,
html.dark .workspace-home__summary-note,
html.dark .workspace-home__stream-summary,
html.dark .workspace-home__item-meta,
html.dark .workspace-home__empty,
html.dark .workspace-home__signal-label,
html.dark .workspace-home__summary-chip,
html.dark .workspace-home__attention-copy,
html.dark .workspace-home__attention-item-meta,
html.dark .workspace-home__attention-empty {
  color: rgb(148 163 184);
}

html.dark .workspace-home__stream:hover,
html.dark .workspace-home__stream:focus-within {
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.24);
}

html.dark .workspace-home__item:hover,
html.dark .workspace-home__item:focus-within {
  background: rgba(15, 23, 42, 0.72);
}

html.dark .proposal-stage__account,
html.dark .proposal-stage__compose,
html.dark .schedule-stage .schedule-calendar .sexp-header,
html.dark .exam-stage__hero-note,
html.dark .proposal-stage__field input,
html.dark .proposal-stage__field select {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.62);
}

html.dark .proposal-stage__field input,
html.dark .proposal-stage__field select {
  color: rgb(241 245 249);
}

html.dark .proposal-stage__type-help {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.62);
  color: rgb(125 211 252);
}

html.dark .proposal-stage__type-help:hover:not(:disabled),
html.dark .proposal-stage__type-help:focus-visible {
  background: rgba(12, 74, 110, 0.4);
}

html.dark .proposal-stage__type-help-detail {
  color: rgb(203 213 225);
}

html.dark .proposal-stage__field-feedback[data-state='error'] {
  color: rgb(252 165 165);
}

html.dark .proposal-stage__field-feedback[data-state='success'] {
  color: rgb(134 239 172);
}

html.dark .proposal-stage__field input[data-validation-state='invalid'],
html.dark .proposal-stage__field select[data-validation-state='invalid'] {
  background: rgba(69, 10, 10, 0.32);
  border-color: rgba(248, 113, 113, 0.72);
}

html.dark .proposal-stage__field input.is-validating-success,
html.dark .proposal-stage__field select.is-validating-success {
  background: rgba(20, 83, 45, 0.32);
  border-color: rgba(74, 222, 128, 0.78);
}

html.dark .proposal-stage__account-user,
html.dark .exam-stage__hero-note-title,
html.dark .proposal-stage__field {
  color: rgb(248 250 252);
}

html.dark .proposal-stage__account-copy,
html.dark .proposal-stage__account-note {
  color: rgb(148 163 184);
}

html.dark .portal-pagination {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark .portal-pagination__meta {
  color: rgb(148 163 184);
}

@keyframes portal-validation-resolve {
  0% {
    background: rgba(240, 253, 244, 0.98);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  }

  100% {
    background: inherit;
    box-shadow: none;
  }
}

@keyframes portal-validation-attention {
  0% {
    transform: translateX(0);
  }

  33% {
    transform: translateX(-2px);
  }

  66% {
    transform: translateX(2px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes portal-validation-feedback-fade {
  0%,
  65% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

html.dark .workspace-home__link:hover {
  color: rgb(125 211 252);
}

html.dark .workspace-home__icon-link {
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(147, 197, 253, 0.08);
  color: rgb(147 197 253);
}

html.dark .workspace-home__icon-link:hover,
html.dark .workspace-home__icon-link:focus-visible {
  border-color: rgba(147, 197, 253, 0.34);
  background: rgba(147, 197, 253, 0.14);
  color: rgb(191 219 254);
}

html.dark .workspace-home__attention-item-link:hover,
html.dark .workspace-home__attention-link:hover {
  color: rgb(125 211 252);
}

@media (max-width: 900px) {
  .portal-shell-hero {
    grid-template-columns: 1fr;
  }

  .workspace-home__hero,
  .workspace-home__attention,
  .workspace-home__summary,
  .workspace-home__streams {
    grid-template-columns: 1fr;
  }

  .workspace-home__ambient {
    height: 24rem;
  }

  .workspace-home__stream--row {
    grid-template-columns: 1fr;
  }

  .workspace-home__stream--row > .workspace-home__list,
  .workspace-home__stream--row > portal-data-table {
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-home__stream-head,
  .workspace-home__attention-head,
  .workspace-home__attention-item,
  .workspace-home__item-head,
  .workspace-home__item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-shell-tags {
    justify-content: flex-start;
  }

  .proposal-stage__content,
  .exam-stage__content,
  .proposal-stage__summary {
    grid-template-columns: 1fr;
  }

  .portal-shell-header__nav {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .portal-shell-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .portal-shell-header__nav,
  .portal-shell-header__desktop-signout,
  .portal-shell-header__desktop-account {
    display: none;
  }

  .portal-shell-header__controls {
    gap: 0.6rem;
  }

  .portal-shell-header__menu-button {
    display: inline-flex;
  }

  .portal-shell-header__mobile-panel {
    display: block;
    padding: 0 1.5rem 1.2rem;
  }

  .portal-shell-footer__inner {
    align-items: flex-start;
  }

  .portal-shell-footer__tagline {
    max-width: none;
  }

  .portal-shell-toolbar,
  .proposal-stage__toolbar,
  .portal-runner__actions,
  .portal-exam-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-shell-search,
  .proposal-stage__search {
    flex-basis: auto;
    min-width: 0;
  }

  .workspace-home__hero-actions > *,
  .portal-pagination__actions > *,
  .portal-shell-header__mobile-actions > * {
    width: 100%;
    justify-content: center;
  }

  .portal-pagination__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-shell-link-back {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .portal-shell-card {
    padding: 1.25rem;
    border-radius: 0;
  }

  main.workspace-home,
  main.publication-stage,
  main.portal-error-page {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  main.publication-stage > section,
  .publication-stage__summary,
  .publication-dashboard,
  .publication-dashboard__sidebar {
    width: 100%;
  }

  .workspace-home__hero,
  .workspace-home__summary-card,
  .workspace-home__signal,
  .workspace-home__item,
  .workspace-home__stream,
  .proposal-stage__stream,
  .proposal-stage__compose,
  .publication-workspace,
  .publication-workspace__compose,
  .publication-workspace__action-card,
  .publication-workspace__stat,
  .publication-workspace__control,
  .publication-workspace__guide,
  .publication-dashboard__board,
  .publication-toolkit,
  .schedule-stage__calendar,
  .profile-stage__content,
  .portal-profile-layout,
  .portal-profile-nav,
  .portal-profile-panel,
  .portal-profile-form-section,
  .portal-profile-inline-card,
  .portal-profile-training-card,
  .portal-profile-preference-card,
  .portal-profile-theme-card,
  .exam-stage__content,
  .portal-exam-card,
  .portal-journal-result,
  .portal-runner__panel,
  .portal-shell-card,
  .portal-shell-card.workspace-home__stream,
  .portal-shell-card.proposal-stage__compose,
  .portal-shell-card.publication-workspace,
  .portal-shell-card.publication-dashboard__board,
  .portal-shell-card.schedule-stage__calendar,
  .portal-error-panel {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0 !important;
  }

  .portal-error-page {
    min-height: auto;
    align-items: stretch;
  }

  .portal-error-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .portal-error-panel__media {
    gap: 1.25rem;
  }

  .portal-error-panel__media img {
    width: min(70vw, 13rem);
  }

  .portal-error-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-error-panel__actions > * {
    width: 100%;
    justify-content: center;
  }

  .workspace-home__stream,
  .proposal-stage__stream,
  .proposal-stage__compose,
  .publication-workspace,
  .publication-dashboard__board {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .publication-toolkit {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-shell-header__inner,
  .portal-shell-header__mobile-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-shell-header__brand {
    font-size: 1.45rem;
  }

  .workspace-home__signals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-home__attention-item-link,
  .workspace-home__attention-link,
  .workspace-home__link {
    align-self: flex-start;
  }

  .proposal-stage__submit {
    width: 100%;
    justify-self: stretch;
  }

  .portal-runner__topbar,
  .portal-exam-card__header {
    flex-direction: column;
  }
}
