:root {
  --bg: #121b25;
  --panel: #203040;
  --panel-2: #182431;
  --ink: #f4f7f6;
  --muted: #afbbc8;
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(30, 43, 57, 0.88);
  --surface-strong: rgba(34, 49, 64, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.075);
  --table-head: rgba(33, 47, 61, 0.97);
  --table-bg: rgba(24, 36, 48, 0.88);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.11);
  --blue: #71d9ff;
  --green: #ffffff;
  --amber: #f4b24d;
  --red: #ff6b5f;
  --soft-blue: rgba(113, 217, 255, 0.12);
  --soft-green: rgba(255, 255, 255, 0.13);
  --soft-amber: rgba(244, 178, 77, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* UKP final module polish */
:root {
  --panel: #26394a;
  --panel-2: #1b2a38;
  --surface: rgba(39, 56, 72, 0.82);
  --surface-strong: rgba(43, 62, 80, 0.94);
  --line: rgba(188, 222, 242, 0.18);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(113, 217, 255, 0.2), transparent 30%),
    radial-gradient(circle at 92% 42%, rgba(244, 178, 77, 0.12), transparent 28%),
    linear-gradient(135deg, #101a24, #182838 48%, #0d131b);
}

body::after,
.login-screen::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(113, 217, 255, 0.08) 45%, transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  animation: ambientDrift 18s linear infinite;
  z-index: 0;
}

@keyframes ambientDrift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-38px, 24px, 0) rotate(0.001deg); }
}

.app,
.sidebar {
  position: relative;
  z-index: 1;
}

.panel,
.node,
.kpi,
.contact-card,
.event-card,
.career-goal-card,
.document-card {
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.panel:hover,
.contact-card:hover,
.event-card:hover,
.career-goal-card:hover,
.document-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 217, 255, 0.34);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(113, 217, 255, 0.08);
}

.notification-panel,
.birthday-panel {
  position: fixed !important;
  top: 76px !important;
  right: 24px !important;
  z-index: 50000 !important;
  width: min(560px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 100px) !important;
  overflow: auto !important;
  border: 1px solid rgba(113, 217, 255, 0.42) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(113, 217, 255, 0.28), transparent 32%),
    rgba(14, 23, 32, 0.98) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 9999px rgba(0, 0, 0, 0.38) !important;
}

.notification-bell em,
.birthday-bell em {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6b5f, #f4b24d) !important;
  color: #071018 !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 950;
}

.birthday-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(113, 217, 255, 0.14);
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
}

.maintenance-banner,
.maintenance-notice {
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(244, 178, 77, 0.42);
  border-radius: 8px;
  background: rgba(244, 178, 77, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.maintenance-banner.active,
.maintenance-notice.active {
  background: rgba(255, 107, 95, 0.14);
  border-color: rgba(255, 107, 95, 0.5);
}

.module-filters,
.project-toolbar,
.crm-filters,
.report-filters {
  align-items: end;
  gap: 10px;
}

.module-filters label,
.project-toolbar label,
.crm-filters label,
.report-filters label {
  min-width: 180px;
}

.search-corner {
  min-width: min(340px, 100%);
}

.project-search-button,
.project-filter-reset {
  min-height: 44px;
}

.document-grid,
.benefit-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.document-card {
  display: grid;
  gap: 14px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-formula-panel {
  margin-top: 14px;
}

.benefit-formula-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.payment-qr {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  width: 148px;
  height: 148px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7f6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.payment-qr i {
  border-radius: 2px;
  background: transparent;
}

.payment-qr i.on {
  background: #0c141c;
}

.payment-lines {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.payment-lines span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.payment-lines b {
  min-width: 150px;
  color: var(--ink);
}

.care-kpis {
  max-width: 50%;
}

.dashboard-unpaid {
  padding: 16px;
}

.dashboard-unpaid h2 {
  font-size: 22px;
}

.unpaid-orb {
  transform: scale(0.9);
}

.mini-progress-line span,
.ai-progress i,
.requirement-list i {
  background: linear-gradient(90deg, #79e7ff, #f4d37b) !important;
  box-shadow: 0 0 18px rgba(113, 217, 255, 0.34);
}

.promotion-proposal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}

.promotion-proposal > strong {
  color: var(--blue);
  font-size: 24px;
}

.login-screen {
  background:
    radial-gradient(circle at 20% 16%, rgba(113, 217, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(244, 178, 77, 0.16), transparent 28%),
    linear-gradient(145deg, #0a1017, #182a38 58%, #0b1118);
}

.login-visual,
.login-panel {
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] .notification-panel,
html[data-theme="light"] .birthday-panel {
  background: rgba(246, 250, 252, 0.98) !important;
  color: #14202a;
}

html[data-theme="light"] .payment-qr {
  border: 1px solid rgba(10, 20, 30, 0.12);
}

@media (max-width: 860px) {
  .care-kpis {
    max-width: none;
  }

  .payment-detail-grid,
  .promotion-proposal {
    grid-template-columns: 1fr;
  }
}

/* Refinements: intake forms, notifications and compact calendar */
.notification-bell,
.actions .notification-bell {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.bell-icon {
  width: 15px;
  height: 15px;
}

.bell-icon::before {
  width: 18px;
  bottom: -5px;
}

.bell-icon::after {
  bottom: -9px;
  width: 5px;
  height: 5px;
}

.notification-bell em {
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
}

.notification-panel {
  position: fixed;
  top: 84px;
  right: 28px;
  z-index: 12000;
  width: min(540px, calc(100vw - 34px));
  max-height: calc(100vh - 110px);
  padding: 16px;
  border-color: rgba(113, 217, 255, 0.38);
  background:
    radial-gradient(circle at 88% 0%, rgba(113, 217, 255, 0.28), transparent 34%),
    radial-gradient(circle at 6% 100%, rgba(244, 178, 77, 0.14), transparent 32%),
    rgba(13, 21, 30, 0.97);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 0 9999px rgba(0, 0, 0, 0.38);
}

.notification-list {
  max-height: calc(100vh - 220px);
}

.intake-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.intake-stats article,
.intake-detail-cover div {
  min-height: 104px;
  padding: 15px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(113, 217, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--surface);
}

.intake-stats span,
.intake-detail-cover span,
.intake-detail-group article span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.intake-stats strong,
.intake-detail-cover strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.intake-stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.form-type-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 156px;
  color: var(--ink);
  font: inherit;
  overflow: hidden;
}

.form-type-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px auto;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(113, 217, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(113, 217, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 217, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
  transform: rotate(6deg);
}

.form-card-index {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(113, 217, 255, 0.26);
  border-radius: 999px;
  background: rgba(113, 217, 255, 0.1);
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 950;
}

.form-type-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.form-type-card em {
  max-width: 620px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.form-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.form-card-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.form-type-card.locked {
  opacity: 1;
  background:
    radial-gradient(circle at 92% 10%, rgba(244, 178, 77, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.intake-detail-modal {
  width: min(1220px, 100%);
  align-self: stretch;
  overflow: auto;
}

.intake-detail-cover {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.intake-detail-group {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.intake-detail-group h3 {
  margin-bottom: 12px;
}

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

.intake-detail-group article {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.intake-detail-group article strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nowrap,
.phone-cell {
  white-space: nowrap;
}

.calendar-week-agenda {
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 8px;
}

.calendar-week-day {
  min-width: 170px;
  padding: 10px;
  border: 1px solid rgba(113, 217, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.calendar-week-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 9px;
}

.calendar-week-title strong {
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}

.calendar-week-title span {
  color: var(--muted);
  font-size: 12px;
}

.calendar-week-title em {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.14);
  color: var(--blue);
  font-style: normal;
  font-weight: 950;
}

.week-event-list {
  display: grid;
  gap: 7px;
}

.week-event-card {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.week-event-time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.week-event-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.week-event-card small,
.small-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.week-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 217, 255, 0.38);
  background: rgba(113, 217, 255, 0.12);
}

.week-event-card .table-action {
  min-height: 28px;
  padding: 5px 9px;
  margin-top: 6px;
  justify-self: start;
}

.event-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  min-height: 104px;
  padding: 12px;
}

.event-date {
  padding: 9px;
}

.event-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

.event-card p {
  margin-top: 6px;
  line-height: 1.4;
}

.event-actions {
  gap: 6px;
  margin-top: 9px;
}

.event-actions .table-action {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .intake-stats,
  .intake-detail-cover,
  .intake-detail-grid {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

:root[data-theme="light"] {
  --bg: #eef3f7;
  --panel: #ffffff;
  --panel-2: #f6f9fc;
  --ink: #0a1118;
  --muted: #596878;
  --line: rgba(8, 17, 26, 0.13);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(8, 126, 164, 0.055);
  --table-head: rgba(232, 241, 248, 0.96);
  --table-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 54px rgba(8, 17, 26, 0.09);
  --blue: #087ea4;
  --green: #0f5132;
  --amber: #a45d00;
  --red: #b42318;
  --soft-blue: rgba(8, 126, 164, 0.12);
  --soft-green: rgba(15, 81, 50, 0.1);
  --soft-amber: rgba(164, 93, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(113, 217, 255, 0.16) 0%, transparent 34%),
    linear-gradient(20deg, rgba(244, 178, 77, 0.1) 0%, transparent 24%),
    linear-gradient(135deg, #111a24 0%, #213348 48%, #101820 100%);
  color: var(--ink);
  display: grid;
  grid-template-columns: 282px 1fr;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(160deg, rgba(8, 126, 164, 0.08) 0%, transparent 34%),
    linear-gradient(20deg, rgba(244, 178, 77, 0.12) 0%, transparent 26%),
    linear-gradient(135deg, #f6f9fc 0%, #eaf1f6 52%, #ffffff 100%);
  color: var(--ink);
}

:root[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(8, 17, 26, 0.12) 1px, transparent 1px);
  opacity: 0.12;
}

:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .topbar,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .login-panel {
  background:
    linear-gradient(145deg, rgba(8, 126, 164, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(8, 17, 26, 0.12);
}

:root[data-theme="light"] .sidebar {
  box-shadow: 18px 0 60px rgba(8, 17, 26, 0.08);
}

:root[data-theme="light"] .nav button,
:root[data-theme="light"] select,
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .actions button,
:root[data-theme="light"] .file-action,
:root[data-theme="light"] .table-action {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: rgba(8, 17, 26, 0.14);
}

:root[data-theme="light"] .nav button.active,
:root[data-theme="light"] .primary {
  background: linear-gradient(135deg, #071018, #087ea4);
  color: #ffffff;
}

:root[data-theme="light"] .node,
:root[data-theme="light"] .month-chip,
:root[data-theme="light"] .bpc-card,
:root[data-theme="light"] .bpc-mini-row,
:root[data-theme="light"] .goal-choice,
:root[data-theme="light"] .flow-step,
:root[data-theme="light"] .time-card,
:root[data-theme="light"] .map-summary,
:root[data-theme="light"] .goal-output,
:root[data-theme="light"] .requirement-list div,
:root[data-theme="light"] .career-stats div,
:root[data-theme="light"] .benefit-admin-list div,
:root[data-theme="light"] .mini-progress {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(8, 17, 26, 0.12);
}

:root[data-theme="light"] .program-hero-screen,
:root[data-theme="light"] .ukp-cover,
:root[data-theme="light"] .ukp-question,
:root[data-theme="light"] .ukp-ai-showcase {
  background:
    radial-gradient(circle at 72% 14%, rgba(8, 126, 164, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff, #eaf1f6);
}

:root[data-theme="light"] .ukp-answer,
:root[data-theme="light"] .ukp-service-intro {
  background:
    radial-gradient(circle at 14% 18%, rgba(8, 126, 164, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .hero-panel,
:root[data-theme="light"] .statement-hero,
:root[data-theme="light"] .report-hero,
:root[data-theme="light"] .bpc-hero,
:root[data-theme="light"] .career-hero,
:root[data-theme="light"] .benefits-hero,
:root[data-theme="light"] .career-mini,
:root[data-theme="light"] .project-hero,
:root[data-theme="light"] .calendar-hero,
:root[data-theme="light"] .goal-stage,
:root[data-theme="light"] .map-stage,
:root[data-theme="light"] .goal-map-intro {
  background:
    radial-gradient(circle at 82% 12%, rgba(8, 126, 164, 0.13), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(244, 178, 77, 0.11), transparent 26%),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .table-shell,
:root[data-theme="light"] .calendar-board {
  background: var(--table-bg);
  border-color: rgba(8, 17, 26, 0.12);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 248, 0.96)),
    var(--table-head);
  color: #0a1118;
}

:root[data-theme="light"] td {
  color: #162330;
}

:root[data-theme="light"] tbody tr:hover {
  background: rgba(8, 126, 164, 0.055);
}

:root[data-theme="light"] tbody tr:nth-child(even) {
  background: rgba(8, 17, 26, 0.018);
}

:root[data-theme="light"] .actions {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(8, 17, 26, 0.11);
}

:root[data-theme="light"] .topbar-logo,
:root[data-theme="light"] .logo-img,
:root[data-theme="light"] .stage-logo {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .login-symbol,
:root[data-theme="light"] .statement-logo-card,
:root[data-theme="light"] .ai-card img {
  background:
    radial-gradient(circle at 70% 22%, rgba(113, 217, 255, 0.18), transparent 38%),
    #071018;
  border-color: rgba(8, 17, 26, 0.16);
}

:root[data-theme="light"] .commission-row,
:root[data-theme="light"] .leader-row,
:root[data-theme="light"] .task-card,
:root[data-theme="light"] .ai-action-card,
:root[data-theme="light"] .ai-hero-panel,
:root[data-theme="light"] .ai-current-task,
:root[data-theme="light"] .dashboard-ai-current,
:root[data-theme="light"] .ai-priority-admin-list div,
:root[data-theme="light"] .partner-activity-head div,
:root[data-theme="light"] .ai-plan-card,
:root[data-theme="light"] .ai-suggestion-list div,
:root[data-theme="light"] .ai-chat article,
:root[data-theme="light"] .contact-card,
:root[data-theme="light"] .event-card,
:root[data-theme="light"] .stage-stat,
:root[data-theme="light"] .calendar-day,
:root[data-theme="light"] .calendar-date,
:root[data-theme="light"] .event-date,
:root[data-theme="light"] .p50-profile div,
:root[data-theme="light"] .payment-summary div,
:root[data-theme="light"] .career-ladder article,
:root[data-theme="light"] .career-rule-card,
:root[data-theme="light"] .statement-logo-card,
:root[data-theme="light"] .service-form fieldset,
:root[data-theme="light"] .signature-box,
:root[data-theme="light"] .ai-card {
  background:
    linear-gradient(145deg, rgba(8, 126, 164, 0.055), transparent 46%),
    rgba(255, 255, 255, 0.76);
  border-color: rgba(8, 17, 26, 0.12);
  color: var(--ink);
}

:root[data-theme="light"] .calendar-weekdays span,
:root[data-theme="light"] .day-events span,
:root[data-theme="light"] .day-events em {
  background: rgba(8, 126, 164, 0.07);
  color: var(--ink);
}

:root[data-theme="light"] .bar-track {
  background: rgba(8, 17, 26, 0.08);
  box-shadow: inset 0 1px 4px rgba(8, 17, 26, 0.08);
}

:root[data-theme="light"] .progress-ring {
  background:
    radial-gradient(circle, #ffffff 55%, transparent 57%),
    conic-gradient(var(--blue) var(--value), rgba(8, 17, 26, 0.12) 0);
}

:root[data-theme="light"] .danger-action {
  background: rgba(255, 107, 95, 0.1);
  color: #941b12;
}

:root[data-theme="light"] .program-hero-copy p:not(.eyebrow),
:root[data-theme="light"] .cover-copy p:last-child,
:root[data-theme="light"] .service-slide p:not(.eyebrow) {
  color: var(--muted);
}

:root[data-theme="light"] .ghost-word,
:root[data-theme="light"] .question-mark {
  color: rgba(8, 17, 26, 0.055);
}

:root[data-theme="light"] .scroll-cue i {
  border-color: rgba(8, 17, 26, 0.46);
}

:root[data-theme="light"] .scroll-cue i::before {
  background: var(--ink);
}

:root[data-theme="light"] .check-row:hover,
:root[data-theme="light"] .check-row:has(input:checked) {
  background:
    linear-gradient(135deg, rgba(8, 126, 164, 0.15), rgba(255, 255, 255, 0.86));
}

:root[data-theme="light"] .panel::after,
:root[data-theme="light"] .dashboard-kpis .kpi::after {
  background-image:
    linear-gradient(rgba(8, 126, 164, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 26, 0.28) 1px, transparent 1px);
  opacity: 0.42;
}

:root[data-theme="light"] .program-hero-screen::after,
:root[data-theme="light"] .ukp-cover::after,
:root[data-theme="light"] .ukp-ai-showcase::after {
  background:
    repeating-linear-gradient(90deg, rgba(8, 17, 26, 0.08) 0 1px, transparent 1px 98px),
    repeating-linear-gradient(0deg, rgba(8, 126, 164, 0.1) 0 1px, transparent 1px 98px);
  opacity: 0.8;
}

:root[data-theme="light"] .goal-icon {
  background: rgba(8, 17, 26, 0.04);
  border-color: rgba(8, 17, 26, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.11;
  z-index: -1;
  animation: systemDrift 28s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 10%, rgba(113, 217, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 84%, rgba(244, 178, 77, 0.1), transparent 22%),
    linear-gradient(135deg, transparent 0 42%, rgba(113, 217, 255, 0.1) 42% 43%, transparent 43% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 18%),
    linear-gradient(180deg, rgba(113, 217, 255, 0.1), transparent 42%);
  opacity: 0.82;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: none;
}

.app::before,
.app::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.app::before {
  left: 282px;
  right: 0;
  top: 0;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.13), transparent);
  opacity: 0.24;
  transform: translateX(-40%);
  animation: sweepLight 8s ease-in-out infinite;
}

.app::after {
  right: 34px;
  bottom: 34px;
  width: min(620px, 38vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.54), rgba(255, 255, 255, 0.28), transparent);
  box-shadow: 0 0 42px rgba(113, 217, 255, 0.16);
}

body.locked {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.12), transparent 34%),
    #05070a;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

.loading-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: logoLoad 1.2s ease-in-out infinite;
}

.loading-card strong,
.loading-card span {
  display: block;
}

.loading-card span {
  color: var(--muted);
  font-size: 13px;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.16), transparent 30%),
    linear-gradient(215deg, rgba(244, 178, 77, 0.11), transparent 26%),
    linear-gradient(135deg, #05070a 0%, #101820 58%, #06080b 100%);
  padding: 24px;
  overflow: hidden;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-screen::before {
  inset: -20%;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.12) 45%, transparent 46% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(113, 217, 255, 0.035) 0 1px, transparent 1px 92px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
  animation: loginGridMove 18s linear infinite;
}

.login-screen::after {
  left: 8%;
  right: 8%;
  top: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.8), rgba(255, 255, 255, 0.55), transparent);
  box-shadow: 0 0 48px rgba(113, 217, 255, 0.36);
  animation: loginBeam 5.8s ease-in-out infinite;
}

.login-screen.active {
  display: grid;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 38%),
    linear-gradient(20deg, rgba(113, 217, 255, 0.14), transparent 44%),
    rgba(4, 7, 10, 0.86);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.36);
}

.login-visual::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.78), rgba(255, 255, 255, 0.64), transparent);
  box-shadow: 0 0 70px rgba(113, 217, 255, 0.34);
  transform: rotate(-8deg);
  animation: loginSweep 6.5s ease-in-out infinite;
}

.login-visual::after {
  content: "UNKNOWN PROJECTS";
  position: absolute;
  left: 34px;
  top: 26px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(58px, 9vw, 124px);
  line-height: 0.9;
  font-weight: 900;
  max-width: 720px;
}

.login-symbol {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.login-symbol img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.login-visual h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
}

.login-visual p {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.login-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.login-metrics span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(12, 18, 25, 0.96);
  border-radius: 8px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
}

.login-panel::after {
  display: none;
}

.login-brand {
  color: var(--ink);
  margin-bottom: 22px;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-error {
  min-height: 20px;
  color: var(--red);
  margin: 0;
  font-size: 13px;
}

.sidebar {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(113, 217, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022) 32%),
    rgba(10, 17, 24, 0.94);
  color: white;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.sidebar > *:not(.sidebar-ambient) {
  position: relative;
  z-index: 1;
}

.sidebar-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sidebar-ambient span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(113, 217, 255, 0.16);
  background: rgba(113, 217, 255, 0.045);
  filter: blur(0.2px);
}

.sidebar-ambient span:nth-child(1) {
  width: 180px;
  height: 180px;
  left: -86px;
  top: 90px;
}

.sidebar-ambient span:nth-child(2) {
  width: 110px;
  height: 110px;
  right: -54px;
  top: 360px;
  background: rgba(244, 178, 77, 0.04);
  border-color: rgba(244, 178, 77, 0.14);
}

.sidebar-ambient span:nth-child(3) {
  width: 220px;
  height: 1px;
  left: 30px;
  bottom: 108px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.38), transparent);
  border: 0;
  transform: rotate(-24deg);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: #ffffff;
  color: #05070a;
  font-weight: 800;
}

.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(113, 217, 255, 0.18));
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #9aa8b5;
  font-size: 13px;
  margin-top: 3px;
}

.sidebar-user {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(113, 217, 255, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.sidebar-user-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-user strong {
  color: #ffffff;
  font-size: 15px;
}

.sidebar-user small {
  color: #9aa8b5;
}

.nav {
  display: grid;
  gap: 8px;
}

button,
.file-action,
select,
input,
textarea {
  font: inherit;
}

.nav button {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 45px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent),
    rgba(255, 255, 255, 0.015);
  color: #d8e0e8;
  padding: 8px 12px 8px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav button::before {
  content: attr(data-nav-index);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: rgba(216, 224, 232, 0.74);
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.nav button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, rgba(113, 217, 255, 0.9), rgba(244, 178, 77, 0.72));
  opacity: 0;
  box-shadow: 0 0 22px rgba(113, 217, 255, 0.45);
  transition: width 160ms ease, opacity 160ms ease;
}

.nav button:hover,
.nav button.active {
  background:
    linear-gradient(90deg, rgba(113, 217, 255, 0.19), rgba(244, 178, 77, 0.055)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(113, 217, 255, 0.22);
  color: var(--green);
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.12);
}

.nav button.active::before {
  color: #071018;
  background: linear-gradient(135deg, #e7faff, var(--blue));
  border-color: rgba(255, 255, 255, 0.5);
}

.nav button.active::after {
  content: "";
  width: 3px;
  opacity: 1;
}

.app {
  min-width: 0;
  padding: 24px 28px 34px;
  position: relative;
  isolation: isolate;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.11), transparent 42%),
    rgba(13, 21, 30, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(113, 217, 255, 0.08) 38px 39px);
  opacity: 0.38;
  transform: translateX(-65%);
  animation: topbarSweep 9s ease-in-out infinite;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(113, 217, 255, 0.18));
}

.notification-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.bell-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 5px 5px;
}

.bell-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
}

.notification-bell em {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ff6b5f);
  color: #071018;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 200;
  width: min(420px, calc(100vw - 38px));
  padding: 12px;
  border: 1px solid rgba(113, 217, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 12%, rgba(113, 217, 255, 0.2), transparent 32%),
    rgba(13, 21, 30, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 480px;
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-item span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-item small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.session-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(113, 217, 255, 0.24);
  border-radius: 6px;
  background: rgba(113, 217, 255, 0.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.actions button,
.file-action,
.primary,
.table-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  min-height: 38px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.actions select {
  width: auto;
  min-width: 118px;
  font-weight: 800;
}

.actions .notification-bell {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.actions #logout {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(113, 217, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(113, 217, 255, 0.26);
}

.actions button:hover,
.file-action:hover,
.primary:hover,
.table-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.primary {
  background: linear-gradient(135deg, #ffffff, #dff6ff 48%, #71d9ff);
  border-color: rgba(255, 255, 255, 0.7);
  color: #05070a;
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(113, 217, 255, 0.16);
}

.table-action {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.danger-action {
  border-color: rgba(255, 107, 95, 0.38);
  color: #ffd5d0;
  background:
    linear-gradient(180deg, rgba(255, 107, 95, 0.15), rgba(255, 107, 95, 0.04)),
    rgba(17, 24, 32, 0.92);
}

.detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-panel {
  margin-top: 16px;
}

.detail-screen {
  min-height: calc(100vh - 120px);
}

.detail-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 26%),
    rgba(17, 24, 32, 0.88);
}

.detail-hero h2 {
  font-size: 34px;
  margin: 0;
}

.detail-actions {
  margin-top: 14px;
}

.mentee-detail-summary {
  gap: 12px;
}

.mentee-detail-summary .panel {
  min-height: auto;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.mentee-detail-summary .panel-heading {
  margin-bottom: 6px;
}

.mentee-detail-summary .panel-heading h2 {
  font-size: 16px;
}

.mentee-detail-summary p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.mentee-detail-summary + .grid {
  margin-top: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(620px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 19, 26, 0.98);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.44);
}

.modal-card.wide-modal {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
}

.fullscreen-modal-backdrop {
  z-index: 9990;
  align-items: stretch;
  justify-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 76% 12%, rgba(113, 217, 255, 0.18), transparent 30%),
    rgba(0, 0, 0, 0.78);
}

.career-goal-modal {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  align-self: stretch;
  align-content: start;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(113, 217, 255, 0.18), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(244, 178, 77, 0.1), transparent 28%),
    rgba(13, 19, 26, 0.98);
}

.ai-priority-modal {
  width: min(1080px, 100%);
  min-height: min(620px, calc(100vh - 48px));
  align-self: center;
  align-content: start;
  padding: 28px;
  background:
    radial-gradient(circle at 84% 12%, rgba(244, 178, 77, 0.14), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(113, 217, 255, 0.14), transparent 28%),
    rgba(13, 19, 26, 0.98);
}

body.modal-open {
  overflow: hidden;
}

.modal-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.modal-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

select,
input,
textarea {
  border: 1px solid rgba(113, 217, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 9, 13, 0.74);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 42px;
  width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(113, 217, 255, 0.68);
  box-shadow:
    0 0 0 3px rgba(113, 217, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.14);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.09), rgba(255, 255, 255, 0.026)),
    rgba(6, 11, 16, 0.94);
}

select:hover,
input:hover,
textarea:hover {
  border-color: rgba(113, 217, 255, 0.36);
}

textarea {
  min-height: 74px;
  resize: vertical;
}

.file-action input {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

.view > .grid + .panel,
.view > .panel + .panel,
.view > .panel + .grid,
.view > .hero-panel + .panel,
.view > .hero-panel + .grid,
.detail-screen > .grid + .panel,
.detail-screen > .panel + .panel,
.detail-screen > .panel + .grid {
  margin-top: 18px;
}

.grid > .panel,
.bpc-layout > .panel,
.dashboard-workbench > .panel,
.project-workbench > .panel {
  margin-top: 0;
}

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

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

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

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 34%),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow);
  isolation: isolate;
}

.panel::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 86px;
  height: 86px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(113, 217, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  transform: rotate(6deg);
  animation: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel:hover {
  border-color: rgba(113, 217, 255, 0.34);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 62px rgba(0, 0, 0, 0.18),
    0 0 38px rgba(113, 217, 255, 0.08);
}

.view.active .panel,
.view.active .hero-panel {
  animation: riseIn 180ms ease both;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin: 0;
}

.glow-kpi {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 30px rgba(113, 217, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.13), transparent 38%),
    linear-gradient(45deg, transparent 68%, rgba(244, 178, 77, 0.08)),
    var(--surface-strong);
}

.dashboard-hero {
  min-height: 330px;
  background:
    radial-gradient(circle at 78% 18%, rgba(113, 217, 255, 0.18), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255, 255, 255, 0.045) 74px 75px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    var(--surface-strong);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 24px;
  width: min(360px, 32vw);
  height: min(220px, 22vw);
  border: 1px solid rgba(113, 217, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-12deg);
  animation: none;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 420px;
  left: -140px;
  top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.hero-title {
  position: relative;
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.02;
  text-transform: uppercase;
}

.ai-card {
  position: relative;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 6px;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 14px;
}

.ai-card strong,
.ai-card span {
  display: block;
}

.ai-card span {
  color: var(--muted);
  margin-top: 7px;
}

.kpi {
  min-height: 112px;
}

.kpi,
.bpc-card,
.benefit-card,
.benefit-person-card,
.career-card,
.contact-card,
.event-card,
.task-card,
.commission-row,
.leader-row,
.stage-stat,
.time-card,
.goal-choice,
.flow-step {
  backdrop-filter: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.kpi:hover,
.bpc-card:hover,
.benefit-card:hover,
.benefit-person-card:hover,
.career-card:hover,
.contact-card:hover,
.event-card:hover,
.task-card:hover,
.commission-row:hover,
.leader-row:hover,
.stage-stat:hover,
.time-card:hover,
.goal-choice:hover,
.flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 217, 255, 0.42);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.18),
    0 0 34px rgba(113, 217, 255, 0.1);
}

.commissions-kpis {
  margin-bottom: 20px;
}

.dashboard-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(113, 217, 255, 0.18);
}

.dashboard-section-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-section-label strong {
  color: var(--ink);
  font-size: 13px;
}

.dashboard-section-label.historical-label {
  margin-top: 24px;
  border-bottom-color: rgba(244, 178, 77, 0.22);
}

.dashboard-kpi-section {
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.055), transparent 38%),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dashboard-kpi-section.history-production {
  border-color: rgba(244, 178, 77, 0.14);
  background:
    linear-gradient(135deg, rgba(244, 178, 77, 0.055), transparent 38%),
    rgba(255, 255, 255, 0.02);
}

.dashboard-kpis .kpi {
  min-height: 0;
  height: 88px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  padding: 13px 15px 12px;
  background:
    radial-gradient(circle at 88% 12%, rgba(113, 217, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 46%),
    var(--surface);
}

.dashboard-kpis .kpi::after {
  right: 13px;
  top: 15px;
  width: 58px;
  height: 58px;
  background-size: 14px 14px;
  opacity: 0.12;
  transform: none;
}

.dashboard-kpis .kpi::before {
  content: none;
  position: absolute;
  left: 16px;
  bottom: 10px;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 18px rgba(113, 217, 255, 0.28);
}

.dashboard-kpis .kpi span {
  min-height: auto;
  margin-bottom: 6px;
  font-size: 12px;
}

.dashboard-kpis .kpi strong {
  align-self: center;
  font-size: clamp(24px, 2.4vw, 31px);
}

.dashboard-kpis .kpi small {
  display: none;
}

.historical-kpis {
  margin-top: 0;
  margin-bottom: 0;
}

.historical-kpis .kpi {
  min-height: 0;
  height: 90px;
  padding: 14px 15px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 178, 77, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 46%),
    var(--surface);
}

.compact-kpis {
  grid-auto-rows: 88px;
  align-items: stretch;
}

.historical-kpis {
  grid-auto-rows: 90px;
}

.compact-kpis:not(.historical-kpis) .panel {
  overflow: hidden;
}

#dashboard .historical-kpis + .grid {
  margin-top: 24px !important;
}

.dashboard-unpaid {
  margin-top: 18px;
  padding: clamp(16px, 2.6vw, 24px);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 178, 77, 0.15), transparent 30%),
    radial-gradient(circle at 10% 84%, rgba(113, 217, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 48%),
    rgba(31, 42, 53, 0.9);
  border-color: rgba(244, 178, 77, 0.22);
}

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

.unpaid-head h2 {
  max-width: 780px;
  margin-bottom: 8px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1;
}

.unpaid-orb {
  width: 142px;
  min-height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(244, 178, 77, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 178, 77, 0.17), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 44px rgba(244, 178, 77, 0.08);
}

.unpaid-orb strong {
  font-size: 30px;
  line-height: 1;
}

.unpaid-orb span {
  color: var(--muted);
  font-size: 12px;
}

.unpaid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.unpaid-grid article {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.unpaid-grid span,
.unpaid-grid small,
.unpaid-flow span {
  color: var(--muted);
}

.unpaid-grid strong {
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1;
}

.unpaid-flow {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(220px, 1fr) minmax(150px, 0.22fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.unpaid-flow > div:not(.unpaid-track) {
  display: grid;
  gap: 4px;
}

.unpaid-flow strong {
  font-size: 18px;
}

.unpaid-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.16);
}

.unpaid-track i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.unpaid-track .paid {
  left: 0;
  background: linear-gradient(90deg, rgba(113, 217, 255, 0.78), rgba(218, 246, 255, 0.95));
}

.unpaid-track .pending {
  right: 0;
  background: linear-gradient(90deg, rgba(244, 178, 77, 0.66), rgba(255, 226, 170, 0.9));
}

.unpaid-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.unpaid-breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.unpaid-breakdown-head strong {
  color: var(--ink);
  font-size: 15px;
}

.unpaid-person {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(130px, auto) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.unpaid-person span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.13);
  color: var(--ink);
  font-weight: 900;
}

.unpaid-person strong,
.unpaid-person b {
  color: var(--ink);
}

.unpaid-person em {
  color: var(--muted);
  font-style: normal;
}

.year-points-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(113, 217, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 88% 14%, rgba(113, 217, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.035);
}

.year-points-head strong {
  font-size: 30px;
  line-height: 1;
}

.year-points-head span {
  color: var(--muted);
  font-size: 13px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.kpi strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.kpi small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

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

.table-shell {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--table-bg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.statement-id-cell {
  min-width: 150px;
  width: 150px;
  white-space: nowrap;
}

th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--table-head);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f8fbff;
}

tbody tr:hover {
  background: rgba(113, 217, 255, 0.035);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.green {
  color: var(--green);
  background: var(--soft-green);
}

.pill.amber {
  color: var(--amber);
  background: var(--soft-amber);
}

.pill.blue {
  color: var(--blue);
  background: var(--soft-blue);
}

.pill.red {
  color: var(--red);
  background: rgba(255, 107, 95, 0.14);
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form-grid .wide {
  grid-column: span 2;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 90px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.24);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #71d9ff);
  box-shadow: 0 0 18px rgba(113, 217, 255, 0.24);
}

.commission-chart {
  display: grid;
  gap: 14px;
}

.commission-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.month-chip {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.commission-bars {
  display: grid;
  gap: 8px;
}

.metric-bar {
  display: grid;
  grid-template-columns: 92px 1fr 110px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.metric-bar span {
  color: var(--muted);
}

.metric-bar strong {
  text-align: right;
  font-size: 12px;
}

.metric-bar.subdued {
  opacity: 0.78;
}

.bar-gross {
  background: linear-gradient(90deg, #ffffff, #71d9ff);
  box-shadow: 0 0 22px rgba(113, 217, 255, 0.22);
}

.bar-net {
  background: linear-gradient(90deg, #f4b24d, #ffffff);
  box-shadow: 0 0 20px rgba(244, 178, 77, 0.18);
}

.bar-network {
  background: linear-gradient(90deg, rgba(113, 217, 255, 0.52), rgba(255, 255, 255, 0.5));
}

.bar-network-net {
  background: linear-gradient(90deg, rgba(244, 178, 77, 0.55), rgba(255, 255, 255, 0.42));
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.028);
}

.leader-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 800;
}

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

.leader-row b {
  white-space: nowrap;
}

.crm-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.crm-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.crm-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.add-mentee-button {
  min-height: 38px;
  white-space: nowrap;
}

.filter-result {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.filter-result strong {
  color: var(--ink);
  font-size: 20px;
}

.module-filters {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.module-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.module-filters .search-corner,
.crm-filters .search-corner,
.project-toolbar .search-corner {
  order: 99;
  grid-column: -3 / -1;
  padding: 10px;
  border: 1px solid rgba(113, 217, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.12), rgba(244, 178, 77, 0.05));
}

.project-search-button {
  order: 100;
}

.module-filters .search-corner input,
.crm-filters .search-corner input,
.project-toolbar .search-corner input {
  border-color: rgba(113, 217, 255, 0.32);
}

.module-filters .table-action {
  min-height: 38px;
  white-space: nowrap;
}

.module-filters + .calendar-board,
.module-filters + .bpc-layout,
.module-filters + .panel {
  margin-top: 16px;
}

.statement-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 76% 16%, rgba(113, 217, 255, 0.16), transparent 30%),
    rgba(17, 24, 32, 0.88);
}

.statement-hero h2 {
  max-width: 780px;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}

.statement-hero img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.18));
}

.statement-logo-card {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.statement-logo-card img {
  width: 82px;
  height: 82px;
}

.report-hero {
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 16%, rgba(113, 217, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(17, 24, 32, 0.88);
}

.report-hero h2 {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.06;
  text-transform: uppercase;
}

.report-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.report-filters {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.report-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.report-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.report-scope-line {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(113, 217, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.report-summary .panel {
  display: grid;
  gap: 8px;
}

.report-summary span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.report-summary strong {
  font-size: 28px;
}

.collection-report-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(244, 178, 77, 0.3);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 178, 77, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(113, 217, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.collection-report-card h3 {
  margin: 0 0 6px;
  font-size: 30px;
}

.collection-mini-grid {
  display: grid;
  gap: 9px;
}

.collection-mini-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.collection-mini-grid strong {
  color: var(--ink);
}

.theme-switcher {
  display: grid;
  gap: 10px;
}

.theme-switcher label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.theme-switcher label.selected {
  border-color: rgba(113, 217, 255, 0.44);
  background: rgba(113, 217, 255, 0.1);
}

.theme-switcher input {
  width: auto;
  min-height: auto;
  grid-row: span 2;
}

.theme-switcher span,
.theme-switcher small {
  display: block;
}

.theme-switcher small {
  color: var(--muted);
}

.bpc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 80% 12%, rgba(113, 217, 255, 0.18), transparent 30%),
    rgba(17, 24, 32, 0.88);
}

.bpc-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.bpc-hero h2 {
  max-width: 760px;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}

.bpc-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  position: relative;
}

.bpc-actions small {
  max-width: 260px;
  color: var(--muted);
  text-align: right;
}

.bpc-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.project-hero .bpc-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bpc-summary div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.bpc-summary span,
.bpc-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.bpc-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.bpc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.bpc-layout > .panel {
  margin-top: 0;
}

.bpc-tree {
  display: grid;
  gap: 12px;
}

.bpc-branch {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bpc-branch.is-child {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(113, 217, 255, 0.16);
}

.bpc-card,
.bpc-mini-row {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bpc-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.bpc-card-number {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  text-align: left;
}

.bpc-card:hover,
.bpc-mini-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.bpc-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.14);
  color: var(--ink);
  font-weight: 900;
}

.bpc-card-main strong,
.bpc-card-main small,
.bpc-card-number strong,
.bpc-card-number small {
  display: block;
}

.bpc-card-main small,
.bpc-card-number small {
  color: var(--muted);
  margin-top: 4px;
}

.bpc-mini-chart,
.admin-stack {
  display: grid;
  gap: 12px;
}

.bpc-mini-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.bpc-mini-row > span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 900;
}

.bpc-mini-row strong,
.bpc-mini-row small {
  display: block;
}

.bpc-mini-row small {
  color: var(--muted);
  margin-top: 3px;
}

.bpc-detail-hero {
  background:
    radial-gradient(circle at 72% 12%, rgba(244, 178, 77, 0.12), transparent 28%),
    rgba(17, 24, 32, 0.9);
}

.career-hero,
.benefits-hero,
.career-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  background:
    radial-gradient(circle at 82% 16%, rgba(113, 217, 255, 0.14), transparent 30%),
    rgba(17, 24, 32, 0.88);
}

.career-hero {
  margin-top: 0;
}

.career-hero h2,
.benefits-hero h2 {
  max-width: 860px;
  font-size: 38px;
  line-height: 1.04;
  text-transform: uppercase;
}

.career-rule-card {
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.career-rule-card strong,
.career-rule-card span {
  display: block;
}

.career-rule-card strong {
  font-size: 30px;
}

.career-rule-card span {
  color: var(--muted);
  margin-top: 6px;
}

.career-ladder {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.career-ladder article {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.career-ladder span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.13);
  font-weight: 900;
}

.career-ladder strong,
.career-ladder em,
.career-ladder small {
  display: block;
}

.career-ladder strong {
  margin-top: 14px;
}

.career-ladder em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  margin-top: 6px;
}

.career-ladder small {
  color: var(--muted);
  margin-top: 10px;
}

.career-grid,
.benefit-grid,
.benefit-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.career-goal-form {
  margin-bottom: 16px;
}

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

.career-goal-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(113, 217, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.career-goal-card .table-action {
  width: fit-content;
}

.career-goal-card > div:first-child {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.career-goal-card strong,
.career-goal-card small {
  display: block;
}

.career-goal-card small {
  color: var(--muted);
}

.career-goal-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.career-goal-numbers span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.career-goal-numbers b {
  display: block;
  color: var(--ink);
}

.career-card-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.career-card-milestones span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(244, 178, 77, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 178, 77, 0.11), rgba(113, 217, 255, 0.045));
}

.career-card-milestones strong,
.career-card-milestones small {
  display: block;
}

.career-plan-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.career-plan-section {
  display: grid;
  gap: 14px;
}

.career-plan-section h3 {
  margin: 0;
}

.career-goal-preview {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(113, 217, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 8%, rgba(113, 217, 255, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.career-preview-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.career-preview-head > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.16);
  border: 1px solid rgba(113, 217, 255, 0.32);
  font-weight: 950;
}

.career-preview-head strong,
.career-preview-head small {
  display: block;
}

.career-preview-head small,
.career-daily-route small,
.career-path-timeline small,
.career-path-timeline em {
  color: var(--muted);
}

.career-preview-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.career-preview-numbers span,
.career-daily-route,
.career-path-timeline div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.career-preview-numbers b {
  display: block;
  color: var(--ink);
}

.career-daily-route {
  display: grid;
  gap: 6px;
}

.career-daily-route p {
  margin: 0;
}

.career-path-timeline {
  display: grid;
  gap: 9px;
}

.career-path-timeline div {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.career-path-timeline div::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}

.career-path-timeline span {
  color: var(--blue);
  font-weight: 950;
  font-size: 12px;
}

.career-card,
.benefit-card,
.benefit-person-card {
  display: grid;
  gap: 16px;
}

.career-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.career-card-head strong,
.career-card-head small {
  display: block;
}

.career-card-head small {
  color: var(--muted);
  margin-top: 4px;
}

.career-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.career-stats div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.career-stats span,
.career-stats strong {
  display: block;
}

.career-stats span {
  color: var(--muted);
  font-size: 12px;
}

.career-stats strong {
  margin-top: 6px;
}

.progress-ring {
  --value: 0%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #0d131a 55%, transparent 57%),
    conic-gradient(var(--blue) var(--value), rgba(255, 255, 255, 0.12) 0);
}

.progress-ring strong,
.progress-ring span {
  grid-area: 1 / 1;
}

.progress-ring strong {
  font-size: 20px;
}

.progress-ring span {
  transform: translateY(20px);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.career-missing {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.career-missing strong {
  color: var(--ink);
}

.requirement-list {
  display: grid;
  gap: 10px;
}

.requirement-list > strong {
  display: block;
}

.requirement-list div {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.requirement-list div span,
.requirement-list div b,
.requirement-list div small {
  position: relative;
  display: block;
  z-index: 1;
}

.requirement-list div span,
.requirement-list div small {
  color: var(--muted);
  font-size: 12px;
}

.requirement-list div i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
}

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

.benefit-card .requirement-list {
  grid-column: 1 / -1;
}

.benefit-admin-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.benefit-admin-cta h2,
.benefit-admin-cta p {
  margin-bottom: 4px;
}

.benefit-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.benefit-admin-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.benefit-admin-list strong,
.benefit-admin-list small {
  display: block;
}

.benefit-admin-list small {
  color: var(--muted);
  margin-top: 3px;
}

.section-divider {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.section-divider.compact {
  margin-top: 10px;
}

.section-divider span {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.section-divider p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.small-ring {
  width: 78px;
  height: 78px;
}

.mini-benefits {
  display: grid;
  gap: 9px;
}

.mini-progress {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-progress span,
.mini-progress b,
.mini-progress small {
  position: relative;
  z-index: 1;
}

.mini-progress span,
.mini-progress small {
  color: var(--muted);
  font-size: 12px;
}

.mini-progress small {
  grid-column: 1 / -1;
}

.mini-progress i {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--blue);
}

.admin-stack details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-stack summary {
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.network {
  display: grid;
  gap: 8px;
}

.node {
  border-left: 3px solid var(--blue);
  padding: 8px 10px;
  background: #0d131a;
  border-radius: 4px;
}

.node.child {
  margin-left: 24px;
  border-left-color: var(--green);
}

.presentation-show {
  display: grid;
  gap: 18px;
  scroll-snap-type: none;
  position: relative;
}

.presentation-show > .panel {
  scroll-snap-align: none;
}

#presentation .presentation-show > .panel::after,
#presentation > .panel::after {
  animation: driftGrid 22s linear infinite;
  opacity: 0.16;
}

#presentation .panel {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

#presentation .goal-choice::after,
#presentation .flow-step::after,
#presentation .story-card::before,
#presentation .floating-goals,
#presentation .ai-orbit,
#presentation .service-stage::after {
  animation: none;
}

.presentation-show:fullscreen {
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(113, 217, 255, 0.08), transparent 34%),
    #05070a;
}

#presentation:fullscreen {
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(113, 217, 255, 0.08), transparent 34%),
    #05070a;
}

#presentation:fullscreen .presentation-show > .panel,
#presentation:fullscreen > .panel {
  min-height: calc(100vh - 36px);
  margin-bottom: 16px;
}

.program-hero-screen,
.ukp-cover,
.ukp-question,
.ukp-answer,
.ukp-ai-showcase,
.ukp-service-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.program-hero-screen::after,
.ukp-cover::after,
.ukp-ai-showcase::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 98px),
    repeating-linear-gradient(0deg, rgba(113, 217, 255, 0.035) 0 1px, transparent 1px 98px);
  animation: loginGridMove 24s linear infinite;
}

.program-hero-screen {
  min-height: min(820px, calc(100vh - 120px));
  display: grid;
  align-content: space-between;
  gap: 30px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 35%),
    radial-gradient(circle at 76% 28%, rgba(113, 217, 255, 0.16), transparent 30%),
    #05070a;
}

.program-hero-screen::before {
  content: "";
  position: absolute;
  inset: 34px 8% auto 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.72), rgba(255, 255, 255, 0.58), transparent);
  box-shadow: 0 0 54px rgba(113, 217, 255, 0.22);
}

.program-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding-top: 86px;
}

.program-hero-copy h2 {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: clamp(46px, 8vw, 118px);
  line-height: 0.9;
  text-transform: uppercase;
}

.program-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(244, 247, 246, 0.78);
  font-size: 19px;
  line-height: 1.55;
}

.program-action-row,
.program-proof-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.program-proof-strip {
  margin-top: 0;
}

.program-proof-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.ukp-cover {
  min-height: min(760px, calc(100vh - 120px));
  display: grid;
  align-content: space-between;
  padding: 34px;
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(113, 217, 255, 0.08), transparent 24%),
    #05070a;
}

.ukp-cover::before,
.ukp-answer::before {
  content: "";
  position: absolute;
  width: 980px;
  height: 520px;
  left: -180px;
  top: 88px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-11deg);
  pointer-events: none;
}

.brand-mark {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
}

.cover-copy {
  position: relative;
  max-width: 920px;
  padding-top: 160px;
}

.cover-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.cover-copy p:last-child {
  max-width: 780px;
  color: rgba(244, 247, 246, 0.76);
  font-size: 19px;
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 28px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  position: relative;
}

.scroll-cue i::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.ukp-question {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #05070a;
}

.ukp-question h2 {
  font-size: clamp(54px, 10vw, 148px);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

.question-mark {
  position: absolute;
  right: 9%;
  bottom: -42px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 260px;
  font-weight: 900;
  line-height: 1;
}

.ukp-answer,
.ukp-service-intro {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.11), transparent 28%),
    rgba(17, 24, 32, 0.9);
}

.ukp-service-intro {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  min-height: 620px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  padding: clamp(26px, 4vw, 58px);
  background:
    radial-gradient(circle at 82% 16%, rgba(113, 217, 255, 0.18), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(244, 178, 77, 0.11), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    rgba(17, 24, 32, 0.94);
}

.ukp-service-intro p {
  line-height: 1.65;
}

.ukp-answer h2,
.ukp-ai-showcase h2,
.ukp-service-intro h2 {
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  max-width: 680px;
  margin: 0;
}

.service-title-block {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-width: 0;
}

.service-signal {
  width: min(100%, 340px);
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(113, 217, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(113, 217, 255, 0.08) 0 1px, transparent 1px 22px),
    rgba(255, 255, 255, 0.045);
}

.service-signal span {
  color: var(--blue);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.service-signal strong {
  font-size: 24px;
}

.service-signal small {
  color: var(--muted);
}

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

.service-copy-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(113, 217, 255, 0.13), transparent 30%),
    rgba(255, 255, 255, 0.045);
}

.service-copy-grid article span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #071018;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #e8fbff, var(--blue));
}

.service-copy-grid article strong {
  font-size: 18px;
}

.service-copy-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.program-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.program-steps article {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.program-steps span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(113, 217, 255, 0.22);
  background: rgba(113, 217, 255, 0.1);
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 28px;
}

.program-steps strong,
.program-steps p {
  display: block;
}

.program-steps p {
  color: var(--muted);
}

.ghost-word.small {
  font-size: 96px;
  right: 16px;
}

.ukp-ai-showcase {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 22% 50%, rgba(113, 217, 255, 0.14), transparent 32%),
    #05070a;
}

.ai-orbit {
  min-height: 360px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  animation: slowPulse 7s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 50%, rgba(113, 217, 255, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.ai-orbit span {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 12px;
  font-weight: 900;
}

.ai-orbit span:nth-child(1) { left: 12%; top: 16%; }
.ai-orbit span:nth-child(2) { right: 14%; top: 18%; }
.ai-orbit span:nth-child(3) { left: 42%; top: 46%; }
.ai-orbit span:nth-child(4) { left: 7%; bottom: 18%; }
.ai-orbit span:nth-child(5) { right: 18%; bottom: 14%; }
.ai-orbit span:nth-child(6) { right: 4%; top: 48%; }

.service-deck {
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.14), transparent 30%),
    rgba(8, 11, 15, 0.92);
}

.slide-shell {
  position: relative;
  min-height: 430px;
}

.service-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 38px;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.service-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.service-slide > span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 112px;
  font-weight: 900;
  line-height: 0.9;
}

.service-slide h2 {
  max-width: 900px;
  font-size: 58px;
  line-height: 1;
  text-transform: uppercase;
}

.service-slide p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.deck-controls button,
.deck-dots button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  min-height: 36px;
  padding: 8px 12px;
  cursor: pointer;
}

.deck-dots {
  display: flex;
  gap: 8px;
}

.deck-dots button.active {
  background: var(--ink);
  color: #05070a;
}

.service-stage {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 75% 18%, rgba(113, 217, 255, 0.16), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(17, 24, 32, 0.78));
}

.service-stage::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
}

.service-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: sweepLine 4s ease-in-out infinite;
}

.stage-title {
  position: relative;
  max-width: 760px;
  font-size: 42px;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 54px 0 20px;
}

.stage-logo {
  position: relative;
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 14px 26px rgba(113, 217, 255, 0.2));
}

.ai-card.mini {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(280px, calc(100% - 36px));
}

.stage-title.compact {
  margin: 0;
  font-size: 38px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.ghost-word {
  position: absolute;
  right: -18px;
  bottom: -26px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 118px;
  line-height: 1;
  font-weight: 900;
}

.presentation-path {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.story-card {
  min-height: 260px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.1), transparent 28%),
    rgba(17, 24, 32, 0.86);
}

.story-card::before {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: slowPulse 5.5s ease-in-out infinite;
}

.story-card > span {
  color: rgba(255, 255, 255, 0.14);
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
}

.story-card h2 {
  max-width: 760px;
  font-size: 36px;
  line-height: 1.05;
  text-transform: uppercase;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 18px;
}

.goal-stage,
.map-stage,
.goal-map-intro {
  min-height: min(760px, calc(100vh - 120px));
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 82% 12%, rgba(113, 217, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 48%),
    var(--surface-strong);
}

.goal-map-intro {
  min-height: min(520px, calc(100vh - 160px));
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: 22px;
  align-items: center;
}

.goal-map-intro h2 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 106px);
  line-height: 0.9;
  text-transform: uppercase;
}

.floating-goals {
  min-height: 300px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(113, 217, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
  animation: slowPulse 7s ease-in-out infinite;
}

.floating-goals span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 12px;
  font-weight: 900;
}

.floating-goals span:nth-child(1) { left: 9%; top: 18%; }
.floating-goals span:nth-child(2) { right: 8%; top: 16%; }
.floating-goals span:nth-child(3) { left: 34%; top: 46%; }
.floating-goals span:nth-child(4) { left: 7%; bottom: 17%; }
.floating-goals span:nth-child(5) { right: 12%; bottom: 16%; }

.goal-stage .panel-heading h2,
.map-stage .panel-heading h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
  text-transform: uppercase;
}

.goal-choice,
.flow-step {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  width: 100%;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.goal-choice::after,
.flow-step::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(113, 217, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
  animation: slowPulse 6s ease-in-out infinite;
}

.flow-step {
  min-height: 132px;
}

.goal-choice {
  height: 100%;
  min-height: 248px;
  display: grid;
  grid-template-rows: auto auto auto minmax(58px, auto) auto auto;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(113, 217, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.goal-choice small {
  display: inline-flex;
  align-self: end;
  margin-top: 0;
  padding-top: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.goal-index {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 900;
}

.goal-detail {
  max-height: 0;
  overflow: hidden;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(113, 217, 255, 0);
  border-radius: 8px;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease, border-color 180ms ease;
}

.goal-detail b {
  color: var(--ink);
  font-size: 13px;
}

.goal-detail em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.goal-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border: 1px solid rgba(113, 217, 255, 0.28);
  border-radius: 50%;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  justify-self: start;
  background:
    radial-gradient(circle at 50% 50%, rgba(113, 217, 255, 0.2), transparent 62%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.goal-choice:hover,
.flow-step:hover,
.goal-choice.selected,
.flow-step.selected {
  transform: translateY(-2px);
  border-color: rgba(113, 217, 255, 0.52);
  background:
    radial-gradient(circle at 78% 18%, rgba(113, 217, 255, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(113, 217, 255, 0.09);
}

.goal-choice.selected {
  min-height: 314px;
}

.goal-choice.selected .goal-detail {
  max-height: 96px;
  border-color: rgba(113, 217, 255, 0.18);
  padding: 11px 12px;
  opacity: 1;
  transform: translateY(0);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.045);
}

.goal-choice > span:not(.goal-icon):not(.goal-index),
.flow-step span,
.goal-output span {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}

.goal-choice > span:not(.goal-icon):not(.goal-index) {
  min-height: 66px;
  line-height: 1.45;
}

.goal-output {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.map-builder {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.map-summary {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 86% 12%, rgba(113, 217, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.map-summary strong,
.map-summary span {
  display: block;
}

.map-continue {
  width: 100%;
  margin-top: 12px;
}

.time-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
}

.time-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 0.72fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(113, 217, 255, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.time-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 217, 255, 0.34);
}

.time-period {
  display: grid;
  align-content: center;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.time-goal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.time-card strong {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.time-card strong span {
  color: var(--muted);
  font-size: 12px;
}

.time-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin: 4px 0 12px;
}

.check-row,
.consent-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 13px;
}

.check-row {
  min-height: 32px;
  margin-top: 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.check-row:hover,
.check-row:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(113, 217, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: 0 12px 28px rgba(113, 217, 255, 0.08);
}

.time-goal-menu .check-row {
  position: relative;
  overflow: hidden;
  padding: 9px 13px;
}

.time-goal-menu .check-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.time-goal-menu .check-row:has(input:checked) {
  color: var(--ink);
  border-color: rgba(113, 217, 255, 0.62);
  background:
    radial-gradient(circle at 20% 50%, rgba(218, 246, 255, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(113, 217, 255, 0.24), rgba(244, 178, 77, 0.08));
  box-shadow:
    0 0 0 1px rgba(113, 217, 255, 0.14),
    0 14px 34px rgba(113, 217, 255, 0.14);
}

.time-goal-menu .check-row:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-110%);
  animation: shimmer 2.6s ease-in-out infinite;
  pointer-events: none;
}

.check-row input:checked + span {
  color: var(--ink);
  font-weight: 900;
}

.check-row input,
.consent-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.service-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.service-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.form-recommendation {
  display: grid;
  gap: 6px;
  margin: 14px 0 16px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(113, 217, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.form-recommendation span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-recommendation strong {
  color: var(--ink);
  font-size: 24px;
}

.form-recommendation p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.recommendation-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.recommendation-choice button {
  min-height: 34px;
}

.goal-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.goal-detail-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.03);
}

.goal-detail-card[hidden] {
  display: none;
}

.goal-detail-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.goal-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goal-option-chip {
  border: 1px solid rgba(113, 217, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.13), transparent 52%),
    rgba(255, 255, 255, 0.045);
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.goal-option-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 217, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.2), transparent 52%),
    rgba(255, 255, 255, 0.07);
}

.range-field {
  align-content: start;
}

.range-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.range-title b {
  color: var(--ink);
}

.range-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0;
  color: var(--muted);
  font-size: 10px;
}

.range-scale i {
  font-style: normal;
  text-align: center;
}

input[type="range"] {
  padding: 0;
}

.node span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.signature-box {
  min-height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 90% 14%, rgba(113, 217, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.signing-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(113, 217, 255, 0.18), transparent 30%),
    radial-gradient(circle at 14% 88%, rgba(244, 178, 77, 0.1), transparent 28%),
    var(--surface-strong);
}

.signature-pulse {
  width: 154px;
  min-height: 154px;
  border: 1px solid rgba(113, 217, 255, 0.22);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(113, 217, 255, 0.08) 0 1px, transparent 1px 18px),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 38px rgba(113, 217, 255, 0.08);
}

.signature-pulse span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.signature-pulse strong {
  font-size: 42px;
  line-height: 1;
}

.signature-pulse small {
  color: var(--muted);
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.payment-summary div,
.next-step-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.payment-summary span,
.payment-summary strong,
.next-step-card strong,
.next-step-card span {
  display: block;
}

.payment-summary span,
.next-step-card span {
  color: var(--muted);
  font-size: 13px;
}

.payment-summary strong {
  margin-top: 7px;
  font-size: 22px;
}

.project-hero,
.calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(113, 217, 255, 0.1), transparent 25%),
    rgba(17, 24, 32, 0.88);
}

.project-hero h2,
.calendar-hero h2 {
  max-width: 840px;
  font-size: 38px;
  line-height: 1.04;
  text-transform: uppercase;
}

.project-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0;
  align-items: end;
}

.project-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.project-filter-reset,
.project-search-button {
  align-self: end;
  min-height: 42px;
}

.project-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stage-stat {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 12%, rgba(113, 217, 255, 0.1), transparent 34%),
    rgba(17, 24, 32, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.stage-stat.active,
.stage-stat:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.stage-stat span,
.stage-stat strong {
  display: block;
}

.stage-stat span {
  color: var(--muted);
  font-size: 12px;
}

.stage-stat strong {
  margin-top: 10px;
  font-size: 30px;
}

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

.project-workbench,
.dashboard-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  margin: 16px 0;
}

.dashboard-workbench {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

#dashboard .dashboard-workbench {
  margin-bottom: 18px;
}

.dashboard-career-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.38fr) auto auto;
  gap: 14px;
  align-items: center;
  margin: 4px 0 22px;
  min-height: 138px;
  border-color: rgba(113, 217, 255, 0.38);
  background:
    radial-gradient(circle at 88% 20%, rgba(113, 217, 255, 0.28), transparent 32%),
    radial-gradient(circle at 14% 85%, rgba(244, 178, 77, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-career-mini h3,
.dashboard-career-mini p {
  margin: 0;
}

.dashboard-career-mini h3 {
  font-size: 26px;
  line-height: 1.05;
}

.dashboard-career-mini > strong {
  font-size: 28px;
}

.mini-progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 18px rgba(113, 217, 255, 0.28);
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.workbench-head p {
  margin: 0;
}

.task-list,
.ai-suggestion-list {
  display: grid;
  gap: 10px;
}

.p50-ai-linked {
  display: grid;
  gap: 12px;
}

.p50-single-ai {
  margin-top: 0;
}

.task-card,
.ai-suggestion-list div {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.038);
}

.task-card {
  display: grid;
  gap: 9px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 217, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.052);
}

.task-card.done {
  opacity: 0.68;
}

.dashboard-workbench .task-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.task-card h3 {
  margin: 0;
}

.task-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.task-card p {
  margin: 0;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-suggestion-list div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ai-suggestion-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(113, 217, 255, 0.16));
  border: 1px solid rgba(113, 217, 255, 0.22);
  font-weight: 900;
}

.ai-suggestion-list p {
  margin: 0;
  color: var(--muted);
}

.ai-workspace {
  display: grid;
  gap: 16px;
}

.ai-hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(113, 217, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.ai-hero-panel h2,
.ai-hero-panel p {
  margin: 0;
}

.ai-chat-launcher {
  width: 128px;
  min-height: 110px;
  flex: 0 0 128px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid rgba(113, 217, 255, 0.26);
  border-radius: 8px;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(113, 217, 255, 0.18), rgba(255, 255, 255, 0.045));
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ai-chat-launcher:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 217, 255, 0.55);
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(113, 217, 255, 0.25), rgba(255, 255, 255, 0.06));
}

.ai-chat-launcher span,
.ai-chat-launcher small {
  color: var(--muted);
  font-weight: 800;
}

.ai-chat-launcher strong {
  font-size: 24px;
}

.ai-source-row,
.ai-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-source-row span,
.ai-current-meta span {
  border: 1px solid rgba(113, 217, 255, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--ink);
  background: rgba(113, 217, 255, 0.09);
  font-weight: 850;
}

.ai-current-task {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  min-height: 460px;
  padding: 30px;
  border: 1px solid rgba(113, 217, 255, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 12%, rgba(113, 217, 255, 0.34), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(244, 178, 77, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-current-task::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -12%;
  width: 54%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(113, 217, 255, 0.13), transparent);
  transform: rotate(13deg);
  animation: topbarSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.ai-current-task > * {
  position: relative;
  z-index: 1;
}

.ai-current-task.done {
  grid-template-columns: 1fr;
}

.ai-current-task.rhythm-task {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: 540px;
  border-color: rgba(244, 178, 77, 0.44);
  background:
    radial-gradient(circle at 86% 16%, rgba(244, 178, 77, 0.24), transparent 34%),
    radial-gradient(circle at 6% 94%, rgba(113, 217, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.ai-current-main,
.ai-current-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.ai-current-title {
  display: grid;
  gap: 6px;
}

.ai-current-title span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(244, 178, 77, 0.14);
  border: 1px solid rgba(244, 178, 77, 0.26);
  color: var(--ink);
  font-weight: 950;
}

.ai-current-task h2,
.ai-current-task p {
  margin: 0;
}

.ai-current-form {
  padding: 14px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.075), transparent 56%),
    rgba(0, 0, 0, 0.16);
}

.ai-current-decision {
  min-height: 310px;
  align-content: center;
}

.ai-current-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.ai-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ai-current-actions.three-actions button {
  flex: 1 1 130px;
}

.rhythm-feedback-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.rhythm-feedback-form label.wide,
.rhythm-feedback-form .modal-actions,
.rhythm-feedback-form .ai-progress,
.rhythm-feedback-form small {
  grid-column: 1 / -1;
}

.rhythm-feedback-form textarea {
  min-height: 86px;
}

.rhythm-feedback-form .modal-actions {
  margin-top: 4px;
}

.process-action {
  border-color: rgba(244, 178, 77, 0.42);
  background:
    linear-gradient(135deg, rgba(244, 178, 77, 0.13), rgba(255, 255, 255, 0.04));
}

.priority-action {
  border-color: rgba(244, 178, 77, 0.38);
  color: var(--ink);
}

.ai-rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 260px;
  gap: 12px;
}

.ai-rhythm-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(113, 217, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 15%, rgba(113, 217, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.ai-rhythm-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ai-rhythm-snapshot div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-rhythm-snapshot span,
.ai-rhythm-snapshot small {
  color: var(--muted);
}

.ai-rhythm-modal {
  min-height: min(780px, 90vh);
}

.ai-rhythm-main,
.ai-rhythm-card {
  padding: 16px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028));
}

.ai-feedback-list {
  display: grid;
  gap: 9px;
}

.ai-feedback-list div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-feedback-list span,
.ai-feedback-list small,
.ai-rhythm-card p {
  color: var(--muted);
}

.ai-feedback-history {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 178, 77, 0.18);
}

.ai-feedback-history > strong {
  color: var(--ink);
}

.ai-feedback-history div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(244, 178, 77, 0.14);
  border-radius: 8px;
  background: rgba(244, 178, 77, 0.055);
}

.ai-feedback-history span {
  font-weight: 900;
  color: var(--ink);
}

.ai-feedback-history small {
  color: var(--muted);
}

.ai-rhythm-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ai-rhythm-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-rhythm-card strong {
  font-size: 22px;
}

.ai-rhythm-card.active {
  border-color: rgba(244, 178, 77, 0.42);
  box-shadow: 0 16px 44px rgba(244, 178, 77, 0.08);
}

.ai-learning-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(244, 178, 77, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 178, 77, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.ai-learning-compact div {
  display: grid;
  gap: 4px;
}

.ai-learning-compact strong {
  font-size: 32px;
}

.ai-learning-modal {
  width: min(1220px, 100%);
  align-self: stretch;
}

.ai-learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.ai-learning-questions,
.ai-learning-history {
  display: grid;
  gap: 12px;
}

.ai-learning-card,
.ai-learning-history div {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.aiLearningAnswerForm .wide,
.aiLearningAnswerForm .modal-actions {
  grid-column: 1 / -1;
}

.ai-task-error {
  margin: 0;
  border: 1px solid rgba(255, 107, 95, 0.34);
  border-radius: 8px;
  padding: 10px;
  color: #ffd7d2;
  background: rgba(255, 107, 95, 0.12);
  font-weight: 850;
}

.ai-task-result-modal {
  max-width: 720px;
  background:
    radial-gradient(circle at 82% 12%, rgba(113, 217, 255, 0.18), transparent 32%),
    var(--surface-strong);
}

.ai-task-result-modal label[hidden] {
  display: none;
}

.ai-priority-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ai-priority-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.ai-priority-compact p {
  margin: 0;
}

.ai-priority-admin-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(244, 178, 77, 0.22);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(244, 178, 77, 0.09), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.ai-priority-admin-list span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-ai-current {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  border: 1px solid rgba(113, 217, 255, 0.38);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(113, 217, 255, 0.25), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(244, 178, 77, 0.1), transparent 26%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

button.dashboard-ai-current {
  width: 100%;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.dashboard-ai-current > span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(244, 178, 77, 0.14);
  border: 1px solid rgba(244, 178, 77, 0.24);
  font-weight: 950;
}

.dashboard-ai-current p {
  margin: 0;
}

.partner-activity-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.partner-activity-head div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.partner-activity-head span {
  color: var(--muted);
  font-weight: 800;
}

.partner-activity-head button {
  align-self: center;
  min-height: 44px;
}

.partner-activity-table {
  max-height: 360px;
  overflow: auto;
}

.ai-progress.big {
  max-width: 520px;
}

.ai-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.ai-plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.05), transparent 48%),
    rgba(255, 255, 255, 0.028);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.ai-plan-card.wide {
  grid-column: 1 / -1;
}

.ai-plan-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-plan-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(113, 217, 255, 0.13);
  border: 1px solid rgba(113, 217, 255, 0.24);
  font-weight: 950;
}

.ai-plan-head strong,
.ai-plan-head small {
  display: block;
}

.ai-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(244, 178, 77, 0.9));
}

.ai-mini-contact-list,
.ai-priority-stack {
  display: grid;
  gap: 9px;
}

.ai-mini-contact-list div,
.ai-priority-stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.ai-priority-stack.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-priority-stack div {
  grid-template-columns: minmax(0, 1fr);
}

.ai-mini-contact-list span,
.ai-priority-stack strong {
  font-weight: 900;
}

.ai-mini-contact-list span,
.ai-mini-contact-list small {
  grid-column: 1;
}

.ai-mini-contact-list button {
  grid-row: 1 / span 2;
}

.ai-mini-contact-list small,
.ai-priority-stack p {
  color: var(--muted);
  margin: 0;
}

.ai-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-primary {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.ai-chat-modal {
  max-height: min(86vh, 860px);
  overflow: auto;
}

.ai-chat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-quick-prompts {
  margin-top: 12px;
}

.dashboard-ai-link {
  margin-top: 12px;
}

.ai-filter-bar {
  margin-bottom: 12px;
}

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

.ai-action-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 10%, rgba(113, 217, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ai-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 217, 255, 0.38);
  background:
    radial-gradient(circle at 82% 10%, rgba(113, 217, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.ai-action-card.urgent {
  border-color: rgba(244, 178, 77, 0.32);
}

.ai-action-card div,
.ai-action-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ai-action-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(113, 217, 255, 0.12);
  border: 1px solid rgba(113, 217, 255, 0.22);
  color: var(--ink);
  font-weight: 900;
}

.ai-action-card small,
.ai-action-card em,
.ai-action-card p {
  color: var(--muted);
}

.ai-action-card h3,
.ai-action-card p {
  margin: 0;
}

.ai-action-card footer {
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.ai-prompt-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ai-prompt-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.ai-suggest-button {
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.ai-chat {
  display: grid;
  gap: 12px;
}

.ai-chat article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.ai-chat p {
  margin: 0 0 10px;
}

.ai-chat pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.ai-chat small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.contact-card,
.event-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.86);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-card {
  cursor: pointer;
  display: grid;
  gap: 9px;
  min-height: 270px;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.contact-card strong,
.contact-card small,
.contact-card span,
.contact-card em {
  display: block;
}

.contact-card .bpc-avatar {
  display: grid;
  place-items: center;
  color: var(--ink);
  line-height: 1;
}

.contact-card small,
.contact-card span,
.contact-card em {
  color: var(--muted);
  font-style: normal;
}

.contact-meta {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 9px;
}

.contact-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p50-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.p50-profile div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.p50-profile span,
.p50-profile strong {
  display: block;
}

.p50-profile span {
  color: var(--muted);
  font-size: 12px;
}

.p50-profile strong {
  margin-top: 6px;
}

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

.repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.add-repeat {
  width: fit-content;
}

.problem-flow,
.problem-statements,
.form-type-grid {
  display: grid;
  gap: 12px;
}

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

.problem-flow div,
.problem-statements article,
.form-type-card {
  padding: 13px;
  border: 1px solid rgba(113, 217, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.problem-flow span,
.problem-statements span,
.form-type-card span {
  color: var(--muted);
}

.form-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 84% 12%, rgba(113, 217, 255, 0.18), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(244, 178, 77, 0.12), transparent 28%),
    var(--surface-strong);
}

.form-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.form-type-card {
  text-align: left;
  min-height: 110px;
}

.form-type-card.active {
  border-color: rgba(113, 217, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(113, 217, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.form-type-card.locked {
  opacity: 0.72;
}

.intake-modal {
  width: min(1220px, 100%);
  align-self: stretch;
}

.scale-field span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.project-detail-hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(113, 217, 255, 0.15), transparent 30%),
    rgba(17, 24, 32, 0.9);
}

.next-step-card {
  display: grid;
  gap: 10px;
}

.calendar-date {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.calendar-date strong,
.calendar-date span {
  display: block;
}

.calendar-date strong {
  font-size: 24px;
  text-transform: capitalize;
}

.calendar-date span {
  color: var(--muted);
  margin-top: 5px;
}

.calendar-board {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 24, 32, 0.78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.16);
}

.calendar-view-switch {
  display: flex;
  gap: 8px;
  align-items: end;
}

.calendar-view-switch .active {
  border-color: rgba(113, 217, 255, 0.44);
  background: rgba(113, 217, 255, 0.15);
}

.calendar-agenda {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(113, 217, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 12%, rgba(113, 217, 255, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

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

.calendar-agenda-head strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(113, 217, 255, 0.16);
  color: var(--ink);
  font-size: 24px;
}

.calendar-week-agenda {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  margin-top: 16px;
}

.calendar-week-day {
  min-width: 220px;
}

.calendar-week-day h3 {
  margin-bottom: 8px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 146px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.04), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.muted-day {
  background: rgba(255, 255, 255, 0.012);
}

.calendar-day.today {
  outline: 1px solid rgba(113, 217, 255, 0.7);
  outline-offset: -2px;
}

.calendar-day.has-events {
  background:
    radial-gradient(circle at 80% 12%, rgba(113, 217, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

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

.day-head strong {
  font-size: 18px;
}

.day-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.day-events {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.day-events span,
.day-events em {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-events em {
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  min-height: 138px;
  cursor: default;
}

.event-date {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.event-date strong,
.event-date span,
.event-card small {
  display: block;
}

.event-date strong {
  font-size: 14px;
}

.event-date span,
.event-card small {
  color: var(--muted);
  margin-top: 5px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.event-actions .table-action {
  min-height: 32px;
  padding: 6px 10px;
}

.calendar-list-panel {
  margin-top: 16px;
}

.calendar-list-head,
.calendar-list-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-list-switch .active,
.calendar-view-switch .active {
  border-color: rgba(113, 217, 255, 0.62);
  background: rgba(113, 217, 255, 0.16);
  color: var(--ink);
}

.calendar-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.compact-event-card {
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 0;
  padding: 12px;
}

.compact-event-card .event-date {
  padding: 10px;
}

.compact-event-card h3 {
  font-size: 17px;
  line-height: 1.1;
}

.event-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.event-card:hover .event-note,
.compact-event-card:focus-within .event-note {
  -webkit-line-clamp: unset;
}

.event-card:hover {
  background:
    radial-gradient(circle at 85% 16%, rgba(113, 217, 255, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.075);
}

.empty-event-state {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
}

.password-tools {
  display: grid;
  align-content: end;
  gap: 6px;
  color: var(--muted);
}

.password-tools small {
  line-height: 1.35;
}

.intake-source-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 178, 77, 0.28);
  border-radius: 8px;
  background: rgba(244, 178, 77, 0.07);
}

.intake-source-note strong {
  color: var(--ink);
}

.intake-source-note span {
  color: var(--muted);
}

.bug-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.bug-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 107, 95, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.035);
}

.bug-card h3 {
  margin: 0;
}

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

.bug-card img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.statement-hero,
.report-hero,
.bpc-hero,
.career-hero,
.benefits-hero,
.career-mini,
.project-hero,
.calendar-hero,
.project-detail-hero {
  background:
    radial-gradient(circle at 82% 16%, rgba(113, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(244, 178, 77, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 44%),
    var(--surface-strong);
}

.commission-row,
.leader-row,
.task-card,
.ai-action-card,
.ai-hero-panel,
.ai-current-task,
.ai-plan-card,
.ai-suggestion-list div,
.ai-chat article,
.contact-card,
.event-card,
.stage-stat,
.calendar-day,
.calendar-date,
.event-date,
.p50-profile div,
.career-ladder article,
.career-rule-card,
.benefit-card,
.benefit-person-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.benefit-card,
.benefit-person-card,
.career-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(113, 217, 255, 0.1), transparent 30%),
    var(--surface);
}

.calendar-board,
.table-shell {
  backdrop-filter: blur(14px);
}

.muted {
  color: var(--muted);
}

.save-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(113, 217, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 16%, rgba(113, 217, 255, 0.22), transparent 34%),
    rgba(17, 24, 32, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.save-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.save-toast strong {
  font-size: 14px;
}

.save-toast span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes ambientSpin {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.08); }
}

@keyframes ambientWash {
  0%, 100% { opacity: 0.58; filter: saturate(1); }
  50% { opacity: 0.84; filter: saturate(1.18); }
}

@keyframes topbarSweep {
  0%, 100% { transform: translateX(-65%); opacity: 0.22; }
  50% { transform: translateX(46%); opacity: 0.56; }
}

@keyframes squareFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg); opacity: 0.13; }
  50% { transform: translate3d(-10px, 8px, 0) rotate(6deg); opacity: 0.25; }
}

@keyframes driftGrid {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sweepLight {
  0%, 100% { transform: translateX(-55%); opacity: 0.18; }
  50% { transform: translateX(36%); opacity: 0.5; }
}

@keyframes shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  32%, 62% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes slowPulse {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

@keyframes sweepLine {
  0%, 100% { transform: scaleX(0.35); opacity: 0.18; }
  50% { transform: scaleX(1); opacity: 0.78; }
}

@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50% { transform: translate(-50%, 18px); opacity: 1; }
}

@keyframes systemDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.08; }
  50% { transform: translate3d(18px, 12px, 0); opacity: 0.13; }
}

@keyframes logoLoad {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loginSweep {
  0%, 100% { transform: translateY(-110px) rotate(-8deg); opacity: 0.12; }
  50% { transform: translateY(260px) rotate(-8deg); opacity: 0.82; }
}

@keyframes loginGridMove {
  from { transform: translate3d(-2%, -2%, 0); }
  to { transform: translate3d(4%, 4%, 0); }
}

@keyframes loginBeam {
  0%, 100% { transform: translateY(-70px) scaleX(0.55); opacity: 0.18; }
  50% { transform: translateY(220px) scaleX(1); opacity: 0.82; }
}

.money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .login-shell,
  .ai-workspace {
    grid-template-columns: 1fr;
  }

  .ai-action-grid {
    grid-template-columns: 1fr;
  }

  .ai-hero-panel {
    flex-direction: column;
  }

  .ai-chat-launcher {
    width: 100%;
    min-height: 86px;
    flex-basis: auto;
  }

  .ai-plan-grid,
  .ai-rhythm-grid,
  .ai-current-task,
  .ai-priority-stack.two-columns,
  .ai-chat-stats {
    grid-template-columns: 1fr;
  }

  .ai-priority-admin-list div {
    grid-template-columns: 1fr;
  }

  .partner-activity-head {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 420px;
    padding: 26px;
  }

  .app {
    padding: 18px;
  }

  .app::before {
    left: 0;
  }

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

  .topbar {
    position: static;
  }

  .topbar,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid,
  .journey,
  .goal-grid,
  .map-builder,
  .service-form fieldset,
  .hero-panel,
  .split-section,
  .statement-hero,
  .signing-hero,
  .unpaid-head,
  .unpaid-grid,
  .unpaid-flow,
  .unpaid-person,
  .service-copy-grid,
  .report-hero,
  .report-actions,
  .report-filters,
  .report-filter-actions,
  .crm-toolbar,
  .crm-filters,
  .module-filters,
  .commission-row,
  .story-card,
  .bpc-hero,
  .bpc-summary,
  .bpc-layout,
  .bpc-card,
  .career-hero,
  .benefits-hero,
  .career-mini,
  .career-grid,
  .career-goal-grid,
  .career-goal-numbers,
  .career-card-milestones,
  .career-plan-modal-grid,
  .career-preview-numbers,
  .benefit-grid,
  .career-card-head,
  .career-stats,
  .benefit-card,
  .benefit-admin-cta,
  .benefit-overview-grid,
  .benefit-person-card,
  .payment-summary,
  .collection-report-card,
  .project-hero,
  .project-stage-strip,
  .project-toolbar,
  .project-workbench,
  .dashboard-workbench,
  .dashboard-career-mini,
  .project-grid,
  .p50-profile,
  .calendar-hero,
  .calendar-weekdays,
  .calendar-days,
  .calendar-grid,
  .calendar-agenda-head,
  .calendar-week-agenda,
  .event-card,
  .form-hero,
  .form-type-grid,
  .problem-flow,
  .ai-learning-layout,
  .aiLearningAnswerForm,
  .compact-form,
  .goal-detail-grid,
  .ukp-answer,
  .ukp-ai-showcase,
  .program-hero-screen,
  .ukp-service-intro,
  .goal-map-intro,
  .program-steps,
  .time-card {
    grid-template-columns: 1fr;
  }

  .career-goal-preview {
    position: static;
  }

  .rhythm-feedback-form {
    grid-template-columns: 1fr;
  }

  .program-hero-screen,
  .ukp-cover,
  .ukp-question,
  .ukp-answer,
  .ukp-ai-showcase {
    min-height: 560px;
  }

  .cover-copy {
    padding-top: 86px;
  }

  .bpc-actions,
  .bpc-actions small,
  .bpc-card-number {
    grid-column: auto;
    justify-items: start;
    text-align: left;
  }

  .section-divider,
  .workbench-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-divider p {
    text-align: left;
  }

  .project-hero .bpc-summary {
    grid-template-columns: 1fr;
  }

  .bpc-branch.is-child {
    margin-left: 10px;
  }

  .metric-bar {
    grid-template-columns: 82px 1fr;
  }

  .time-period {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
  }

  .metric-bar strong {
    grid-column: 2;
    text-align: left;
  }

  .hero-title,
  .stage-title {
    font-size: 34px;
  }

  .service-slide {
    padding: 18px;
  }

  .service-slide h2 {
    font-size: 34px;
  }

  .service-slide > span {
    font-size: 70px;
  }

  .form-grid .wide,
  .form-grid .full {
    grid-column: auto;
  }
}

/* Final overrides kept at the end so older module styles cannot cover panels. */
.notification-panel,
.birthday-panel {
  position: fixed !important;
  top: 76px !important;
  right: 24px !important;
  z-index: 50000 !important;
  width: min(560px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 100px) !important;
  overflow: auto !important;
}

.notification-bell em,
.birthday-bell em {
  background: linear-gradient(135deg, #ff6b5f, #f4b24d) !important;
  color: #071018 !important;
  font-weight: 950 !important;
}

.maintenance-banner,
.maintenance-notice,
.document-card,
.payment-detail-grid,
.benefit-formula-panel {
  position: relative;
}

.dashboard-unpaid {
  padding: 16px !important;
}

.mini-progress-line span {
  background: linear-gradient(90deg, #79e7ff, #f4d37b) !important;
  box-shadow: 0 0 20px rgba(113, 217, 255, 0.34);
}

.recovery-key-panel,
.production-checklist {
  position: relative;
}

.production-checklist {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.production-checklist article {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--panel) 90%, #ffffff 10%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.production-checklist strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.production-checklist span {
  color: var(--muted);
  line-height: 1.45;
}

.intake-profile {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.mentee-detail-summary .panel {
  min-height: auto;
}

.notification-panel .notification-item:hover,
.birthday-panel .notification-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

body > .notification-panel,
body > .birthday-panel {
  top: max(84px, env(safe-area-inset-top)) !important;
  right: max(22px, env(safe-area-inset-right)) !important;
  z-index: 2147483000 !important;
  width: min(620px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 112px) !important;
  padding: 16px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line)) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(244, 178, 77, 0.18), transparent 34%),
    color-mix(in srgb, var(--surface-strong) 96%, #ffffff 4%) !important;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.58),
    0 0 0 9999px rgba(2, 8, 13, 0.48) !important;
  backdrop-filter: blur(22px) saturate(1.15);
}

.birthday-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.benefit-formula-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}

.benefit-formula-grid .formula-code {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-weight: 950;
}

.benefit-formula-grid article strong,
.benefit-formula-grid article small {
  display: block;
}

.document-visibility-label {
  color: var(--accent);
  font-weight: 800;
}

.document-visibility-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.035);
}

.document-visibility-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.crm-toolbar {
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  overflow: visible;
}

.crm-filters {
  grid-template-columns: minmax(260px, 1.2fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto auto;
  width: 100%;
}

.crm-filters .search-corner {
  order: 0;
  grid-column: auto;
  min-width: 0;
}

.crm-filters input,
.crm-filters select,
.module-filters input,
.module-filters select {
  width: 100%;
  min-width: 0;
}

.client-zone-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.client-zone-stats {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.client-zone-stats span,
.client-zone-foot span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.045);
}

.client-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.client-zone-card {
  display: grid;
  gap: 14px;
}

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

.client-meeting-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.client-meeting-row:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  transform: translateY(-1px);
}

.client-meeting-row span,
.client-meeting-row small,
.client-zone-foot {
  display: block;
}

.client-zone-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.client-request-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.client-request-list article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.client-request-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.client-request-list p {
  margin: 0;
  color: var(--muted);
}

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

#presentation .goal-grid {
  align-items: stretch;
}

#presentation .goal-choice {
  min-height: 270px;
  grid-template-rows: auto auto auto minmax(72px, 1fr) auto auto;
}

#presentation .goal-icon {
  justify-self: start;
  align-self: start;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#presentation .goal-choice.selected {
  min-height: 318px;
}

#presentation .map-builder {
  align-items: start;
}

#presentation .time-card {
  min-height: 0;
}

#presentation .time-goal-menu .check-row {
  align-items: center;
}

#presentation .time-goal-menu .check-row:has(input:checked)::after {
  display: none;
}

#presentation .ukp-answer {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 22px;
  align-items: center;
}

.admin-feedback-status {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  background: rgba(244, 178, 77, 0.08);
}

@media (max-width: 1100px) {
  .crm-toolbar,
  .client-zone-hero,
  #presentation .ukp-answer {
    grid-template-columns: 1fr;
  }

  .crm-filters {
    grid-template-columns: 1fr 1fr;
  }

  .crm-filters .search-corner {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body > .notification-panel,
  body > .birthday-panel {
    top: 72px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
  }

  .crm-filters {
    grid-template-columns: 1fr;
  }
}

/* Hotfixes: responsive filters, readable bells, onboarding and termination flow. */
body > .notification-panel,
body > .birthday-panel {
  color: var(--ink) !important;
}

body > .notification-panel *,
body > .birthday-panel * {
  color: inherit;
}

body > .notification-panel .notification-item,
body > .birthday-panel .notification-item {
  color: var(--ink) !important;
  background:
    linear-gradient(145deg, rgba(113, 217, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(12, 22, 31, 0.92) !important;
}

body > .notification-panel .notification-item span,
body > .birthday-panel .notification-item span {
  color: #9be6ff !important;
}

body > .notification-panel .notification-item small,
body > .birthday-panel .notification-item small,
body > .notification-panel .muted,
body > .birthday-panel .muted {
  color: rgba(244, 247, 246, 0.72) !important;
}

.notification-bell em,
.birthday-bell em {
  color: #071018 !important;
  text-shadow: none !important;
}

.crm-toolbar {
  grid-template-columns: 1fr !important;
  align-items: start !important;
  overflow: hidden !important;
}

.crm-filters {
  grid-template-columns: minmax(260px, 1.4fr) minmax(118px, 0.55fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(96px, auto) minmax(170px, auto) !important;
  align-items: end !important;
  width: 100% !important;
}

.crm-filters .search-corner {
  grid-column: auto !important;
  order: 0 !important;
}

.crm-filters .project-search-button {
  order: 0 !important;
  width: 100%;
}

.crm-filters .add-mentee-button {
  justify-self: stretch;
  min-width: 0;
}

.care-kpis {
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
}

.care-kpi {
  min-height: 88px !important;
  border-color: rgba(113, 217, 255, 0.22) !important;
}

.onboarding-panel,
.tutorial-grid,
.termination-summary,
.termination-doc-list {
  display: grid;
  gap: 12px;
}

.onboarding-panel {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
}

.onboarding-score,
.onboarding-tasks article,
.termination-summary article,
.termination-doc-list article,
.tutorial-first-task {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(113, 217, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.onboarding-score strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 34px;
}

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

.onboarding-tasks article.done {
  border-color: rgba(121, 231, 255, 0.44);
  background: linear-gradient(145deg, rgba(121, 231, 255, 0.14), rgba(255, 255, 255, 0.045));
}

.onboarding-tasks strong,
.onboarding-tasks span,
.onboarding-tasks small,
.termination-doc-list strong,
.termination-doc-list span {
  display: block;
}

.onboarding-admin-actions,
.termination-doc-list article {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.mini-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79e7ff, #f4d37b);
  box-shadow: 0 0 18px rgba(113, 217, 255, 0.34);
}

.tutorial-modal {
  gap: 16px;
}

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

.tutorial-grid article {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.tutorial-grid strong,
.tutorial-grid span {
  display: block;
}

.tutorial-grid span,
.tutorial-first-task span,
.onboarding-tasks small {
  color: var(--muted);
  line-height: 1.45;
}

.termination-modal {
  gap: 16px;
}

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

.termination-summary span,
.termination-summary strong {
  display: block;
}

.termination-question-block {
  display: grid;
  gap: 10px;
}

@media (max-width: 1280px) {
  .crm-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .crm-filters .search-corner {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .onboarding-panel,
  .onboarding-tasks,
  .tutorial-grid,
  .termination-summary,
  .care-kpis {
    grid-template-columns: 1fr !important;
  }
}

/* Reduce heavy hover work on dense modules so the app stays smoother. */
.panel:hover,
.contact-card:hover,
.event-card:hover,
.career-goal-card:hover,
.document-card:hover {
  transform: none !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(113, 217, 255, 0.06) !important;
}

.dashboard-kpis .kpi::after,
.panel::after,
body::after {
  animation-duration: 34s !important;
}

#presentation .presentation-show {
  scroll-behavior: smooth;
}

#presentation .goal-icon {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  margin: 0 0 10px !important;
}

#presentation .goal-choice {
  grid-template-rows: auto auto auto minmax(70px, 1fr) auto auto !important;
  gap: 10px !important;
}

#presentation .goal-choice,
#presentation .time-card,
#presentation .ukp-service-intro,
#presentation .goal-stage,
#presentation .map-stage {
  transform: translateZ(0);
}

#presentation .goal-choice:hover,
#presentation .time-card:hover {
  transform: none !important;
}

#presentation .goal-choice::after,
#presentation .flow-step::after,
#presentation .floating-goals {
  animation-duration: 14s !important;
}

/* Polished first impression: centered login and guided first-run tour. */
.login-screen {
  align-items: center !important;
  justify-items: center !important;
  overflow: auto !important;
  background:
    radial-gradient(circle at 50% 4%, rgba(141, 224, 255, 0.22), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(244, 178, 77, 0.13), transparent 24%),
    linear-gradient(135deg, #07111a 0%, #142a39 48%, #070b10 100%) !important;
}

.login-screen::before {
  opacity: 0.9 !important;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.16) 45%, transparent 46% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(113, 217, 255, 0.045) 0 1px, transparent 1px 82px) !important;
}

.login-screen::after {
  top: 12% !important;
  height: 2px !important;
}

.login-shell {
  width: min(920px, calc(100vw - 34px)) !important;
  min-height: min(760px, calc(100vh - 48px));
  grid-template-columns: 1fr !important;
  place-items: center !important;
  gap: 0 !important;
  padding: 28px 0;
}

.login-visual {
  width: 100% !important;
  min-height: 560px !important;
  align-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 58px 42px 178px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(160, 232, 255, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 38%),
    linear-gradient(20deg, rgba(113, 217, 255, 0.18), transparent 44%),
    rgba(5, 11, 16, 0.9) !important;
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.login-visual::after {
  content: "VITAJTE" !important;
  inset: 22px 0 auto 0 !important;
  text-align: center !important;
  max-width: none !important;
  color: rgba(255, 255, 255, 0.045) !important;
  font-size: clamp(76px, 12vw, 148px) !important;
  letter-spacing: 0 !important;
}

.login-symbol {
  width: 108px !important;
  height: 108px !important;
  border-radius: 26px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(11, 22, 30, 0.74) !important;
  box-shadow: 0 0 42px rgba(141, 224, 255, 0.24), inset 0 0 24px rgba(255, 255, 255, 0.07);
}

.login-symbol img {
  width: 84px !important;
  height: 84px !important;
}

.login-visual h1 {
  max-width: 780px !important;
  text-wrap: balance;
}

.login-visual p {
  max-width: 660px !important;
}

.login-metrics {
  justify-content: center !important;
}

.login-panel {
  width: min(500px, calc(100% - 48px)) !important;
  justify-self: center !important;
  align-self: auto !important;
  margin-top: -134px !important;
  border-radius: 22px !important;
  padding: 28px !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(9, 18, 25, 0.88) !important;
  border: 1px solid rgba(176, 231, 255, 0.34) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
  backdrop-filter: blur(22px);
}

.login-form input {
  min-height: 50px;
  border-radius: 14px;
  border-color: rgba(176, 231, 255, 0.22);
}

.login-form .primary {
  min-height: 52px;
  border-radius: 14px;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: auto;
  color: var(--ink);
}

.tour-welcome {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 34px));
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 44px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(176, 231, 255, 0.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 6%, rgba(164, 232, 255, 0.26), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(8, 18, 25, 0.94);
  box-shadow: 0 40px 160px rgba(0, 0, 0, 0.62), 0 0 0 9999px rgba(3, 8, 13, 0.76);
  backdrop-filter: blur(22px);
}

.tour-welcome::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.15) 45%, transparent 46% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(113, 217, 255, 0.04) 0 1px, transparent 1px 76px);
  animation: loginGridMove 18s linear infinite;
}

.tour-logo-wrap {
  position: relative;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 48px rgba(141, 224, 255, 0.26);
}

.tour-logo-wrap img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.tour-logo-wrap span {
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  border: 1px solid rgba(141, 224, 255, 0.34);
  animation: tourOrbit 7s ease-in-out infinite;
}

.tour-welcome h2 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

.tour-welcome > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tour-welcome-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
}

.tour-welcome-stats span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(176, 231, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.tour-spotlight {
  position: fixed;
  z-index: 2147483001;
  pointer-events: none;
  border: 2px solid rgba(164, 232, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    0 0 0 9999px rgba(2, 7, 11, 0.68),
    0 0 44px rgba(141, 224, 255, 0.44),
    inset 0 0 24px rgba(141, 224, 255, 0.2);
  transition: left 0.22s ease, top 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.tour-card {
  position: fixed;
  z-index: 2147483002;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(176, 231, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 40%),
    rgba(9, 18, 25, 0.95);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54), 0 0 34px rgba(141, 224, 255, 0.16);
  backdrop-filter: blur(20px);
}

.tour-card h2,
.tour-card p {
  margin: 0;
}

.tour-card h2 {
  font-size: 28px;
}

.tour-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.tour-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.tour-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dff8ff, #8de0ff, #f4b24d);
  box-shadow: 0 0 18px rgba(141, 224, 255, 0.44);
}

.tour-card .modal-actions,
.tour-welcome .modal-actions {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.tour-card .modal-actions {
  justify-content: flex-end;
}

.tour-highlight {
  position: relative;
  z-index: 2147482999 !important;
}

@keyframes tourOrbit {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.48; }
  50% { transform: scale(1.12) rotate(18deg); opacity: 0.86; }
}

@media (max-width: 760px) {
  .login-shell {
    width: min(100%, calc(100vw - 22px)) !important;
    min-height: auto;
    padding: 18px 0;
  }

  .login-visual {
    min-height: 500px !important;
    padding: 42px 22px 174px !important;
  }

  .login-panel {
    width: calc(100% - 24px) !important;
    margin-top: -138px !important;
    padding: 22px !important;
  }

  .tour-welcome {
    padding: 30px 20px;
  }

  .tour-card {
    left: 16px !important;
    right: 16px;
    width: auto !important;
    top: auto !important;
    bottom: 18px;
  }
}

/* Final UI tightening for BP network, QR payments and login modal. */
.login-screen .login-shell {
  min-height: min(780px, calc(100vh - 28px)) !important;
  align-content: center !important;
}

.login-screen .login-visual {
  padding-bottom: 56px !important;
}

.login-open-button {
  position: relative;
  z-index: 2;
  min-height: 54px;
  min-width: 210px;
  border: 1px solid rgba(176, 231, 255, 0.4);
  border-radius: 999px;
  padding: 0 28px;
  background: linear-gradient(135deg, #f7fbff, #8de0ff);
  color: #071018;
  font-weight: 950;
  box-shadow: 0 18px 54px rgba(141, 224, 255, 0.28);
  cursor: pointer;
}

.login-screen .login-panel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 60 !important;
  margin: 0 !important;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.login-screen.show-form .login-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.login-screen.show-form::after {
  box-shadow: 0 0 0 9999px rgba(2, 7, 11, 0.66), 0 0 48px rgba(113, 217, 255, 0.36);
}

.login-close-button {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bpc-tree {
  display: grid;
  gap: 8px;
}

.bpc-branch {
  margin-left: clamp(8px, 1vw, 16px);
  padding-left: 10px;
  border-left: 1px solid rgba(141, 224, 255, 0.16);
}

.bpc-branch:first-child {
  margin-left: 0;
}

.bpc-card {
  min-height: 74px !important;
  padding: 12px 14px !important;
  grid-template-columns: 42px minmax(160px, 1fr) minmax(116px, auto) minmax(116px, auto) !important;
  gap: 12px !important;
}

.bpc-card .bpc-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 15px !important;
}

.bpc-card-main small,
.bpc-card-number small {
  font-size: 12px !important;
}

.bpc-card-number strong {
  font-size: 16px !important;
}

.payment-qr.real-qr {
  width: 214px;
  height: auto !important;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 8px;
  justify-items: center;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(176, 231, 255, 0.36);
}

.payment-qr.real-qr img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  display: block;
}

.payment-qr.real-qr figcaption {
  color: #071018;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.compact-goal-cell {
  display: -webkit-box;
  max-width: 300px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}

.care-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.care-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.care-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.care-detail-grid strong {
  display: block;
  margin-top: 5px;
}

.signature-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.signature-flow article {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(141, 224, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.signature-flow span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6fbff, #8de0ff);
  color: #071018;
  font-weight: 950;
  margin-bottom: 14px;
}

.signature-flow strong,
.signature-flow small {
  display: block;
}

.signature-flow small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.single-client-zone {
  grid-template-columns: 1fr !important;
}

body.login-active {
  overflow: hidden !important;
}

body.login-active .app-shell,
body.login-active .sidebar,
body.login-active .topbar {
  overflow: hidden !important;
}

body.login-active .login-screen {
  overflow: hidden !important;
  padding: 16px !important;
}

body.login-active .login-shell {
  width: min(920px, calc(100vw - 32px)) !important;
  height: min(760px, calc(100vh - 32px)) !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body.login-active .login-visual {
  height: 100% !important;
  min-height: 0 !important;
  padding: clamp(24px, 5vh, 52px) 42px clamp(28px, 5vh, 58px) !important;
  gap: clamp(12px, 2vh, 20px) !important;
}

body.login-active .login-visual h1 {
  font-size: clamp(36px, 5.6vw, 74px) !important;
}

body.login-active .login-open-button {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin-top: 2px !important;
  z-index: 3;
}

body.login-active .login-metrics {
  margin: 2px 0 0 !important;
  z-index: 3;
}

.payment-detail-grid {
  grid-template-columns: minmax(226px, 260px) minmax(0, 1fr) !important;
  align-items: start !important;
}

@media (max-width: 980px) {
  .bpc-card {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  .bpc-card-number {
    grid-column: 2;
  }

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

  .signature-flow {
    grid-template-columns: 1fr;
  }

  .payment-detail-grid {
    grid-template-columns: 1fr !important;
  }

  body.login-active .login-visual {
    padding: 26px 22px 34px !important;
  }

  body.login-active .login-visual h1 {
    font-size: clamp(30px, 8vw, 52px) !important;
  }

  body.login-active .login-metrics {
    gap: 8px;
  }
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 980px) {
  body {
    display: block;
    overflow-x: hidden;
  }

  .mobile-menu-toggle {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    z-index: 60000;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(141, 224, 255, 0.22), rgba(255, 255, 255, 0.08)),
      rgba(9, 17, 24, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 28px rgba(141, 224, 255, 0.16);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 59980;
    display: block;
    background: rgba(3, 9, 14, 0.58);
    backdrop-filter: blur(8px);
  }

  .mobile-menu-backdrop[hidden] {
    display: none !important;
  }

  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 350px) !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    padding: calc(76px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    z-index: 59990;
    transform: translateX(-106%);
    transition: transform 0.24s ease;
    box-shadow: 34px 0 80px rgba(0, 0, 0, 0.42);
  }

  body.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .app {
    width: 100%;
    margin-left: 0 !important;
    padding: calc(72px + env(safe-area-inset-top)) 12px 18px !important;
  }

  .topbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .topbar-brand {
    padding-left: 52px;
  }

  .actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .actions > *,
  .actions button,
  .actions select,
  .session-badge {
    min-width: 0 !important;
    width: 100%;
  }

  .notification-wrap {
    width: auto;
  }

  .nav {
    grid-template-columns: 1fr !important;
  }

  body.login-active .mobile-menu-toggle,
  body.login-active .mobile-menu-backdrop {
    display: none !important;
  }
}

@media (min-width: 981px) {
  .mobile-menu-toggle,
  .mobile-menu-backdrop {
    display: none !important;
  }
}
