:root {
  --ink: #12243f;
  --ink-2: #1c3150;
  --ink-3: #58708e;
  --muted: #70839d;
  --line: #e4eaf2;
  --line-strong: #d5deea;
  --canvas: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --cyan: #00a9b7;
  --cyan-dark: #058490;
  --cyan-soft: #e6f8fa;
  --amber: #f5b942;
  --amber-soft: #fff5dc;
  --coral: #ed765f;
  --coral-soft: #ffede9;
  --green: #2faf78;
  --green-soft: #e6f7ef;
  --purple: #7567e8;
  --purple-soft: #efedff;
  --shadow-sm: 0 4px 14px rgba(18, 36, 63, 0.05);
  --shadow-md: 0 12px 34px rgba(18, 36, 63, 0.09);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 169, 183, 0.32);
  outline-offset: 2px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 28px 17px 18px;
  background:
    radial-gradient(circle at 70% 14%, rgba(0, 169, 183, 0.14), transparent 28%),
    linear-gradient(180deg, #102542 0%, #0d1d34 100%);
  color: #fff;
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 0 8px;
}

.brand-seal {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(245, 185, 66, 0.74);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-seal::before,
.brand-seal::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(0, 169, 183, 0.7);
}

.brand-seal::before {
  inset: 4px;
}

.brand-seal::after {
  inset: 8px;
  border-color: rgba(255, 255, 255, 0.34);
}

.brand-name {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-product {
  margin-top: 2px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-product span {
  color: var(--amber);
}

.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 28px 7px 30px;
  padding: 7px 10px;
  border: 1px solid rgba(119, 205, 216, 0.22);
  border-radius: 999px;
  background: rgba(0, 169, 183, 0.12);
  color: #9fdde2;
  font-size: 11px;
  font-weight: 600;
}

.status-pulse {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61d59c;
  box-shadow: 0 0 0 4px rgba(97, 213, 156, 0.12);
}

.sidebar-label {
  padding: 0 10px 10px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}

.nav-item.active {
  border-color: rgba(0, 169, 183, 0.25);
  background: linear-gradient(90deg, rgba(0, 169, 183, 0.18), rgba(0, 169, 183, 0.05));
  color: #fff;
}

.nav-item.active::before {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 23px;
  border-radius: 0 4px 4px 0;
  background: var(--cyan);
  content: "";
}

.nav-item-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  flex: 0 0 19px;
  color: currentColor;
}

.nav-item-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.nav-item-count {
  min-width: 21px;
  padding: 2px 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.privacy-mini {
  display: flex;
  gap: 9px;
  margin: 30px 4px 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.privacy-mini-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 8px;
  background: rgba(97, 213, 156, 0.13);
  color: #77dbad;
}

.privacy-mini strong,
.privacy-mini span {
  display: block;
}

.privacy-mini strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.privacy-mini span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1.35;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.sidebar-user-copy span {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
}

.main-shell {
  width: calc(100% - 252px);
  min-height: 100vh;
  margin-left: 252px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(228, 234, 242, 0.8);
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions,
.breadcrumb,
.topbar-actions > * {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.breadcrumb-divider {
  color: #aebdce;
}

.topbar-actions {
  gap: 19px;
}

.search-box {
  display: flex;
  width: min(278px, 25vw);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #8fa2ba;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(0, 169, 183, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 169, 183, 0.08);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #9babbd;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: #9babbd;
  font-family: var(--font-body);
  font-size: 9px;
  white-space: nowrap;
}

.role-switcher-wrap {
  display: grid;
  gap: 1px;
}

.role-caption {
  color: #9aaabe;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.role-switcher {
  max-width: 155px;
  padding: 0 17px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
}

.language-option {
  min-width: 28px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8ea0b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-option:hover,
.language-option.active {
  background: var(--ink);
  color: #fff;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-3);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--cyan-dark);
}

.notification-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--coral);
}

.avatar {
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(145deg, #d8f1f2, #f7d9aa);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 11px;
}

.mobile-only {
  display: none;
}

.notification-popover {
  position: fixed;
  z-index: 30;
  top: 68px;
  right: 44px;
  width: 315px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.notification-popover[hidden] {
  display: none;
}

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

.notification-popover-head strong {
  font-family: var(--font-display);
  font-size: 14px;
}

.notification-popover-head span {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 700;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.notification-item:first-of-type {
  border-top: 0;
}

.notification-item-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.notification-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.4;
}

.notification-item time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.app-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 40px 42px 60px;
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.view-header-copy {
  max-width: 750px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.view-header h1,
.view-header h2,
.panel h2,
.panel h3,
.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.055em;
}

.view-header h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.view-header p {
  max-width: 670px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.header-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  box-shadow: 0 7px 16px rgba(18, 36, 63, 0.14);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--cyan-dark);
}

.button-primary:hover {
  background: #05747f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #a7dfe2;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.button-ghost {
  min-height: 32px;
  padding: 7px 9px;
  background: transparent;
  color: var(--cyan-dark);
}

.button-ghost:hover {
  box-shadow: none;
  background: var(--cyan-soft);
}

.button-danger {
  background: var(--coral);
}

.button-sm {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
}

.button-block {
  width: 100%;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.kpi-card {
  position: relative;
  min-height: 128px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.kpi-card::after {
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 104px;
  height: 104px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.07;
  content: "";
}

.kpi-card:nth-child(1) {
  color: var(--cyan-dark);
}

.kpi-card:nth-child(2) {
  color: var(--purple);
}

.kpi-card:nth-child(3) {
  color: var(--amber);
}

.kpi-card:nth-child(4) {
  color: var(--coral);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.kpi-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: currentColor;
  color: #fff;
}

.kpi-value {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.kpi-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.kpi-note strong {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.dashboard-main,
.dashboard-aside,
.two-column,
.three-column {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-pad {
  padding: 22px;
}

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

.panel-header h2,
.panel-header h3 {
  font-size: 16px;
  line-height: 1.2;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-link:hover {
  color: var(--ink);
}

.welcome-card {
  position: relative;
  display: flex;
  min-height: 189px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid #224363;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 20%, rgba(245, 185, 66, 0.18), transparent 25%),
    radial-gradient(circle at 77% 110%, rgba(0, 169, 183, 0.24), transparent 38%),
    #122a48;
  color: #fff;
}

.welcome-card::before,
.welcome-card::after {
  position: absolute;
  border: 1px solid rgba(128, 220, 224, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.welcome-card::before {
  right: 53px;
  bottom: -93px;
  width: 230px;
  height: 230px;
}

.welcome-card::after {
  right: -33px;
  top: -80px;
  width: 230px;
  height: 230px;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.welcome-copy .eyebrow {
  color: #71d2d6;
}

.welcome-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.welcome-copy p {
  max-width: 560px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 12px;
}

.welcome-graphic {
  position: relative;
  z-index: 1;
  display: grid;
  width: 115px;
  height: 115px;
  flex: 0 0 115px;
  place-items: center;
  border: 1px solid rgba(245, 185, 66, 0.62);
  border-radius: 50%;
  color: var(--amber);
}

.welcome-graphic::before,
.welcome-graphic::after {
  position: absolute;
  border: 1px solid rgba(0, 169, 183, 0.6);
  border-radius: 50%;
  content: "";
}

.welcome-graphic::before {
  inset: 12px;
}

.welcome-graphic::after {
  inset: 29px;
  border-color: rgba(255, 255, 255, 0.34);
}

.welcome-graphic span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.progress-overview {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, #f8fcff);
}

.progress-ring {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 72%, #e2eef2 72% 100%);
}

.progress-ring::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.progress-overview h3 {
  margin: 3px 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.04em;
}

.progress-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.progress-overview .button {
  margin-top: 13px;
}

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

.learning-step {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  min-height: 61px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.learning-step:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  transform: translateX(2px);
}

.learning-step.active {
  border-color: #bfe7ea;
  background: var(--cyan-soft);
}

.learning-step.locked {
  cursor: default;
  opacity: 0.55;
}

.learning-step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: #eef3f7;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.learning-step.completed .learning-step-number {
  background: var(--green-soft);
  color: var(--green);
}

.learning-step.active .learning-step-number {
  background: var(--cyan-dark);
  color: #fff;
}

.learning-step-title {
  min-width: 0;
}

.learning-step-title strong,
.learning-step-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-step-title strong {
  color: var(--ink-2);
  font-size: 12px;
}

.learning-step-title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.step-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.step-status.done {
  color: var(--green);
}

.step-status.current {
  color: var(--cyan-dark);
}

.step-status svg {
  width: 13px;
  height: 13px;
}

.learning-box {
  position: relative;
  padding: 23px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 185, 66, 0.24), transparent 27%),
    linear-gradient(135deg, #eafafa 0%, #fbfffe 70%);
}

.learning-box::after {
  position: absolute;
  right: -34px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 169, 183, 0.17);
  border-radius: 50%;
  content: "";
}

.learning-box-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 17px;
}

.learning-box-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  flex: 0 0 35px;
  border-radius: 11px;
  background: var(--cyan-dark);
  color: #fff;
}

.learning-box h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.05em;
}

.learning-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.learning-questions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: question;
}

.learning-questions li {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.35;
  counter-increment: question;
}

.learning-questions li::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(0, 169, 183, 0.25);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--cyan-dark);
  content: counter(question);
  font-size: 10px;
  font-weight: 800;
}

.learning-box-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 169, 183, 0.14);
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 700;
}

.activity-list {
  display: grid;
}

.activity-item {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.activity-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.activity-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
}

.activity-item:nth-child(2) .activity-icon {
  background: var(--green-soft);
  color: var(--green);
}

.activity-item:nth-child(3) .activity-icon {
  background: var(--amber-soft);
  color: #b67a08;
}

.activity-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.38;
}

.activity-item time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-cyan {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.tag-green {
  background: var(--green-soft);
  color: #178357;
}

.tag-amber {
  background: var(--amber-soft);
  color: #a86d04;
}

.tag-purple {
  background: var(--purple-soft);
  color: #5d4fd0;
}

.tag-coral {
  background: var(--coral-soft);
  color: #c65340;
}

.mini-bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 38px;
  align-items: center;
  gap: 9px;
}

.bar-row-label {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f6;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #78d8d4);
}

.bar-value {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.learning-page-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.45fr) minmax(240px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.step-nav-panel {
  position: sticky;
  top: 96px;
}

.step-nav-panel .panel-header {
  padding: 20px 19px 0;
}

.step-nav-panel .learning-list {
  padding: 0 10px 11px;
}

.step-nav-panel .learning-step {
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 9px;
  min-height: 53px;
  padding: 7px 8px;
}

.step-nav-panel .learning-step .step-status {
  display: none;
}

.step-detail {
  min-height: 570px;
  padding: 27px 29px 30px;
}

.step-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.step-code {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-detail h1 {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 35px);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.step-detail-lede {
  max-width: 680px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.step-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #178357;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.step-section {
  padding: 23px 0 0;
}

.step-section h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.04em;
}

.step-section p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

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

.concept-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.concept-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: -0.03em;
}

.concept-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.task-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #f3dfad;
  border-radius: 13px;
  background: #fffaf0;
}

.task-callout-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: #b67a08;
}

.task-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 12px;
}

.task-callout span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

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

.role-strip-card {
  padding: 13px;
  border-radius: 11px;
  background: #f5f8fc;
}

.role-strip-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.role-strip-card strong {
  color: var(--ink-2);
  font-size: 11px;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eff5;
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan-dark);
}

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

.quiz-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quiz-card:hover {
  border-color: #b9dfe2;
  box-shadow: var(--shadow-sm);
}

.quiz-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.quiz-card-code {
  color: var(--cyan-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.quiz-card h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.quiz-card p {
  min-height: 34px;
  margin: 8px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.quiz-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.quiz-score .progress-bar {
  flex: 1;
}

.quiz-score span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.quiz-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(265px, 0.68fr);
  gap: 18px;
  align-items: start;
}

.quiz-active-card {
  min-height: 530px;
  padding: 29px;
}

.quiz-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.quiz-progress-line .progress-bar {
  flex: 1;
  max-width: 220px;
}

.quiz-question-kicker {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-question {
  max-width: 750px;
  margin: 13px 0 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.answer-list {
  display: grid;
  gap: 9px;
  max-width: 750px;
}

.answer-option {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.answer-option:hover:not([disabled]) {
  border-color: #9fdde2;
  background: var(--cyan-soft);
}

.answer-option.correct {
  border-color: #9bdab9;
  background: var(--green-soft);
}

.answer-option.incorrect {
  border-color: #f2b2a5;
  background: var(--coral-soft);
}

.answer-letter {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  flex: 0 0 25px;
  border-radius: 8px;
  background: #eef3f7;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.answer-option.correct .answer-letter {
  background: #c7edd7;
  color: #178357;
}

.answer-option.incorrect .answer-letter {
  background: #ffd5cb;
  color: #c65340;
}

.answer-option span:last-child {
  font-size: 12px;
}

.quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 750px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--ink-2);
  font-size: 11px;
}

.quiz-feedback strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan-dark);
  font-size: 12px;
}

.quiz-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.quiz-summary-card {
  padding: 22px;
}

.score-donut {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 3px auto 18px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan-dark) 0 70%, #e8f0f4 70% 100%);
}

.score-donut-inner {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
}

.score-donut-inner strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.score-donut-inner span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.metric-list {
  display: grid;
  gap: 11px;
}

.metric-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.metric-list-row strong {
  color: var(--ink-2);
  font-size: 12px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.avatar-lg {
  width: 67px;
  height: 67px;
  border-radius: 20px;
  font-size: 22px;
}

.profile-hero h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.055em;
}

.profile-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-hero .profile-actions {
  margin-left: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 18px;
  align-items: start;
}

.skill-table {
  display: grid;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(120px, 1fr) 57px;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.skill-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.skill-name strong,
.skill-name span {
  display: block;
}

.skill-name strong {
  color: var(--ink-2);
  font-size: 12px;
}

.skill-name span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.skill-score {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

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

.evidence-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.evidence-card-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
}

.evidence-card-copy {
  min-width: 0;
  flex: 1;
}

.evidence-card-copy strong,
.evidence-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-card-copy strong {
  color: var(--ink-2);
  font-size: 11px;
}

.evidence-card-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.cv-preview {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  background: #fff;
}

.cv-preview::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--amber));
  content: "";
}

.cv-preview h3 {
  margin: 3px 0 2px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.06em;
}

.cv-preview .cv-role {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 700;
}

.cv-line {
  height: 6px;
  margin-top: 7px;
  border-radius: 99px;
  background: #edf1f6;
}

.cv-line.short {
  width: 56%;
}

.cv-section-title {
  margin-top: 17px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.cv-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-size: 9px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.data-table th {
  padding: 0 12px 11px;
  color: #9aaabe;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
  vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar-xs {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  font-size: 9px;
}

.person-cell strong,
.person-cell span {
  display: block;
}

.person-cell strong {
  font-size: 11px;
}

.person-cell span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.inline-progress {
  display: flex;
  min-width: 115px;
  align-items: center;
  gap: 8px;
}

.inline-progress .progress-bar {
  flex: 1;
}

.inline-progress span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.framework-grid,
.vacancy-grid,
.candidate-grid,
.case-grid,
.roadmap-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.framework-card,
.vacancy-card,
.candidate-card,
.case-card,
.roadmap-card,
.principle-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.framework-card:hover,
.vacancy-card:hover,
.candidate-card:hover,
.case-card:hover,
.roadmap-card:hover {
  border-color: #bfe7ea;
  box-shadow: var(--shadow-sm);
}

.framework-card-top,
.vacancy-card-top,
.candidate-card-top,
.case-card-top,
.roadmap-card-top,
.principle-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.card-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.framework-card h3,
.vacancy-card h3,
.candidate-card h3,
.case-card h3,
.roadmap-card h3,
.principle-card h3 {
  margin: 13px 0 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.framework-card p,
.vacancy-card p,
.candidate-card p,
.case-card p,
.roadmap-card p,
.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.43;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-footer small {
  color: var(--muted);
  font-size: 10px;
}

.vacancy-card {
  min-height: 200px;
}

.vacancy-meta,
.candidate-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.vacancy-meta span,
.candidate-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.candidate-card {
  min-height: 226px;
}

.candidate-card-top .avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px;
}

.candidate-fit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.candidate-fit .progress-bar {
  flex: 1;
}

.candidate-fit strong {
  color: var(--cyan-dark);
  font-family: var(--font-display);
  font-size: 16px;
}

.candidate-fit-label {
  color: var(--muted);
  font-size: 10px;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.case-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.case-tab {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.case-tab:hover {
  background: var(--surface-soft);
  color: var(--ink-2);
}

.case-tab.active {
  border-color: #bfe7ea;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.case-tab-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 7px;
  background: #edf2f7;
  font-size: 9px;
  font-weight: 800;
}

.case-tab.active .case-tab-number {
  background: var(--cyan-dark);
  color: #fff;
}

.case-tab strong,
.case-tab span {
  display: block;
}

.case-tab strong {
  color: currentColor;
  font-size: 11px;
}

.case-tab span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.case-detail {
  min-height: 530px;
  padding: 25px 27px;
}

.case-detail > .eyebrow {
  margin-bottom: 7px;
}

.case-detail h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.case-detail > p {
  max-width: 780px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.scenario-box {
  margin-top: 21px;
  padding: 17px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
}

.scenario-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 12px;
}

.scenario-box p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.48;
}

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

.case-action-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.case-action-card h3 {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.03em;
}

.case-action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
  font-size: 12px;
}

.check-list input,
.form-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--cyan-dark);
}

.case-table {
  width: 100%;
  margin-top: 17px;
  border-collapse: collapse;
}

.case-table th,
.case-table td {
  padding: 10px 11px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
  text-align: left;
}

.case-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-grid {
  grid-template-columns: repeat(5, minmax(145px, 1fr));
}

.roadmap-card {
  position: relative;
  min-height: 205px;
}

.roadmap-card::after {
  position: absolute;
  top: 29px;
  right: -15px;
  width: 30px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.roadmap-card:last-child::after {
  display: none;
}

.roadmap-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.roadmap-card.done .roadmap-number {
  background: var(--green-soft);
  color: var(--green);
}

.roadmap-card h3 {
  margin-top: 17px;
}

.roadmap-card .form-check {
  margin-top: 15px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11px;
}

.roadmap-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}

.roadmap-progress strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
}

.roadmap-progress .progress-bar {
  grid-column: 1 / -1;
}

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

.principle-card {
  min-height: 178px;
}

.principle-card:nth-child(1) .card-icon {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.principle-card:nth-child(2) .card-icon {
  background: var(--green-soft);
  color: var(--green);
}

.principle-card:nth-child(3) .card-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.principle-card:nth-child(4) .card-icon {
  background: var(--amber-soft);
  color: #b67a08;
}

.principle-card .form-check {
  margin-top: 15px;
}

.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #f2dfae;
  border-radius: 11px;
  background: #fffaf0;
  color: #89630c;
  font-size: 11px;
}

.alert-banner strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-2);
}

.empty-state {
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 30px 16px;
  place-items: center;
  background: rgba(11, 29, 52, 0.62);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(570px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(9, 23, 42, 0.32);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.06em;
}

.modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}

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

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

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

.form-field label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 169, 183, 0.08);
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rubric-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rubric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.rubric-row label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.rubric-row select {
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.toast-region {
  position: fixed;
  z-index: 60;
  right: 27px;
  bottom: 24px;
  display: grid;
  gap: 9px;
  width: min(350px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
  font-size: 11px;
  animation: toast-in 180ms ease-out;
}

.toast.success .toast-icon {
  color: var(--green);
}

.toast.warning .toast-icon {
  color: #b67a08;
}

.toast-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  flex: 0 0 23px;
  border-radius: 7px;
  background: var(--surface-soft);
}

.toast p {
  margin: 2px 0 0;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.print-only {
  display: none;
}

@media (max-width: 1240px) {
  .sidebar {
    width: 228px;
  }

  .main-shell {
    width: calc(100% - 228px);
    margin-left: 228px;
  }

  .topbar,
  .app-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .learning-page-grid {
    grid-template-columns: minmax(205px, 0.68fr) minmax(0, 1.32fr);
  }

  .learning-page-grid > .learning-box {
    grid-column: 1 / -1;
  }

  .learning-page-grid .learning-box {
    min-height: auto;
  }

  .learning-page-grid .learning-questions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .learning-page-grid .learning-box-footer {
    display: none;
  }
}

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

  .dashboard-grid,
  .section-grid,
  .quiz-page-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-aside .learning-box {
    grid-column: 1 / -1;
  }

  .framework-grid,
  .vacancy-grid,
  .candidate-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .roadmap-card:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 790px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 190ms ease;
    box-shadow: 18px 0 45px rgba(9, 23, 42, 0.2);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.open::after {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 260px;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 23, 42, 0.42);
    content: "";
  }

  .main-shell {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .mobile-only {
    display: grid;
  }

  .mobile-nav-toggle {
    gap: 3px;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .search-box {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .role-switcher-wrap {
    max-width: 125px;
  }

  .role-switcher {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notification-popover {
    top: 61px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .app-content {
    padding: 28px 16px 45px;
  }

  .view-header {
    display: block;
    margin-bottom: 22px;
  }

  .view-header h1 {
    font-size: 31px;
  }

  .header-actions {
    margin-top: 16px;
  }

  .welcome-card {
    min-height: 215px;
    padding: 24px;
  }

  .welcome-graphic {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .welcome-graphic span {
    font-size: 14px;
  }

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

  .dashboard-aside .learning-box {
    grid-column: auto;
  }

  .learning-page-grid {
    grid-template-columns: 1fr;
  }

  .step-nav-panel {
    position: static;
  }

  .step-nav-panel .learning-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-page-grid .learning-questions {
    grid-template-columns: 1fr;
  }

  .step-detail,
  .quiz-active-card,
  .case-detail {
    padding: 22px 19px;
  }

  .concept-grid,
  .role-strip,
  .quiz-grid,
  .case-action-grid,
  .framework-grid,
  .vacancy-grid,
  .candidate-grid,
  .case-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

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

  .roadmap-card::after,
  .roadmap-card:nth-child(3)::after {
    display: none;
  }

  .profile-hero {
    flex-wrap: wrap;
  }

  .profile-hero .profile-actions {
    width: 100%;
    margin-left: 0;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-tab {
    padding: 9px;
  }
}

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

  .kpi-card {
    min-height: 110px;
  }

  .welcome-card {
    display: block;
    min-height: auto;
  }

  .welcome-graphic {
    position: absolute;
    right: 19px;
    bottom: 17px;
    width: 61px;
    height: 61px;
    border-color: rgba(245, 185, 66, 0.46);
  }

  .welcome-graphic::before {
    inset: 7px;
  }

  .welcome-graphic::after {
    inset: 16px;
  }

  .welcome-graphic span {
    font-size: 10px;
  }

  .progress-overview {
    display: block;
  }

  .progress-overview .progress-ring {
    margin-bottom: 13px;
  }

  .step-nav-panel .learning-list {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    min-height: auto;
  }

  .case-tabs {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .modal-card {
    padding: 20px 16px;
  }

  .role-caption {
    display: none;
  }

  .role-switcher {
    max-width: 112px;
    font-size: 11px;
  }

  .language-switcher {
    padding: 2px;
  }

  .language-option {
    min-width: 25px;
    padding: 3px 4px;
    font-size: 9px;
  }
}

@media print {
  .sidebar,
  .topbar,
  .header-actions,
  .button,
  .panel-link,
  .toast-region,
  .notification-popover {
    display: none !important;
  }

  .main-shell {
    width: 100%;
    margin: 0;
  }

  .app-content {
    padding: 0;
  }

  .print-only {
    display: block;
  }
}
