:root {
  --bg: var(--ui-color-bg-canvas);
  --surface: var(--ui-color-surface);
  --surface-strong: var(--ui-color-surface-strong);
  --primary: var(--ui-color-primary);
  --primary-deep: var(--ui-color-primary-strong);
  --accent: var(--ui-color-accent);
  --text: var(--ui-color-text);
  --muted: var(--ui-color-text-muted);
  --line: var(--ui-color-border);
  --shadow: var(--ui-shadow-card);
  --shadow-button: var(--ui-shadow-button);
  --radius-xl: var(--ui-radius-lg);
  --radius-lg: var(--ui-radius-md);
  --radius-md: var(--ui-radius-sm);
  --radius-pill: var(--ui-radius-pill);
  --font-body: var(--ui-font-body);
  --font-heading: var(--ui-font-heading);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--ui-gradient-app-bg);
  color: var(--text);
}

body {
  position: relative;
}

#app {
  position: relative;
  z-index: 1;
}

:root[data-theme="venus-barbie"] body::before,
:root[data-theme="venus-barbie"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
  will-change: background-position, transform;
}

:root[data-theme="venus-barbie"] body::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.42), transparent 18%),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.24), transparent 14%),
    radial-gradient(circle at 58% 78%, rgba(255, 189, 221, 0.3), transparent 22%),
    url("./assets/barbie-unicorn-gallop.svg") 8% 14% / 126px auto no-repeat,
    url("./assets/barbie-unicorn-gallop.svg") 68% 34% / 118px auto no-repeat,
    url("./assets/barbie-unicorn-gallop.svg") 30% 54% / 122px auto no-repeat;
  opacity: 0.18;
  animation: barbie-unicorn-float-a 26s linear infinite;
}

:root[data-theme="venus-barbie"] body::after {
  background:
    radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 72% 32%, rgba(255, 219, 237, 0.24), transparent 18%),
    url("./assets/barbie-unicorn-gallop.svg") 82% 24% / 116px auto no-repeat,
    url("./assets/barbie-unicorn-gallop.svg") 12% 44% / 120px auto no-repeat,
    url("./assets/barbie-unicorn-gallop.svg") 62% 64% / 114px auto no-repeat;
  opacity: 0.1;
  animation: barbie-unicorn-float-b 31s linear infinite;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.login-title,
.calendar-title {
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.screen {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 19, 119, 0.12), rgba(8, 19, 119, 0.04)),
    var(--ui-asset-hero-wave) center/cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
}

@keyframes barbie-unicorn-float-a {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      -12% 14%,
      48% 34%,
      10% 54%;
  }

  to {
    background-position:
      0 0,
      0 0,
      0 0,
      108% 14%,
      168% 34%,
      130% 54%;
  }
}

@keyframes barbie-unicorn-float-b {
  from {
    background-position:
      0 0,
      0 0,
      -8% 24%,
      -28% 44%,
      18% 64%;
  }

  to {
    background-position:
      0 0,
      0 0,
      112% 24%,
      92% 44%,
      138% 64%;
  }
}

.login-card {
  width: min(420px, 100%);
  background: var(--ui-card-bg);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.brand-mark {
  width: 132px;
  height: 132px;
  display: block;
  object-fit: contain;
}

.login-title {
  margin: 18px 0 8px;
  font-size: 1.9rem;
}

.login-copy {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

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

.input-wrap {
  display: grid;
  gap: 6px;
}

.input-wrap label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field,
.search-input,
.select-chip {
  width: 100%;
  border-radius: 16px;
  border: var(--ui-input-border);
  background: var(--ui-input-bg);
  color: var(--text);
}

.field {
  padding: 14px 16px;
}

.feedback-textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
  border-radius: 16px;
  border: var(--ui-input-border);
  background: var(--ui-input-bg);
  color: var(--text);
  font: inherit;
}

.primary-btn,
.ghost-btn,
.card-cta,
.calendar-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.card-cta:hover,
.calendar-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  margin-top: 10px;
  background: var(--ui-button-primary-bg);
  color: var(--ui-button-primary-color);
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 800;
  box-shadow: var(--shadow-button);
}

.ghost-btn {
  background: var(--ui-button-secondary-bg);
  color: var(--ui-button-secondary-color);
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 700;
}

.dap-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, white) 0%, color-mix(in srgb, var(--accent) 12%, white) 100%);
  color: var(--primary-deep);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 16%, white);
}

.dap-badge {
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.dap-flow {
  display: grid;
  gap: 18px;
}

.dap-flow-steps {
  display: grid;
  gap: 10px;
}

.dap-flow-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.dap-flow-step span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, white);
  font-weight: 800;
}

.dap-flow-step strong {
  font-size: 0.95rem;
}

.dap-flow-step.active {
  color: var(--primary-deep);
}

.dap-flow-step.active span {
  background: var(--primary);
  color: #fff;
}

.dap-flow-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, white) 0%, var(--ui-input-bg) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, white);
}

.dap-flow-panel strong {
  color: var(--primary-deep);
  font-size: 1rem;
}

.dap-flow-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dap-flow-code {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.dap-flow-code span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dap-flow-code strong {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.dap-flow-status {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.dap-flow-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.dap-flow-status p {
  font-size: 0.85rem;
}

.dap-flow-pulse,
.dap-flow-spinner {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
}

.dap-flow-pulse {
  background: radial-gradient(circle, var(--primary) 0%, color-mix(in srgb, var(--primary) 20%, white) 65%, transparent 66%);
  animation: dap-pulse 1.4s ease-in-out infinite;
}

.dap-flow-spinner {
  border: 3px solid color-mix(in srgb, var(--primary) 18%, white);
  border-top-color: var(--primary);
  animation: dap-spin 0.9s linear infinite;
}

.dap-flow-actions {
  display: grid;
  gap: 10px;
}

@keyframes dap-pulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes dap-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--ui-color-bg-shell-top) 0%, var(--ui-color-bg-shell-bottom) 100%);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--ui-topbar-bg);
  backdrop-filter: blur(14px);
}

.logo-btn,
.profile-btn,
.menu-button,
.search-button {
  background: var(--surface-strong);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(16, 34, 90, 0.08);
}

.logo-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}

.topbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
}

.menu-button,
.search-button,
.profile-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.menu-button {
  justify-content: space-between;
  color: #fff;
  background: var(--primary-deep);
  font-weight: 800;
}

.search-button {
  width: 56px;
  padding: 0;
  color: var(--primary-deep);
  display: none;
}

.profile-btn {
  padding: 0 14px;
  width: 84px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f4d66 0%, #1e2740 100%);
  position: relative;
  overflow: hidden;
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffcfb1;
}

.avatar::before {
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.avatar::after {
  bottom: -3px;
  width: 22px;
  height: 18px;
  border-radius: 11px 11px 5px 5px;
}

.hero {
  position: relative;
  padding: 24px 16px 22px;
  color: var(--ui-hero-text);
  overflow: visible;
  background: var(--ui-gradient-hero);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  background-image:
    radial-gradient(circle at 110% 20%, rgba(255, 255, 255, 0.2), transparent 20%);
  mix-blend-mode: soft-light;
}

.hero::after {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, rgba(4, 20, 108, 0.16) 100%);
}

.hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.gear-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gear-icon {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-name-days {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  max-width: 100%;
}

.hero-name-days strong {
  font-size: 0.96rem;
}

.hero-name-days span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.semester-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.94rem;
}

.info-badge {
  white-space: nowrap;
}

.semester-badge {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.92);
}

.status-badge {
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.quick-links {
  position: relative;
  z-index: 1;
  /* display: grid; */
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 108px;
  gap: 14px;
  overflow-x: auto;
  padding: 20px 0 2px;
  scrollbar-width: none;
}

.quick-links::-webkit-scrollbar,
.cards-rail::-webkit-scrollbar,
.tile-grid::-webkit-scrollbar {
  display: none;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-deep);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(11, 34, 98, 0.12);
  text-align: center;
}

.content {
  padding: 0 16px 28px;
  margin-top: 16px;
}

.content-side {
  margin-top: 16px;
}

.search-row {
  margin-top: -16px;
  position: relative;
  z-index: 5;
}

.search-shell {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-input {
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
}

.cards-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 16px;
  border-radius: var(--radius-xl);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 0 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.cards-rail.single-card {
  grid-auto-flow: row;
  grid-auto-columns: minmax(0, 1fr);
  overflow: visible;
}

.feature-card,
.small-card,
.calendar-card,
.feedback-card,
.tile-item,
.menu-popover {
  background: var(--ui-card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--ui-card-shadow);
}

.feature-card {
  padding: 18px 14px 14px;
  display: grid;
  align-content: space-between;
  min-height: 352px;
  transition: transform 240ms ease, opacity 240ms ease;
  will-change: transform, opacity;
}

.feature-card.highlighted {
  position: relative;
  border: 4px solid #ff8a1f;
  box-shadow: var(--ui-card-shadow);
}

.feature-card.highlighted::before {
  content: none;
}

.card-illustration {
  margin: 0 auto 10px;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 40% 34%, #fdb48b 0 19%, transparent 20%),
    radial-gradient(circle at 42% 59%, #a9acdf 0 16%, transparent 17%),
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
  position: relative;
}

.card-illustration::before,
.card-illustration::after {
  content: "";
  position: absolute;
}

.card-illustration::before {
  width: 78px;
  height: 26px;
  border-radius: 50%;
  background: rgba(33, 53, 121, 0.12);
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.card-illustration::after {
  width: 82px;
  height: 82px;
  border: 4px solid #263252;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 16px 16px 40px 22px;
  top: 44px;
  left: 52px;
  transform: rotate(-28deg);
}

.card-illustration.enrollment {
  background:
    url("./assets/illustrations/register.svg") center/contain no-repeat,
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
}

.card-illustration.enrollment::before,
.card-illustration.enrollment::after {
  content: none;
}

.card-illustration.course {
  background:
    url("./assets/illustrations/subject-registration.svg") center/contain no-repeat,
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
}

.card-illustration.course::before,
.card-illustration.course::after {
  content: none;
}

.card-illustration.payment {
  background:
    url("./assets/illustrations/payin.svg") center/contain no-repeat,
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
}

.card-illustration.payment::before {
  content: none;
}

.card-illustration.payment::after {
  content: none;
}

.card-illustration.alt {
  background:
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
}

.card-illustration.alt::before {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #ffb17e 0 23%, transparent 23% 62%, #5b657a 62% 76%, transparent 76% 100%);
  bottom: 26px;
}

.card-illustration.alt::after {
  width: 58px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff2 0%, #fff7 100%);
  right: 42px;
  top: 24px;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.65);
  transform: none;
  border: 0;
}

.feature-card p {
  margin: 8px 0 16px;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.45;
}

.feature-card-title {
  margin-bottom: 6px;
}

.feature-card-amount {
  display: block;
  text-align: center;
  font-size: 2.15rem;
  line-height: 1.05;
  color: var(--primary-deep);
}

.feature-card-meta {
  max-width: 24ch;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.feature-alert-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.feature-alert-badge img {
  width: 100%;
  height: 100%;
  display: block;
}

.card-cta {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: var(--ui-button-primary-bg);
  color: var(--ui-button-primary-color);
  font-weight: 800;
}

.small-card {
  margin-top: 16px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  animation: hover-card 3s ease-in-out infinite;
  transition: transform 240ms ease, opacity 240ms ease;
  will-change: transform, opacity;
}

.close-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(28, 42, 88, 0.1);
  color: var(--primary-deep);
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(28, 42, 88, 0.08);
  z-index: 2;
}

.small-card-illustration {
  width: 100%;
  height: 150px;
  border-radius: 20px;
  margin-bottom: 12px;
  background:
    url("./assets/illustrations/yoga.svg") center/contain no-repeat,
    linear-gradient(180deg, #fdfdff 0%, #f0f2ff 100%);
  position: relative;
}

.small-card-illustration::before,
.small-card-illustration::after {
  content: none;
  position: absolute;
  border-radius: 18px;
}

.small-card-illustration::before {
  width: 84px;
  height: 56px;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8b95c8 0%, #6e79ac 100%);
}

.small-card-illustration::after {
  width: 150px;
  height: 10px;
  background: rgba(36, 48, 97, 0.08);
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.small-card p {
  text-align: center;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.calendar-card {
  margin-top: 22px;
  padding: 18px 14px 20px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.calendar-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(31, 77, 217, 0.08);
  color: var(--primary);
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.day {
  text-align: center;
}

.day span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.day strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.day.active strong {
  background: var(--primary);
  color: #fff;
}

.calendar-empty {
  border-radius: 22px;
  background: #f6f7ff;
  padding: 24px 16px;
  text-align: center;
}

.calendar-empty-illustration {
  margin: 0 auto 12px;
  width: 200px;
  height: 120px;
  border-radius: 20px;
  background:
    url("./assets/illustrations/calendar-empty.svg") center/contain no-repeat,
    linear-gradient(180deg, #fbfcff 0%, #eef1ff 100%);
  position: relative;
}

.calendar-empty-illustration::before,
.calendar-empty-illustration::after {
  content: none;
  position: absolute;
}

.calendar-empty-illustration::before {
  width: 86px;
  height: 18px;
  background: #cfd6fb;
  border-radius: 10px;
  bottom: 20px;
  left: 62px;
}

.calendar-empty-illustration::after {
  width: 82px;
  height: 48px;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(180deg, #9ba6dd 0%, #7380bc 100%);
  bottom: 30px;
  left: 60px;
}

.task-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  background: #edf0ff;
  padding: 14px 12px;
  font-weight: 800;
  display: none;
}

.task-badge {
  min-width: 34px;
  height: 34px;
  border-radius: 17px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.84rem;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 12px;
  border-radius: 4px;
  margin-right: 5px;
}

.calendar-btn {
  width: 100%;
  background: transparent;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.calendar-page {
  margin-top: 0;
}

.calendar-page-shell {
  min-height: calc(100vh - 170px);
  padding: 4px 2px 0;
}

.calendar-page-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-page-titlewrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-page-titlewrap h1 {
  margin: 0;
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--ui-calendar-page-text);
}

.calendar-page-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--ui-calendar-page-text);
}

.calendar-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.calendar-month-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ui-calendar-page-text);
  box-shadow: 0 10px 24px rgba(92, 101, 130, 0.12);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-top-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #575d66;
}

.calendar-top-icon svg {
  width: 20px;
  height: 20px;
}

.calendar-view-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.calendar-view-tabs::-webkit-scrollbar {
  display: none;
}

.calendar-view-tab {
  position: relative;
  padding: 0 0 8px;
  background: transparent;
  color: #6d727a;
  white-space: nowrap;
}

.calendar-view-tab.active {
  color: var(--ui-calendar-accent);
  font-weight: 800;
}

.calendar-view-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--ui-calendar-accent);
}

.calendar-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  transform-origin: top center;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calendar-week-strip.collapsed {
  opacity: 0.22;
  transform: translateY(-6px) scaleY(0.94);
}

.calendar-week-day {
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  background: transparent;
  color: #40444b;
}

.calendar-week-day span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #666d76;
  text-transform: uppercase;
}

.calendar-week-day strong {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 800;
}

.calendar-week-day i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ui-calendar-accent) 28%, white);
}

.calendar-week-day.active strong {
  background: var(--ui-calendar-accent);
  color: #fff;
}

.calendar-week-day.active i {
  background: var(--ui-calendar-accent);
}

.calendar-week-day.faded,
.calendar-week-day.muted {
  color: #9ea4ab;
}

.calendar-week-day.faded span,
.calendar-week-day.muted span {
  color: #9ea4ab;
}

.calendar-week-day.muted strong {
  color: #9ea4ab;
}

.calendar-month-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-10px);
  transform-origin: top center;
  transition:
    grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}

.calendar-month-panel > div {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calendar-month-panel.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

.calendar-month-panel.expanded > div {
  opacity: 1;
  transform: translateY(0);
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 6px;
}

.calendar-month-date {
  min-height: 64px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 18px;
  background: var(--ui-calendar-soft-surface);
  color: #424852;
}

.calendar-month-date span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8d949d;
  text-transform: uppercase;
}

.calendar-month-date strong {
  font-size: 1rem;
  font-weight: 800;
}

.calendar-month-date.weekend strong {
  color: #a4aab3;
}

.calendar-month-date.empty {
  opacity: 0;
  pointer-events: none;
}

.calendar-month-date.active {
  background: var(--ui-calendar-accent);
  color: #fff;
}

.calendar-month-date.active span {
  color: rgba(255, 255, 255, 0.78);
}

.calendar-week-handle {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  margin: 10px 0 18px;
  transition: margin 220ms ease;
}

.calendar-week-handle span {
  width: 18px;
  height: 18px;
  border-left: 3px solid var(--ui-calendar-handle);
  border-bottom: 3px solid var(--ui-calendar-handle);
  transform: rotate(-45deg);
  border-radius: 2px;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease;
}

.calendar-week-handle.expanded span {
  transform: rotate(135deg);
  border-color: #9fa5ad;
}

.calendar-day-section h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  font-family: var(--font-heading);
  color: var(--ui-calendar-page-text);
}

.calendar-day-card {
  padding: 8px 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(98, 110, 142, 0.12);
}

.calendar-day-item {
  display: grid;
  grid-template-columns: 52px 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
}

.calendar-day-time {
  display: grid;
  gap: 8px;
  color: var(--ui-calendar-muted);
  font-size: 0.82rem;
  line-height: 1;
}

.calendar-day-divider {
  width: 3px;
  height: 52px;
  border-radius: 999px;
  background: var(--ui-calendar-divider);
  margin-top: 2px;
}

.calendar-day-body {
  min-width: 0;
}

.calendar-day-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d3138;
  font-size: 0.98rem;
}

.calendar-day-item.task .calendar-day-body strong {
  color: #a5abb3;
  font-weight: 700;
}

.calendar-day-item.course .calendar-day-divider {
  background: #4b61ff;
}

.calendar-day-item.exam .calendar-day-divider {
  background: #ff8a1f;
}

.calendar-day-item.consultation .calendar-day-divider {
  background: #7d63ff;
}

.calendar-day-item.meeting .calendar-day-divider {
  background: #1ab3a6;
}

.calendar-day-item.institution .calendar-day-divider {
  background: #ff6680;
}

.calendar-day-item.task .calendar-day-divider {
  background: #7e8794;
}

.calendar-day-body p {
  margin: 4px 0 0;
  color: #8c929a;
  font-size: 0.88rem;
}

.calendar-day-empty {
  padding: 20px 18px;
  display: grid;
  gap: 8px;
}

.calendar-day-empty strong {
  color: #2d3138;
  font-size: 1rem;
}

.calendar-day-empty p {
  margin: 0;
  color: #8c929a;
  line-height: 1.5;
}

.calendar-year-grid {
  display: grid;
  gap: 12px;
}

.calendar-year-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(98, 110, 142, 0.12);
}

.calendar-year-card.active {
  box-shadow: inset 0 0 0 2px var(--ui-calendar-accent), 0 14px 34px rgba(98, 110, 142, 0.12);
}

.calendar-year-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.calendar-year-card-head strong {
  font-size: 1rem;
  color: var(--ui-calendar-page-text);
}

.calendar-year-card-head span,
.calendar-year-card small {
  color: #8c929a;
}

.calendar-year-card p {
  margin: 0;
  color: #2d3138;
  line-height: 1.45;
}

.calendar-week-board {
  display: grid;
  gap: 12px;
}

.calendar-week-column {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(98, 110, 142, 0.12);
  overflow: hidden;
}

.calendar-week-column.active {
  box-shadow: inset 0 0 0 2px var(--ui-calendar-accent), 0 14px 34px rgba(98, 110, 142, 0.12);
}

.calendar-week-column-head {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--ui-calendar-page-text);
}

.calendar-week-column-head span {
  font-size: 0.88rem;
  font-weight: 700;
}

.calendar-week-column-head strong {
  font-size: 1.2rem;
}

.calendar-week-column-body {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.calendar-week-event {
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border-radius: 16px;
  text-align: left;
  background: #f5f7ff;
  color: #2d3138;
}

.calendar-week-event strong {
  font-size: 0.78rem;
  color: #6e7480;
}

.calendar-week-event.course {
  background: rgba(75, 97, 255, 0.1);
}

.calendar-week-event.exam {
  background: rgba(255, 138, 31, 0.14);
}

.calendar-week-event.consultation {
  background: rgba(125, 99, 255, 0.12);
}

.calendar-week-event.meeting {
  background: rgba(26, 179, 166, 0.12);
}

.calendar-week-event.institution {
  background: rgba(255, 102, 128, 0.12);
}

.calendar-week-event.task {
  background: rgba(126, 135, 148, 0.12);
}

.calendar-week-empty,
.calendar-week-more {
  color: #8c929a;
  font-size: 0.84rem;
}

.calendar-day-detail {
  display: grid;
  gap: 14px;
}

.calendar-day-summary {
  display: grid;
  gap: 10px;
}

.calendar-day-summary h2 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--ui-calendar-page-text);
}

.calendar-day-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-day-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #5d6570;
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-agenda-list {
  display: grid;
  gap: 18px;
}

.calendar-agenda-group {
  display: grid;
  gap: 10px;
}

.calendar-agenda-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--ui-calendar-page-text);
  text-align: left;
  padding: 0 2px;
}

.calendar-agenda-group-title span {
  color: #8c929a;
  font-size: 0.84rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.feedback-hub {
  margin-top: 16px;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(239, 244, 255, 0.88) 100%);
  border: 1px solid rgba(116, 136, 214, 0.1);
  box-shadow: 0 14px 28px rgba(32, 51, 122, 0.06);
}

.feedback-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-card {
  flex: 1 1 0;
  width: auto;
  min-height: 150px;
  padding: 16px 18px 26px;
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 255, 0.9) 100%);
  border: 1px solid rgba(116, 136, 214, 0.1);
  box-shadow: none;
}

.feedback-card-accent {
  min-height: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(244, 248, 255, 0.92) 0%, rgba(233, 241, 255, 0.9) 100%);
}

#open-feedback-modal {
  min-height: auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

.feedback-card-eyebrow,
.feedback-modal-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.feedback-card strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.feedback-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.tile-item {
  min-height: 86px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  color: var(--primary-deep);
  background: rgba(192, 198, 247, 0.78);
}

.footer {
  margin-top: 24px;
  background: #243562;
  color: #fff;
  padding: 22px 16px 34px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-meta {
  margin-top: 54px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-meta p {
  margin: 0 0 10px;
}

.footer-meta small {
  color: rgba(255, 255, 255, 0.55);
}

.lang-switch {
  width: 84px;
  justify-content: space-between;
  color: #2f3860;
}

.menu-popover,
.profile-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  padding: 10px;
  display: none;
}

.profile-popover {
  left: auto;
  right: 0;
  width: 180px;
}

.menu-wrap,
.profile-wrap,
.theme-wrap {
  position: relative;
}

.theme-wrap {
  z-index: 4;
}

.menu-wrap.open .menu-popover,
.profile-wrap.open .profile-popover,
.theme-wrap.open .theme-popover {
  display: block;
}

.theme-popover {
  left: auto;
  right: 0;
  width: 196px;
  z-index: 6;
}

.theme-item {
  justify-content: flex-start;
}

.theme-item.selected {
  background: color-mix(in srgb, var(--primary) 10%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 24%, white);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(28, 42, 88, 0.08);
}

.theme-swatch.default {
  background: linear-gradient(135deg, #1f4dd9 0%, #ff8b2c 100%);
}

.theme-swatch.sunset {
  background: linear-gradient(135deg, #b54f2a 0%, #f2b544 100%);
}

.theme-swatch.barbie {
  background: linear-gradient(135deg, #e93d8d 0%, #ffb1d5 100%);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-placeholder {
  min-height: 44px;
  border-radius: 14px;
  background: #f0f3ff;
  border: 1px dashed rgba(31, 77, 217, 0.26);
}

.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 18px 14px;
  background: rgba(18, 28, 67, 0.4);
  backdrop-filter: blur(8px);
}

.feedback-modal {
  width: min(100%, 430px);
  max-height: min(82vh, 760px);
  overflow: auto;
  position: relative;
  padding: 24px 20px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(17, 29, 75, 0.28);
}

.feedback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(31, 77, 217, 0.08);
  color: var(--primary-deep);
  font-size: 1.45rem;
  line-height: 1;
}

.feedback-modal-title {
  margin: 8px 0 18px;
  font-size: 1.8rem;
  color: var(--primary-deep);
}

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

.feedback-submit {
  width: 100%;
}

.feedback-test-page {
  align-content: start;
}

.feedback-test-hero {
  padding-bottom: 12px;
  background:
    linear-gradient(180deg, rgba(4, 18, 88, 0.2), rgba(3, 16, 78, 0.42)),
    linear-gradient(145deg, #0d7fdc 0%, #145fcd 30%, #183fbf 62%, #1a319f 100%);
  box-shadow: 0 28px 56px rgba(10, 29, 97, 0.24);
}

.feedback-test-hero::before {
  background-image:
    linear-gradient(120deg, rgba(111, 233, 255, 0.18), transparent 34%),
    radial-gradient(circle at 120% 8%, rgba(255, 255, 255, 0.12), transparent 24%);
  opacity: 0.72;
}

.feedback-test-hero::after {
  background-image:
    linear-gradient(180deg, rgba(2, 12, 56, 0.04) 0%, rgba(3, 12, 60, 0.34) 100%),
    var(--ui-asset-hero-wave);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  opacity: 0.42;
}

.feedback-test-copy {
  max-width: 58ch;
  display: grid;
  gap: 14px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.65;
  text-shadow: 0 1px 1px rgba(3, 13, 48, 0.28);
}

.feedback-test-copy p {
  margin: 0;
}

.feedback-signoff {
  font-weight: 800;
}

.feedback-test-shell {
  padding: 16px 0 40px;
}

.feedback-test-card {
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.96) 100%);
  box-shadow: 0 24px 56px rgba(17, 29, 75, 0.12);
}

.feedback-test-back {
  margin-bottom: 20px;
}

.feedback-test-form {
  display: grid;
  gap: 16px;
}

.feedback-consent {
  margin-top: 4px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(241, 245, 255, 0.9);
  border: 1px solid rgba(69, 102, 206, 0.14);
}

.feedback-consent-head {
  margin-bottom: 12px;
  color: var(--primary-deep);
}

.feedback-consent-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  line-height: 1.6;
}

.feedback-consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.feedback-test-submit {
  width: 100%;
  margin-top: 8px;
}

.feedback-test-form .field,
.feedback-test-form .feedback-textarea {
  background: rgba(255, 255, 255, 0.92);
}

.feedback-test-form select.field {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 2.25L7 7.25L12 2.25' fill='none' stroke='%232e56db' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 18px) 50%;
  background-size: 14px 10px;
  background-repeat: no-repeat;
}

.feedback-test-form select.field:required:invalid {
  color: var(--muted);
}

.feedback-test-form select.field option {
  color: var(--text);
  background: #fff;
}

.feedback-test-form select.field option[value=""] {
  color: var(--muted);
}

.feedback-thanks-modal {
  display: grid;
  gap: 18px;
}

.feedback-thanks-actions {
  display: grid;
  gap: 12px;
}

.enrollment-flow-page {
  align-content: start;
}

.enrollment-flow-shell {
  padding: 20px 0 40px;
}

.enrollment-flow-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.96) 100%);
  box-shadow: 0 24px 56px rgba(17, 29, 75, 0.12);
}

.enrollment-flow-header {
  display: block;
}

.enrollment-flow-meta {
  text-align: left;
}

.enrollment-flow-meta h1 {
  margin: 6px 0 0;
  color: var(--primary-deep);
}

.enrollment-progress {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.enrollment-progress small {
  color: var(--muted);
  font-weight: 700;
}

.enrollment-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 77, 217, 0.1);
}

.enrollment-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, #5c8dff 100%);
}

.enrollment-flow-body {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.enrollment-flow-body h2 {
  margin: 0;
  color: var(--primary-deep);
}

.enrollment-flow-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.enrollment-data-grid {
  display: grid;
  gap: 12px;
}

.enrollment-data-item,
.enrollment-summary-row {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(244, 247, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(31, 77, 217, 0.08);
}

.enrollment-data-item span,
.enrollment-summary-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.enrollment-data-item strong,
.enrollment-summary-row strong {
  color: var(--primary-deep);
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.enrollment-summary-list {
  display: grid;
  gap: 12px;
}

.enrollment-choice-group {
  display: grid;
  gap: 10px;
}

.enrollment-choice-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.enrollment-choice-list {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: 10px;
}

.enrollment-choice {
  min-height: 52px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(244, 247, 255, 0.92);
  color: var(--primary-deep);
  font-size: 0.95rem;
  white-space: nowrap;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: center;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(31, 77, 217, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.enrollment-choice.active {
  background: color-mix(in srgb, var(--primary) 10%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 32%, white);
}

.enrollment-confirmation {
  padding: 24px;
  display: grid;
  gap: 8px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(31, 77, 217, 0.12) 0%, rgba(92, 141, 255, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 77, 217, 0.12);
}

.enrollment-confirmation strong {
  font-size: 1.15rem;
  color: var(--primary-deep);
}

.enrollment-confirmation span {
  color: var(--muted);
}

.enrollment-flow-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-flow-footer .ghost-btn,
.enrollment-flow-footer .primary-btn,
.enrollment-flow-header .ghost-btn {
  margin-top: 0;
}

.enrollment-flow-secondary,
.enrollment-flow-primary {
  flex: 1 1 0;
}

.enrollment-flow-back:disabled,
.enrollment-flow-secondary:disabled {
  opacity: 0.45;
  cursor: default;
}

.enrollment-success-card {
  text-align: center;
  display: grid;
  gap: 14px;
  place-items: center;
  position: relative;
  z-index: 1;
}

.enrollment-success-card h1 {
  margin: 0;
  color: var(--primary-deep);
}

.enrollment-success-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.enrollment-success-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #5c8dff 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px rgba(31, 77, 217, 0.24);
}

.enrollment-success-cta {
  width: min(100%, 320px);
}

.enrollment-celebration {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
  animation: celebration-fade 5s ease forwards;
}

.celebration-sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.38), transparent 18%),
    radial-gradient(circle at 80% 14%, rgba(130, 214, 255, 0.26), transparent 20%),
    radial-gradient(circle at 50% 22%, rgba(255, 210, 120, 0.16), transparent 24%);
  animation: celebration-sheen 5s ease-out forwards;
}

.celebration-confetti {
  position: absolute;
  top: -12%;
  width: 12px;
  height: 24px;
  border-radius: 4px;
  background: hsl(var(--hue) 88% 62%);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: confetti-fall var(--duration) ease-in var(--delay) forwards;
}

.celebration-confetti:nth-of-type(odd) {
  width: 10px;
  height: 18px;
  border-radius: 999px;
}

.celebration-burst {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(106,196,255,0.85) 38%, rgba(106,196,255,0) 72%);
  box-shadow:
    0 -44px 0 -2px rgba(255, 219, 94, 0.95),
    31px -31px 0 -2px rgba(89, 209, 255, 0.92),
    44px 0 0 -2px rgba(255, 255, 255, 0.95),
    31px 31px 0 -2px rgba(120, 134, 255, 0.92),
    0 44px 0 -2px rgba(255, 219, 94, 0.95),
    -31px 31px 0 -2px rgba(89, 209, 255, 0.92),
    -44px 0 0 -2px rgba(255, 255, 255, 0.95),
    -31px -31px 0 -2px rgba(120, 134, 255, 0.92);
  animation: firework-burst 1.35s ease-out var(--delay) 2 both;
}

@keyframes celebration-fade {
  0%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes celebration-sheen {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -6vh, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc((var(--hue) - 260) * 0.11px), 112vh, 0) rotate(720deg);
  }
}

@keyframes firework-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    filter: blur(1px);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
    filter: blur(1px);
  }
}

@media (min-width: 800px) {
  .feedback-test-shell {
    padding: 20px 0 56px;
  }

  .feedback-test-card {
    padding: 30px;
  }

  .enrollment-flow-shell {
    padding: 24px 24px 56px;
  }

  .enrollment-flow-card {
    padding: 30px;
  }

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

.hidden {
  display: none !important;
}

@keyframes hover-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (min-width: 800px) {
  .app-shell {
    max-width: 1180px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    padding: 24px;
  }

  .topbar,
  .hero,
  .content,
  .footer {
    grid-column: 1 / -1;
    border-radius: 34px;
  }

  .content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
    margin-top: 0;
  }

  .content-main,
  .content-side {
    min-width: 0;
    margin-top: 0;
  }

  .cards-rail {
    grid-auto-columns: minmax(250px, 1fr);
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 109, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #eef3ff 0%, #e6edff 100%);
}

.app-shell {
  max-width: 460px;
  padding: 14px 14px 110px;
  background: transparent;
}

.topbar {
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px 0 14px;
  background: transparent;
  backdrop-filter: none;
}

.topbar-main {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 6px;
}

.topbar-eyebrow,
.section-eyebrow,
.drawer-eyebrow,
.hero-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 39, 107, 0.58);
}

.topbar-main strong,
.section-head strong,
.drawer-head strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary-deep);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-btn,
.search-button,
.profile-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 36px rgba(40, 66, 138, 0.12);
}

.logo-btn,
.search-button {
  width: 56px;
  height: 56px;
  border-radius: 20px;
}

.profile-btn {
  width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 20px;
}

.menu-wrap,
.profile-wrap {
  position: relative;
}

.app-drawer,
.profile-popover {
  top: calc(100% + 12px);
  width: min(320px, calc(100vw - 28px));
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(17, 39, 109, 0.18);
}

.app-drawer {
  left: 0;
}

.drawer-head,
.section-head {
  display: grid;
  gap: 4px;
}

.section-head {
  margin: 16px 2px 12px;
}

.menu-list {
  gap: 10px;
  margin-top: 14px;
}

.menu-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 18px;
  background: #f4f7ff;
  color: var(--primary-deep);
  font-weight: 700;
}

.menu-item-danger {
  background: rgba(255, 239, 239, 0.92);
  color: #9f2837;
}

.menu-item-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e57e8 0%, #4ba6ff 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.menu-item-icon-danger {
  background: linear-gradient(135deg, #d9485f 0%, #ff8f8f 100%);
}

.hero {
  margin-top: 2px;
  padding: 22px 18px 18px;
  border-radius: 32px;
  box-shadow: 0 24px 50px rgba(18, 43, 120, 0.18);
}

.hero-row {
  align-items: flex-start;
}

.hero h1 {
  font-size: 2.3rem;
}

.hero-copy {
  max-width: 26ch;
  margin: 10px 0 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.gear-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  margin-top: 0;
}

.hero-meta {
  margin-top: 14px;
  gap: 10px;
}

.info-badge {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quick-links {
  grid-auto-columns: 122px;
  gap: 12px;
  padding-top: 18px;
}

.quick-link {
  min-height: 84px;
  padding: 14px 12px;
  border-radius: 24px;
  text-align: center;
  line-height: 1.2;
}

.content {
  padding: 0;
  margin-top: 16px;
}

.search-row {
  margin-top: 16px;
}

.search-shell {
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.cards-rail {
  grid-auto-columns: 84%;
  border-radius: 30px;
  overflow-y: hidden;
  padding: 6px 0 0;
}

.cards-rail.single-card {
  grid-auto-columns: 100%;
  overflow: visible;
}


.feature-card,
.small-card,
.calendar-card,
.feedback-card,
.tile-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(32, 51, 122, 0.1);
}

.feature-card {
  min-height: 336px;
  border-radius: 30px;
}

.card-cta {
  border-radius: 18px;
}

.small-card,
.calendar-card {
  border-radius: 30px;
}

.small-card {
  margin-top: 16px;
  animation: none;
}

.calendar-card {
  margin-top: 0;
}

.calendar-empty {
  background: linear-gradient(180deg, #f6f8ff 0%, #eef3ff 100%);
}

.task-row {
  background: linear-gradient(180deg, #eef3ff 0%, #e8eeff 100%);
}

.tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tile-item {
  min-height: 108px;
  align-content: end;
  justify-items: start;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(75, 166, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.94);
}

.tile-item span {
  max-width: 11ch;
  text-align: left;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(432px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: var(--ui-mobile-nav-bg);
  box-shadow: var(--ui-shadow-float);
  backdrop-filter: blur(22px);
  z-index: 30;
}

.mobile-nav-item {
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 20px;
  color: var(--ui-mobile-nav-text);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-nav-item.active {
  background: var(--ui-mobile-nav-active-bg);
  color: var(--ui-mobile-nav-active-text);
}

.mobile-nav-item svg {
  width: 19px;
  height: 19px;
}

.profile-page {
  padding-bottom: 108px;
}

.profile-hero {
  padding-bottom: 28px;
}

.profile-hero-copy {
  margin: 14px 0 0;
  max-width: 48ch;
  color: #fff;
  line-height: 1.55;
}

.qr-camera-page {
  padding-bottom: 108px;
}

.qr-camera-hero-copy {
  max-width: 30ch;
  margin: 14px 0 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.qr-camera-shell {
  margin-top: 18px;
}

.qr-camera-card {
  display: grid;
  gap: 22px;
  padding: 22px 20px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(90, 159, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 255, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 48px rgba(20, 42, 112, 0.12);
}

.qr-camera-card.is-success {
  background:
    radial-gradient(circle at top right, rgba(75, 212, 164, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 246, 0.96) 100%);
}

.qr-camera-copy {
  display: grid;
  gap: 10px;
}

.qr-camera-copy h2 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 1.5rem;
}

.qr-camera-copy p {
  margin: 0;
  color: rgba(37, 58, 123, 0.78);
  line-height: 1.6;
}

.qr-camera-pill {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 87, 228, 0.1);
  color: #2554d8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.qr-camera-card.is-live .qr-camera-pill {
  background: rgba(40, 199, 146, 0.14);
  color: #1f916b;
}

.qr-camera-card.is-success .qr-camera-pill {
  background: rgba(40, 199, 146, 0.14);
  color: #1f916b;
}

.qr-camera-frame {
  position: relative;
  min-height: 360px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(73, 171, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #143289 0%, #0f205d 100%);
  overflow: hidden;
}

.qr-camera-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.qr-camera-frame-inner {
  position: relative;
  height: 100%;
  min-height: 324px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(91, 255, 224, 0.08), transparent 42%),
    rgba(7, 17, 48, 0.4);
  backdrop-filter: blur(4px);
}

.qr-camera-card.is-success .qr-camera-frame {
  background:
    radial-gradient(circle at top left, rgba(84, 225, 181, 0.22), transparent 32%),
    linear-gradient(180deg, #154b59 0%, #17324e 100%);
}

.qr-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #6fffe5;
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 10px rgba(111, 255, 229, 0.35));
}

.qr-corner-tl {
  top: 18px;
  left: 18px;
  border-top-width: 4px;
  border-left-width: 4px;
  border-top-left-radius: 12px;
}

.qr-corner-tr {
  top: 18px;
  right: 18px;
  border-top-width: 4px;
  border-right-width: 4px;
  border-top-right-radius: 12px;
}

.qr-corner-bl {
  left: 18px;
  bottom: 18px;
  border-bottom-width: 4px;
  border-left-width: 4px;
  border-bottom-left-radius: 12px;
}

.qr-corner-br {
  right: 18px;
  bottom: 18px;
  border-bottom-width: 4px;
  border-right-width: 4px;
  border-bottom-right-radius: 12px;
}

.qr-camera-scanline {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 26%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 255, 229, 0) 0%, rgba(111, 255, 229, 0.95) 50%, rgba(111, 255, 229, 0) 100%);
  box-shadow: 0 0 18px rgba(111, 255, 229, 0.6);
  animation: qr-scanline 2.8s linear infinite;
}

.qr-camera-card.is-live .qr-camera-scanline {
  animation-duration: 1.9s;
}

.qr-camera-center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 112px;
  min-height: 112px;
  display: inline-grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.qr-camera-card.is-success .qr-camera-center-badge {
  background: rgba(84, 225, 181, 0.16);
  border-color: rgba(140, 255, 224, 0.32);
}

.qr-camera-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-camera-hints span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 238, 255, 0.9);
  color: rgba(37, 58, 123, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.qr-camera-actions {
  display: grid;
  gap: 12px;
}

.qr-click-btn {
  min-height: 60px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.szev-success-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 54, 97, 0.08);
}

.szev-success-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1cbf8f 0%, #63e1c4 100%);
  transform-origin: left center;
  animation: szev-progress 5s linear forwards;
}

.szev-success-countdown {
  margin: -8px 0 0;
  color: rgba(31, 74, 98, 0.82);
  font-weight: 700;
  text-align: center;
}

@keyframes qr-scanline {
  0% {
    top: 22%;
    opacity: 0.3;
  }

  18% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    top: 78%;
    opacity: 0.3;
  }
}

@keyframes szev-progress {
  0% {
    transform: scaleX(1);
  }

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

.profile-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 0 0 24px;
}

.profile-summary-card,
.profile-data-card {
  background: var(--ui-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.profile-summary-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.profile-summary-card h2 {
  margin: 8px 0 6px;
  font-size: 1.7rem;
}

.profile-summary-card p {
  margin: 0;
  color: var(--muted);
}

.profile-logout-btn {
  width: 100%;
}

.profile-summary-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.profile-clear-storage-btn {
  width: 100%;
  color: #a02b3c;
  background: rgba(255, 239, 239, 0.92);
}

.profile-sylora-card {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 20px 22px;
  text-align: left;
  background: var(--ui-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: var(--primary-deep);
}

.profile-sylora-card strong {
  font-size: 1.18rem;
}

.profile-sylora-eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sylora-redirect-modal {
  text-align: center;
}

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

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-section-head {
  padding: 0 4px;
}

.profile-section-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ui-calendar-page-text);
}

.profile-data-grid {
  display: grid;
  gap: 12px;
}

.profile-data-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.profile-data-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-data-card strong {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.footer,
.footer-top,
.footer-meta,
.lang-switch,
.menu-button,
.menu-placeholder {
  display: none !important;
}

@media (min-width: 800px) {
  .app-shell {
    max-width: 1180px;
    padding: 24px 24px 120px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
  }

  .topbar,
  .hero,
  .mobile-nav {
    grid-column: 1 / -1;
  }

  .content {
    display: contents;
  }

  .cards-rail {
    grid-auto-columns: minmax(250px, 1fr);
  }

  .mobile-nav {
    width: min(680px, calc(100vw - 40px));
  }

  .profile-shell {
    padding-inline: 0;
  }

  .profile-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .profile-logout-btn {
    width: auto;
    min-width: 180px;
  }

  .profile-summary-actions {
    width: auto;
  }

  .profile-clear-storage-btn {
    width: auto;
    min-width: 220px;
  }

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

  .calendar-layout {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
  }

  .calendar-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-week-board {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: start;
  }

  .app-drawer,
  .profile-popover {
    width: 340px;
  }
}


/* Upupa Epops scholarship validation prototype */
.scholar-landing,
.scholar-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.scholar-landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 0;
}

.landing-visual,
.role-panel,
.wide-panel,
.side-panel,
.mini-panel,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(29, 44, 103, 0.13);
}

.landing-visual {
  min-height: calc(100vh - 56px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-content: end;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 29, 85, 0.08), rgba(14, 29, 85, 0.74)),
    linear-gradient(135deg, #17316f 0%, #2858c7 42%, #f0b15d 100%);
}

.campus-art {
  position: absolute;
  inset: 10% 6% auto;
  height: 46%;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.7fr;
  gap: 16px;
  align-items: end;
  opacity: 0.9;
}

.campus-art span {
  display: block;
  border-radius: 6px 6px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 10px, transparent 10px 22px),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.18));
  box-shadow: 0 24px 50px rgba(5, 15, 55, 0.18);
}

.campus-art span:nth-child(1) { height: 78%; }
.campus-art span:nth-child(2) { height: 100%; }
.campus-art span:nth-child(3) { height: 64%; }
.campus-art span:nth-child(4) { height: 86%; }

.landing-copy {
  position: relative;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-copy .eyebrow,
.scholar-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.landing-copy h1,
.scholar-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
}

.landing-copy p:last-child,
.scholar-hero p {
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.role-panel {
  min-height: calc(100vh - 56px);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
}

.role-card,
.mini-panel,
.metric-card {
  border-radius: 8px;
}

.role-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.95), rgba(235, 241, 255, 0.92));
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.role-card h2,
.wide-panel h2,
.side-panel h2,
.mini-panel h3 {
  margin: 0;
  color: var(--primary-deep);
}

.role-card p,
.mini-panel p,
.panel-note {
  color: var(--muted);
  line-height: 1.58;
}

.role-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(31, 77, 217, 0.09);
}

.role-icon svg,
.icon-btn svg,
.scholar-tabs svg {
  width: 22px;
  height: 22px;
}

.app-action {
  width: 100%;
  min-height: 52px;
}

.scholar-shell {
  min-height: 100vh;
  padding: 22px 0 34px;
}

.scholar-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.scholar-topbar span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(31, 77, 217, 0.08);
}

.logo-mark-btn {
  overflow: hidden;
  background: #fff;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.scholar-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 18, 74, 0.2), rgba(7, 18, 74, 0.06)),
    linear-gradient(135deg, #17316f 0%, #2b57c7 60%, #ff9d38 100%);
  box-shadow: 0 24px 58px rgba(18, 42, 120, 0.22);
}

.hero-kpi {
  min-width: 150px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-kpi strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.hero-kpi span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.scholar-tabs,
.filter-row,
.form-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 10px;
}

.scholar-tabs {
  margin: 18px 0;
}

.scholar-tabs button,
.filter-row button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(48, 72, 145, 0.1);
  font-weight: 800;
}

.scholar-tabs button.active,
.filter-row button.active {
  color: #fff;
  background: var(--primary-deep);
}

.process-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0 22px;
}

.process-nav .overview-tab {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(48, 72, 145, 0.12);
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(22, 46, 120, 0.08);
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0;
  align-items: center;
  padding: 18px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(48, 72, 145, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.petition-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.petition-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  text-align: left;
}

.petition-card.is-selected {
  border-color: rgba(31, 77, 217, 0.48);
  box-shadow: 0 18px 36px rgba(31, 77, 217, 0.14);
}

.petition-card.is-disabled .role-icon,
.petition-card.is-disabled h2,
.petition-card.is-disabled p {
  opacity: 0.7;
}

.scholarship-status-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.petition-status-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(31, 77, 217, 0.26);
}

.petition-status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.petition-status-head small {
  color: var(--muted);
  text-transform: none;
}

.petition-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
  background: rgba(234, 241, 255, 0.95);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.petition-status-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.detail-petition-status {
  margin: 22px 0 28px;
  background: rgba(234, 241, 255, 0.88);
}

.petition-choice-head {
  margin-top: 28px;
  margin-bottom: 0;
}

.petition-status-row.static {
  cursor: default;
}

.petition-status-row.static:hover {
  transform: none;
  box-shadow: none;
}

.condition-grid {
  display: grid;
  gap: 10px;
}

.condition-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.9);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.condition-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.notice-section {
  border-color: rgba(34, 180, 127, 0.2);
  background: rgba(241, 252, 247, 0.86);
}

.declaration-text-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.declaration-text-block strong {
  color: var(--primary-deep);
}

.declaration-text-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.5;
}

.process-track::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 77, 217, 0.52), rgba(31, 77, 217, 0.16));
  transform: translateY(-50%);
}

.process-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 850;
}

.step-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-deep);
  background: #e8eefc;
  border: 3px solid #f8fbff;
  box-shadow: 0 0 0 1px rgba(48, 72, 145, 0.12);
  font-size: 0.88rem;
  font-weight: 900;
}

.step-copy {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  text-align: center;
  line-height: 1.2;
}

.step-copy svg {
  width: 18px;
  height: 18px;
}

.process-step.done .step-marker {
  color: #fff;
  background: #22a878;
}

.process-step.current .step-marker,
.process-step.active .step-marker {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(31, 77, 217, 0.13);
}

.process-step.done {
  color: #17684d;
}

.process-step.current,
.process-step.active {
  color: var(--primary-deep);
}

.process-step.active .step-copy {
  color: #fff;
  background: var(--primary-deep);
  border-radius: 999px;
  padding: 7px 12px;
}

.scholar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.scholar-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.wide-panel,
.side-panel,
.mini-panel,
.metric-card {
  border-radius: 8px;
  padding: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.program-list,
.document-list,
.demo-form,
.check-list,
.timeline,
.ranking-board {
  display: grid;
  gap: 10px;
}

.program-row,
.document-row,
.metric-line,
.data-table > div,
.ranking-board > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  background: rgba(244, 247, 255, 0.88);
  border: 1px solid rgba(48, 72, 145, 0.08);
}

.program-row {
  position: relative;
}

button.program-row,
button.role-card {
  cursor: pointer;
}

button.program-row.is-entry,
button.role-card.is-entry {
  border-color: rgba(31, 77, 217, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, rgba(236, 242, 255, 0.98) 100%);
  box-shadow: inset 4px 0 0 var(--primary), 0 12px 26px rgba(31, 77, 217, 0.1);
}

button.program-row.is-status-link {
  border-color: rgba(31, 77, 217, 0.22);
  background: rgba(248, 250, 255, 0.95);
  box-shadow: inset 3px 0 0 rgba(31, 77, 217, 0.42);
}

button.program-row.is-entry::after,
button.program-row.is-status-link::after {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  color: var(--primary);
  opacity: 0.72;
}

button.program-row:not(:disabled):hover,
button.role-card:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(31, 77, 217, 0.58);
  box-shadow: inset 4px 0 0 var(--primary), 0 18px 34px rgba(30, 58, 142, 0.16);
}

button.program-row:not(:disabled):active,
button.role-card:not(:disabled):active {
  transform: translateY(0);
}

button.program-row:focus-visible,
button.role-card:focus-visible {
  outline: 3px solid rgba(31, 77, 217, 0.32);
  outline-offset: 3px;
}

.program-row.is-static,
button.program-row:disabled,
button.role-card:disabled {
  cursor: default;
  opacity: 0.72;
  background: rgba(244, 247, 255, 0.58);
  border-color: rgba(48, 72, 145, 0.08);
  box-shadow: none;
}

button.role-card.is-entry {
  position: relative;
}

button.role-card.is-entry::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  transform: rotate(45deg);
  opacity: 0.72;
}

.program-row strong,
.document-row strong {
  color: var(--primary-deep);
}

.program-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: #31508d;
  background: rgba(49, 80, 141, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.is-good {
  color: #17684d;
  background: rgba(34, 180, 127, 0.14);
}

.status-pill.is-warn {
  color: #9a5417;
  background: rgba(255, 157, 56, 0.18);
}

.status-pill.is-bad {
  color: #9a2730;
  background: rgba(218, 61, 74, 0.14);
}

.metric-line span,
.application-summary span,
.progress-block span,
.metric-card span {
  color: var(--muted);
  font-weight: 700;
}

.progress-wrap {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 77, 217, 0.11);
}

.progress-wrap span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mini-panel h3,
.metric-card strong {
  color: var(--primary-deep);
}

.application-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 34px;
}

.application-summary div {
  padding: 24px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.92);
}

.application-summary span,
.application-summary strong {
  display: block;
  line-height: 1.32;
}

.application-summary strong {
  margin-top: 8px;
}

.progress-block {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.progress-block div:first-child {
  display: flex;
  justify-content: space-between;
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--primary-deep);
  font-weight: 800;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.readonly-section {
  opacity: 0.72;
  background: rgba(233, 238, 249, 0.88);
}

.form-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.form-section-head h3 {
  margin: 0;
  color: var(--primary-deep);
}

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

.readonly-grid div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.readonly-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.readonly-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--primary-deep);
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.sub-actions .ghost-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.expected-docs {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.expected-docs > strong {
  color: var(--primary-deep);
}

.declaration-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.declaration-group legend {
  margin-bottom: 2px;
  color: var(--primary-deep);
  font-weight: 900;
}

.declaration-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(48, 72, 145, 0.1);
  line-height: 1.45;
  font-weight: 700;
}

.declaration-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.compact {
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 8px;
}

.check-list,
.timeline {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.timeline li {
  position: relative;
  padding: 10px 10px 10px 34px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.84);
}

.check-list li::before,
.timeline li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline li.active::before {
  background: var(--accent);
}

.timeline li.done::before {
  background: #22a878;
}

.data-table,
.ranking-board {
  overflow-x: auto;
}

.data-table > div {
  grid-template-columns: 1fr 1.2fr auto 1fr;
}

.review-table > div {
  grid-template-columns: 0.8fr 1fr auto 1.4fr auto;
}

.ranking-board > div {
  grid-template-columns: 40px 1fr 0.8fr auto 0.9fr;
}

.metric-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
}

.metric-card strong {
  font-size: 2.2rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: #182d68;
  box-shadow: 0 18px 40px rgba(17, 29, 75, 0.26);
  font-weight: 800;
}

.standalone {
  margin-top: 18px;
}

.category-strip,
.link-list,
.field-list,
.comment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list,
.field-list,
.comment-list {
  display: grid;
}

.category-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(31, 77, 217, 0.08);
  font-size: 0.84rem;
  font-weight: 900;
}

.category-chip.favorite {
  color: #8a4b12;
  background: rgba(255, 157, 56, 0.18);
}

.compact-list .program-row {
  grid-template-columns: 1fr;
}

.empty-state {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.empty-state strong {
  color: var(--primary-deep);
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stage-grid,
.portfolio-grid,
.category-admin-grid,
.period-admin-grid {
  display: grid;
  gap: 12px;
}

.stage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-grid,
.category-admin-grid,
.period-admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stage-card,
.portfolio-doc,
.category-admin-card,
.period-card,
.comment-card,
.field-row,
.official-doc-preview {
  padding: 14px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.9);
  border: 1px solid rgba(48, 72, 145, 0.09);
}

.stage-card.active {
  border-color: rgba(255, 157, 56, 0.38);
  background: rgba(255, 247, 237, 0.92);
}

.stage-card strong,
.portfolio-doc strong,
.category-admin-card strong,
.period-card strong,
.comment-card strong,
.field-row strong,
.official-doc-preview strong {
  display: block;
  color: var(--primary-deep);
}

.stage-card span,
.portfolio-doc span,
.category-admin-card span,
.period-card span,
.field-row span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.stage-card p,
.period-card p,
.comment-card p,
.field-row p,
.official-doc-preview p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-doc {
  text-align: left;
}

.portfolio-doc small,
.comment-card small,
.official-doc-preview small {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 900;
}

.link-row {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--primary-deep);
  background: rgba(31, 77, 217, 0.08);
  font-weight: 900;
}

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

.comment-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-admin-card {
  display: grid;
  gap: 10px;
}

.category-admin-card > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.period-card .category-strip {
  margin-top: 12px;
}

.official-doc-preview {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.danger-action {
  margin-top: 14px;
  color: #9a2730;
  background: rgba(218, 61, 74, 0.1);
}

.validation-hero {
  margin-top: 14px;
}

.scholar-tabs button small {
  margin-left: 2px;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.72rem;
}

.validation-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.document-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.validation-check {
  margin-top: 32px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(255, 157, 56, 0.24);
}

.validation-check strong {
  display: block;
  color: var(--primary-deep);
}

.validation-check p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-timeline {
  margin-bottom: 18px;
}

.number-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.55;
}

.number-list li {
  padding-left: 6px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.current-status-card,
.inline-upload-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.current-status-card.prominent {
  margin: 0 0 24px;
  padding: 26px;
  background: rgba(234, 241, 255, 0.94);
}

.current-status-card strong,
.inline-upload-card strong {
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.current-status-card p,
.inline-upload-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.inline-upload-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 18px 0 18px;
  background: rgba(235, 244, 255, 0.92);
}

.inline-upload-card > .status-pill {
  align-self: center;
  justify-self: center;
}

.inline-upload-card > div {
  display: grid;
  gap: 8px;
}

.inline-upload-card span {
  display: block;
}

.supplement-message {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(255, 157, 56, 0.24);
}

.supplement-message strong {
  color: var(--primary-deep);
}

.supplement-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.task-context {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(48, 72, 145, 0.1);
}

.task-context span {
  color: var(--muted);
  font-weight: 800;
}

.task-context strong {
  color: var(--primary-deep);
}

.supplement-btn {
  width: fit-content;
  min-height: 52px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .scholar-landing,
  .scholar-grid,
  .scholar-grid.three,
  .scholar-grid.four {
    grid-template-columns: 1fr;
  }

  .landing-visual,
  .role-panel {
    min-height: auto;
  }

  .landing-visual {
    min-height: 58vh;
  }

  .scholar-hero {
    display: grid;
  }

  .application-summary {
    grid-template-columns: 1fr;
  }

  .stage-grid,
  .portfolio-grid,
  .category-admin-grid,
  .period-admin-grid {
    grid-template-columns: 1fr;
  }

  .data-table > div,
  .review-table > div,
  .ranking-board > div {
    min-width: 720px;
  }

  .process-tabs {
    grid-template-columns: 1fr;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .process-tabs::-webkit-scrollbar {
    display: none;
  }

  .process-tabs button {
    flex: 0 0 auto;
  }

  .process-track {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    min-width: 520px;
  }

  .petition-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .scholar-landing,
  .scholar-shell {
    width: min(100% - 20px, 1180px);
  }

  .landing-visual,
  .role-panel,
  .scholar-hero,
  .wide-panel,
  .side-panel,
  .mini-panel,
  .metric-card {
    padding: 18px;
  }

  .landing-copy h1,
  .scholar-hero h1 {
    font-size: 2.3rem;
  }

  .section-head {
    display: grid;
  }

  .program-row,
  .document-row,
  .metric-line {
    grid-template-columns: 1fr;
  }

  .form-actions {
    gap: 24px;
    margin-top: 38px;
  }

  .form-actions .primary-btn,
  .form-actions .ghost-btn {
    min-height: 66px;
    padding: 0 24px;
  }

  .inline-upload-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .readonly-grid,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 20px 18px;
  }

  .form-section-head {
    display: grid;
  }

  .application-summary div {
    padding: 26px 24px;
  }

  .program-row,
  .document-row,
  .metric-line {
    padding: 22px 18px;
  }

  .wide-panel,
  .side-panel,
  .mini-panel,
  .metric-card {
    padding: 24px;
  }

  .supplement-btn {
    width: 100%;
  }
}
