@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap");

:root {
  --ink: #0b1220;
  --ink-soft: #182236;
  --muted: #6d7585;
  --line: #e5e9ef;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --lime: #c8ff32;
  --lime-dark: #91c900;
  --cyan: #73e7e2;
  --purple: #7667f5;
  --danger: #f05f67;
  --warning: #f4a63a;
  --success: #30b780;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 60px rgba(20, 31, 50, 0.1);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}
.ambient-one { width: 340px; height: 340px; background: var(--lime); left: -130px; top: -100px; }
.ambient-two { width: 360px; height: 360px; background: var(--purple); right: -170px; bottom: -160px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--surface);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.brand > span:last-child > span { color: var(--lime); }
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--lime);
}
.brand-mark i { display: block; height: 2px; border-radius: 5px; background: var(--ink); }
.brand-mark i:nth-child(2) { width: 72%; }
.brand-mark i:nth-child(3) { width: 45%; }

/* Login */
.login-view {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}
.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(48px, 6vw, 100px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 15% 85%, rgba(200, 255, 50, 0.16), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(115, 231, 226, 0.11), transparent 28%),
    var(--ink);
}
.login-story::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.login-story::after {
  content: "21";
  position: absolute;
  right: -38px;
  bottom: -110px;
  font-family: "Unbounded", sans-serif;
  font-size: min(33vw, 500px);
  font-weight: 700;
  letter-spacing: -55px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.07);
}
.brand-light { position: relative; z-index: 2; }
.story-copy { position: relative; z-index: 2; margin: auto 0; max-width: 690px; }
.eyebrow, .login-kicker, .page-eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.story-copy h1 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -3.5px;
}
.story-copy h1 em { color: var(--lime); font-style: normal; }
.story-lead { max-width: 560px; margin: 28px 0 42px; color: #aeb7c7; font-size: 16px; line-height: 1.75; }
.story-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-features > div {
  min-height: 132px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.story-features > div > span { color: var(--lime); font-size: 10px; font-weight: 800; }
.story-features p { margin: 20px 0 0; color: #8f9aab; font-size: 11px; line-height: 1.5; }
.story-features strong { display: block; margin-bottom: 5px; color: white; font-size: 13px; }
.story-footnote { position: relative; z-index: 2; margin: 0; color: #626d7e; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

.login-panel { display: grid; place-items: center; padding: 48px; background: #f7f8fa; }
.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; }
.login-kicker { color: var(--purple); }
.login-card h2 { margin: 0; font-size: 40px; line-height: 1.14; letter-spacing: -1.8px; }
.login-subtitle { margin: 12px 0 38px; color: var(--muted); font-size: 14px; }
.field { display: block; margin-bottom: 20px; }
.field > span:first-child { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 800; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 17px; width: 19px; height: 19px; color: #8b94a4; }
.input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 52px;
  border: 1px solid #dfe4eb;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: border .2s, box-shadow .2s;
}
.input-wrap input::placeholder { color: #aab1bd; }
.input-wrap input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(118,103,245,.1); }
.icon-button {
  position: absolute;
  right: 11px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #8b94a4;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: #f0f2f5; color: var(--ink); }
.icon-button svg { width: 19px; height: 19px; }
.form-error { margin: -7px 0 17px; padding: 11px 13px; border-radius: 10px; color: #a92e38; background: #fff0f1; font-size: 12px; }
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 57px;
  margin-top: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(145,201,0,.22);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.primary-button:hover { transform: translateY(-2px); background: #d3ff59; box-shadow: 0 16px 34px rgba(145,201,0,.28); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.primary-button svg { width: 20px; height: 20px; }
.security-note { display: flex; gap: 12px; margin-top: 30px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.5); }
.security-note svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--success); }
.security-note p { margin: 0; font-size: 10px; line-height: 1.6; }
.security-note strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 11px; }

/* Dashboard shell */
.dashboard-view { position: relative; z-index: 1; min-height: 100vh; padding-left: 250px; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 250px;
  padding: 32px 22px 24px;
  color: white;
  background: var(--ink);
}
.sidebar::after { content: ""; position: absolute; inset: auto -80px 0 auto; width: 200px; height: 200px; border-radius: 50%; background: rgba(200,255,50,.08); filter: blur(55px); pointer-events: none; }
.main-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 62px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #7f899a;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: var(--ink); background: var(--lime); box-shadow: 0 8px 22px rgba(145,201,0,.14); }
.nav-item svg { width: 20px; height: 20px; }
.nav-item b { margin-left: auto; min-width: 21px; padding: 3px 6px; border-radius: 20px; color: white; background: var(--danger); font-size: 9px; text-align: center; }
.sidebar-bottom { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.mini-user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.mini-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--ink); background: var(--cyan); font-size: 11px; font-weight: 800; }
.mini-user p { flex: 1; min-width: 0; margin: 0; }
.mini-user strong, .mini-user p span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-user strong { font-size: 11px; }
.mini-user p span { margin-top: 3px; color: #7f899a; font-size: 9px; }
.logout-button { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; color: #788396; background: transparent; cursor: pointer; }
.logout-button:hover { color: white; background: rgba(255,255,255,.07); }
.logout-button svg { width: 18px; height: 18px; }
.mobile-header { display: none; }
.dashboard-content { min-height: 100vh; padding: 38px clamp(30px, 4vw, 64px) 60px; }
.content-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.page-eyebrow { margin-bottom: 7px; color: var(--purple); }
.content-header h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -2px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.sync-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.sync-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(48,183,128,.12); }
.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.refresh-button:hover { color: var(--ink); border-color: #cbd2dc; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }
.refresh-button svg { width: 15px; height: 15px; }
.tab-content { animation: appear .32s ease both; }

/* Shared cards and states */
.surface { border: 1px solid rgba(222,227,234,.9); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 8px 34px rgba(18,27,43,.045); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.5px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; color: var(--muted); background: #f0f2f5; font-size: 9px; font-weight: 800; letter-spacing: .3px; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.lime { color: #537700; background: #efffc4; }
.chip.purple { color: #5647db; background: #eeecff; }
.chip.green { color: #11895a; background: #e4f8ef; }
.chip.orange { color: #ae6810; background: #fff1dc; }
.chip.red { color: #b83843; background: #ffe9eb; }
.empty-state, .error-state { display: grid; place-items: center; min-height: 330px; padding: 50px; text-align: center; }
.state-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 18px; color: var(--purple); background: #efedff; }
.state-icon svg { width: 27px; height: 27px; }
.empty-state h3, .error-state h3 { margin: 0 0 7px; font-size: 17px; }
.empty-state p, .error-state p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.retry-button { margin-top: 18px; padding: 10px 16px; border: 0; border-radius: 10px; color: white; background: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skeleton { height: 170px; border-radius: var(--radius-lg); background: linear-gradient(100deg, #e9edf1 20%, #f5f7f9 40%, #e9edf1 60%); background-size: 220% 100%; animation: shimmer 1.3s infinite linear; }

/* Profile */
.profile-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 195px; padding: 30px; overflow: hidden; color: white; background: var(--ink); }
.profile-hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: 10%; top: -150px; border: 1px solid rgba(200,255,50,.15); border-radius: 50%; box-shadow: 0 0 0 38px rgba(200,255,50,.025), 0 0 0 78px rgba(200,255,50,.02); }
.profile-avatar { position: relative; z-index: 1; display: grid; place-items: center; width: 106px; height: 106px; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; color: var(--ink); background: var(--lime); font-family: "Unbounded", sans-serif; font-size: 28px; font-weight: 700; box-shadow: inset 0 0 0 7px rgba(255,255,255,.25); }
.profile-main { position: relative; z-index: 1; }
.profile-main p { margin: 0 0 6px; color: #8e99aa; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.profile-main h2 { margin: 0 0 13px; font-size: 29px; letter-spacing: -1px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #b7c0cf; background: rgba(255,255,255,.045); font-size: 9px; }
.level-orbit { position: relative; z-index: 1; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.1) 0); }
.level-orbit::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink); }
.level-orbit p { position: relative; margin: 0; text-align: center; }
.level-orbit strong { display: block; color: var(--lime); font-size: 25px; line-height: 1; }
.level-orbit span { color: #788395; font-size: 8px; text-transform: uppercase; }
.profile-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 20px; margin-top: 20px; }
.info-card, .progress-card { padding: 25px; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-item { padding: 17px; border-radius: 13px; background: #f6f7f9; }
.info-item span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.info-item strong { font-size: 13px; }
.experience-value { margin: 18px 0 12px; font-size: 34px; font-weight: 800; letter-spacing: -1.5px; }
.experience-value small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.progress-track { height: 9px; overflow: hidden; border-radius: 20px; background: #edf0f3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #a89dfd); }
.progress-caption { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 9px; }

/* Deadlines */
.deadline-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.summary-card { display: flex; align-items: center; gap: 14px; padding: 19px; }
.summary-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: var(--purple); background: #efedff; }
.summary-icon.green { color: var(--success); background: #e5f8ef; }
.summary-icon.orange { color: var(--warning); background: #fff3e2; }
.summary-icon svg { width: 20px; height: 20px; }
.summary-card p { margin: 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.summary-card strong { display: block; margin-top: 2px; font-size: 21px; }
.schedule-card { padding: 25px; }
.schedule-card + .schedule-card { margin-top: 18px; }
.schedule-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.deadline-list { margin-top: 22px; }
.deadline-item { position: relative; display: grid; grid-template-columns: 66px 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 92px; }
.deadline-item:not(:last-child)::after { content: ""; position: absolute; left: 115px; top: 62px; bottom: -30px; width: 1px; background: var(--line); }
.deadline-date { text-align: right; }
.deadline-date strong { display: block; font-size: 19px; line-height: 1; }
.deadline-date span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.deadline-marker { position: relative; z-index: 2; display: grid; place-items: center; width: 31px; height: 31px; border: 4px solid white; border-radius: 50%; color: #8d95a3; background: #e9edf1; font-size: 9px; font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
.deadline-item.completed .deadline-marker { color: white; background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.deadline-item.in_progress .deadline-marker { color: var(--ink); background: var(--lime); box-shadow: 0 0 0 3px rgba(200,255,50,.22); }
.deadline-body { min-width: 0; padding: 13px 15px; border-radius: 12px; background: #f7f8fa; }
.deadline-item.in_progress .deadline-body { background: #f7ffdf; }
.deadline-body strong { display: block; font-size: 12px; }
.deadline-body p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.55; white-space: pre-line; }
.deadline-status { min-width: 92px; text-align: right; }

/* Projects */
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-button.active { color: var(--ink); border-color: var(--ink); background: var(--ink); color: white; }
.direction-callout { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 11px; color: #584e13; background: #f5ffcf; font-size: 10px; }
.direction-callout svg { width: 17px; height: 17px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { position: relative; min-height: 173px; padding: 20px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card::after { content: attr(data-code); position: absolute; right: -2px; bottom: -17px; color: #f1f3f6; font-size: 58px; font-weight: 800; letter-spacing: -4px; pointer-events: none; }
.project-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-code { display: grid; place-items: center; min-width: 44px; height: 34px; padding: 0 9px; border-radius: 10px; color: var(--ink); background: var(--cyan); font-size: 10px; font-weight: 800; }
.project-card h3 { position: relative; z-index: 1; margin: 17px 0 5px; font-size: 13px; line-height: 1.4; }
.project-card > p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 9px; }
.project-progress { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.project-progress .progress-track { flex: 1; height: 5px; }
.project-progress span { color: var(--muted); font-size: 8px; }

/* Graduation */
.graduation-notice { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #e4ebbc; border-radius: 14px; background: #f9ffe5; }
.graduation-notice svg { flex: 0 0 auto; width: 20px; height: 20px; color: #779b10; }
.graduation-notice strong { display: block; font-size: 11px; }
.graduation-notice p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.graduation-filter { margin-bottom: 18px; }
.graduation-card { padding: 25px; }
.graduation-progress { margin: 20px 0 10px; }
.graduation-list { display: grid; gap: 9px; margin-top: 20px; }
.graduation-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.graduation-item.completed { border-color: #cfecdf; background: #f5fcf8; }
.graduation-item.in_progress { border-color: #e3efbd; background: #f9ffe8; }
.graduation-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #7d8796; background: #e9edf1; font-size: 10px; font-weight: 800; }
.graduation-item.completed .graduation-number { color: white; background: var(--success); }
.graduation-item.in_progress .graduation-number { color: var(--ink); background: var(--lime); }
.graduation-item h3 { margin: 0; font-size: 11px; line-height: 1.5; }
.graduation-item p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.graduation-directions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.graduation-directions span { padding: 3px 6px; border-radius: 6px; color: #596273; background: #edf0f4; font-size: 7px; font-weight: 700; }

/* Administration */
.admin-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.admin-intro h2 { margin: 0; font-size: 23px; letter-spacing: -.7px; }
.admin-intro p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.admin-sync-button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; color: #4e5868; background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-sync-button:hover { color: var(--ink); border-color: #cbd2dc; box-shadow: 0 7px 18px rgba(20,31,50,.08); }
.admin-sync-button:disabled { cursor: wait; opacity: .55; }
.admin-sync-button svg { width: 17px; height: 17px; }
.admin-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.admin-summary button { min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.admin-summary button:hover { border-color: #cbd2dc; box-shadow: 0 9px 24px rgba(20,31,50,.07); transform: translateY(-1px); }
.admin-summary button.selected { border-color: #a8da22; box-shadow: 0 0 0 3px rgba(200,255,50,.26); }
.admin-summary span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-summary strong { display: block; margin-top: 13px; font-size: 27px; letter-spacing: -1px; }
.admin-summary i { width: 8px; height: 8px; border-radius: 50%; background: #9ca5b2; }
.admin-summary i.active { background: var(--success); }
.admin-summary i.frozen { background: var(--purple); }
.admin-summary i.blocked, .admin-summary i.overdue { background: var(--danger); }
.admin-panel { padding: 22px; }
.admin-filter-shell { overflow: hidden; border: 1px solid #e1e5eb; border-radius: 16px; background: #f8f9fb; }
.admin-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid #e8ebef; background: rgba(255,255,255,.72); }
.admin-filter-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-filter-icon { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #45516a; background: #edf1f5; }
.admin-filter-icon svg { width: 20px; height: 20px; }
.admin-filter-title-line { display: flex; align-items: center; gap: 7px; }
.admin-filter-title strong { font-size: 13px; }
.admin-filter-title b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; color: #425d00; background: #e5ff99; font-size: 9px; }
.admin-filter-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.admin-reset-button { min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #5e6877; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.admin-reset-button:hover:not(:disabled) { color: var(--ink); border-color: #dfe3e9; background: white; }
.admin-reset-button:disabled { cursor: default; opacity: .4; }
.admin-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 11px; padding: 18px; align-items: end; }
.admin-control { display: block; min-width: 0; }
.admin-search-field { grid-column: span 3; }
.admin-control > span:first-child, .admin-deadline-range legend { display: block; margin: 0 0 7px 2px; color: #657080; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .45px; }
.admin-filters input, .admin-filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d9dfe7; border-radius: 10px; outline: none; color: var(--ink); background: white; font-size: 11px; transition: border-color .18s, box-shadow .18s, background .18s; }
.admin-filters input:hover, .admin-filters select:hover { border-color: #c6cdd7; }
.admin-filters input:focus, .admin-filters select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118,103,245,.12); }
.admin-input-with-icon { position: relative; display: block; }
.admin-input-with-icon svg { position: absolute; z-index: 1; left: 12px; top: 50%; width: 16px; height: 16px; color: #8a93a1; transform: translateY(-50%); pointer-events: none; }
.admin-input-with-icon input { padding-left: 36px; }
.admin-deadline-range { display: grid; grid-column: span 4; grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr); align-items: end; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-deadline-range legend { grid-column: 1 / -1; padding: 0; }
.admin-deadline-range label { min-width: 0; }
.admin-deadline-range label > span { display: block; margin: 0 0 5px 2px; color: #8a93a1; font-size: 9px; font-weight: 700; }
.admin-deadline-range i { align-self: center; width: 12px; height: 1px; margin-top: 17px; background: #b9c0ca; }
.admin-apply-button { grid-column: span 2; min-height: 44px; padding: 0 18px; border: 1px solid #b8ef20; border-radius: 10px; color: var(--ink); background: var(--lime); box-shadow: 0 7px 16px rgba(145,201,0,.14); font-size: 11px; font-weight: 800; cursor: pointer; transition: background .18s, box-shadow .18s, transform .18s; }
.admin-apply-button:hover { background: #d3ff59; box-shadow: 0 9px 20px rgba(145,201,0,.2); transform: translateY(-1px); }
.admin-apply-button:active { transform: translateY(0); }
.admin-filters :focus-visible, .admin-reset-button:focus-visible, .admin-table th button:focus-visible, .admin-mobile-sort button:focus-visible { outline: 3px solid rgba(118,103,245,.28); outline-offset: 2px; }
.admin-table-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 2px 12px; }
.admin-table-heading h3 { margin: 0; font-size: 18px; }
.admin-table-heading p, .admin-table-heading > span { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.admin-mobile-sort { display: none; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 15px; color: #737d8c; background: #f5f7f9; font-size: 9px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.admin-table th button { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; margin: -6px -7px; padding: 6px 7px; border: 0; border-radius: 7px; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color .18s, background .18s; }
.admin-table th button:hover { color: var(--ink); background: #e9edf2; }
.admin-table th button > span { position: relative; display: inline-flex; width: 10px; height: 15px; color: #aab1bb; }
.admin-table th button > span.active { color: var(--purple); }
.admin-table th button > span svg { width: 11px; height: 11px; }
.admin-table th button > span:not(.active) svg { position: absolute; left: 0; }
.admin-table th button > span:not(.active) svg:first-child { top: -1px; }
.admin-table th button > span:not(.active) svg:last-child { bottom: -1px; }
.admin-table th button > span.active svg { margin-top: 2px; }
.admin-table td { padding: 15px; border-top: 1px solid #edf0f3; vertical-align: middle; font-size: 11px; }
.admin-participant-row td { transition: background-color .18s; }
.admin-participant-row.blocked td { border-top-color: #f3d9dc; background: #fff7f8; }
.admin-participant-row.blocked td:first-child { box-shadow: inset 3px 0 0 #e45b67; }
.admin-participant-row.blocked:hover td { background: #fff0f2; }
.admin-table td > strong, .admin-table td > span:not(.admin-wave):not(.admin-status) { display: block; }
.admin-table td > strong { font-size: 11px; }
.admin-table td > span:not(.admin-wave):not(.admin-status) { max-width: 260px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-wave { display: inline-flex; padding: 6px 8px; border-radius: 7px; color: #4e43b7; background: #efedff; font-size: 9px; font-weight: 800; }
.admin-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-status.active { color: #167653; background: #ddf6eb; }
.admin-status.frozen { color: #574bc2; background: #ece9ff; }
.admin-status.blocked { color: #b23844; background: #ffe7e9; }
.admin-status.other { color: #687280; background: #edf0f4; }
.admin-deadline.overdue strong { color: #bd3642; }
.admin-empty { display: grid; place-items: center; min-height: 220px; border: 1px dashed #d9dee5; border-radius: 13px; text-align: center; }
.admin-empty h3 { margin: 0; font-size: 15px; }
.admin-empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.admin-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.admin-pagination button { min-width: 88px; min-height: 44px; border: 1px solid #dce1e8; border-radius: 9px; color: #596473; background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-pagination button:disabled { cursor: default; opacity: .4; }

/* Personal roadmap */
.roadmap-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.roadmap-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.7px; }
.roadmap-heading p { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.roadmap-direction { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #dcecae; border-radius: 10px; color: #4f7000; background: #f2ffc9; font-size: 11px; font-weight: 800; }
.roadmap-direction.neutral { color: var(--muted); border-color: var(--line); background: white; }
.roadmap-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.roadmap-summary > div { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.roadmap-summary i { flex: 0 0 auto; width: 10px; height: 10px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px currentColor; }
.roadmap-summary i.completed { color: var(--success); background: var(--success); }
.roadmap-summary i.in-progress { color: #85b800; background: var(--lime); }
.roadmap-summary i.available { color: var(--purple); background: #a99fff; }
.roadmap-summary i.locked { color: #a6afbc; background: #dce1e7; }
.roadmap-summary p { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 7px; width: 100%; margin: 0; }
.roadmap-summary span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-summary strong { font-size: 18px; }
.roadmap-focus { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #dae9a9; border-radius: 14px; background: linear-gradient(100deg, #f8ffdf, #fbfff1); }
.roadmap-focus-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 800; }
.roadmap-focus div { min-width: 0; }
.roadmap-focus div span { display: block; margin-bottom: 4px; color: #718636; font-size: 10px; font-weight: 700; }
.roadmap-focus strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-focus button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 9px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.roadmap-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.roadmap-modes, .roadmap-branches { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.roadmap-modes button, .roadmap-branches button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #5f6877; background: white; font-size: 10px; font-weight: 750; cursor: pointer; transition: color .18s, border-color .18s, background .18s, box-shadow .18s; }
.roadmap-modes button:hover, .roadmap-branches button:hover { color: var(--ink); border-color: #bec6d1; }
.roadmap-modes button.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 7px 18px rgba(11,18,32,.16); }
.roadmap-branches { justify-content: flex-end; }
.roadmap-branches > span { margin-right: 2px; color: var(--muted); font-size: 10px; }
.roadmap-branches button { min-height: 32px; padding: 0 9px; font-size: 9px; }
.roadmap-branches button.active { color: #516f00; border-color: #cfe58c; background: #f3ffce; }
.roadmap-shell { position: relative; min-height: 650px; overflow: hidden; background: #eef1f5; }
.roadmap-viewport { position: absolute; inset: 0; overflow: hidden; outline: none; background-color: #f1f3f6; background-image: radial-gradient(#d2d7df .8px, transparent .8px), linear-gradient(135deg, rgba(255,255,255,.68), transparent 48%); background-size: 24px 24px, 100% 100%; cursor: grab; touch-action: none; }
.roadmap-viewport:focus-visible { box-shadow: inset 0 0 0 3px rgba(118,103,245,.55); }
.roadmap-viewport.dragging { cursor: grabbing; }
.roadmap-world { position: absolute; z-index: 1; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.roadmap-layer { position: absolute; z-index: 0; left: 0; height: 122px; border-top: 1px solid rgba(167,176,188,.35); background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 75%); pointer-events: none; }
.roadmap-layer span { position: absolute; left: 50%; top: 7px; padding: 4px 8px; border: 1px solid rgba(197,203,211,.7); border-radius: 999px; color: #77818f; background: rgba(247,248,250,.92); font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; transform: translateX(-50%); }
.roadmap-layer i { position: absolute; left: calc(50% + 46px); top: 11px; color: #9aa3af; font-size: 8px; font-style: normal; font-weight: 700; }
.roadmap-lines { position: absolute; z-index: 0; inset: 0; overflow: visible; pointer-events: none; }
.roadmap-lines marker path { fill: #909aa7; }
.roadmap-edge { fill: none; stroke: #9da7b4; stroke-width: 1.5; opacity: .42; transition: opacity .18s, stroke .18s, stroke-width .18s; }
.roadmap-node { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 11px 12px; overflow: visible; border: 1px solid #d4dae2; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.98); box-shadow: 0 7px 17px rgba(23,34,51,.08); text-align: left; cursor: pointer; transition: opacity .18s, transform .18s, box-shadow .18s, border-color .18s; }
.roadmap-node:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,34,51,.14); }
.roadmap-node:focus-visible { outline: 3px solid rgba(118,103,245,.45); outline-offset: 3px; }
.roadmap-node::before, .roadmap-node::after { content: ""; position: absolute; z-index: 3; left: 50%; width: 8px; height: 8px; margin-left: -4px; border: 2px solid white; border-radius: 50%; background: #aeb6c2; box-shadow: 0 0 0 1px #aeb6c2; }
.roadmap-node::before { top: -5px; }
.roadmap-node::after { bottom: -5px; }
.roadmap-node.completed { border-color: #bfe4d4; background: #f8fffb; }
.roadmap-node.completed::before, .roadmap-node.completed::after { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.roadmap-node.in-progress { border-color: #c6df7d; background: #fbffe9; box-shadow: 0 9px 23px rgba(139,190,15,.15); }
.roadmap-node.in-progress::before, .roadmap-node.in-progress::after { background: var(--lime); box-shadow: 0 0 0 1px #81aa13; }
.roadmap-node.available { border-color: #d9d5ff; }
.roadmap-node.available::before, .roadmap-node.available::after { background: #8d80fa; box-shadow: 0 0 0 1px #7567e6; }
.roadmap-node.locked { background: rgba(249,250,251,.97); box-shadow: 0 5px 13px rgba(23,34,51,.05); }
.roadmap-node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.roadmap-node-head > span { overflow: hidden; min-width: 0; font-size: 11px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-node-head i { flex: 0 0 auto; padding: 3px 5px; border-radius: 5px; color: #76808e; background: #eef1f4; font-size: 7px; font-style: normal; font-weight: 800; }
.roadmap-node.completed .roadmap-node-head i { color: #14724e; background: #dcf5e9; }
.roadmap-node.in-progress .roadmap-node-head i { color: #597600; background: #ebffc0; }
.roadmap-node.available .roadmap-node-head i { color: #5749d2; background: #ece9ff; }
.roadmap-node-preview { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 7px; }
.roadmap-node-preview strong { overflow: hidden; min-width: 0; color: #5e6876; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-node-preview small { flex: 0 0 auto; color: #929ba7; font-size: 7px; text-transform: uppercase; }
.roadmap-node-foot { display: flex; align-items: center; gap: 6px; min-height: 17px; margin-top: auto; color: #828b98; font-size: 7px; font-weight: 700; }
.roadmap-node-foot em { overflow: hidden; padding: 3px 5px; border-radius: 5px; color: #6b7481; background: #eef1f4; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-node-flag { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: #557500; background: #eaffae; text-transform: uppercase; }
.roadmap-node-flag.graduation { color: #5749d2; background: #ebe8ff; }
.roadmap-world.roadmap-has-highlight .roadmap-node:not(.roadmap-related) { opacity: .18; }
.roadmap-world.roadmap-has-highlight .roadmap-edge:not(.roadmap-related) { opacity: .07; }
.roadmap-world.roadmap-has-highlight .roadmap-node.roadmap-related { border-color: #a59bf8; box-shadow: 0 9px 23px rgba(87,72,203,.14); }
.roadmap-world.roadmap-has-highlight .roadmap-node.roadmap-selected { z-index: 4; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118,103,245,.2), 0 13px 30px rgba(87,72,203,.2); }
.roadmap-world.roadmap-has-highlight .roadmap-edge.roadmap-related { stroke: var(--purple); stroke-width: 2.5; opacity: .95; }
.roadmap-controls { position: absolute; z-index: 8; display: grid; right: 16px; top: 16px; gap: 6px; }
.roadmap-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d4dae2; border-radius: 11px; color: #4f5967; background: rgba(255,255,255,.94); box-shadow: 0 7px 18px rgba(23,34,51,.08); font-size: 17px; font-weight: 800; cursor: pointer; backdrop-filter: blur(10px); }
.roadmap-controls button:hover { color: var(--ink); background: white; }
.roadmap-controls button:focus-visible { outline: 3px solid rgba(118,103,245,.45); outline-offset: 2px; }
.roadmap-controls svg { width: 18px; height: 18px; }
.roadmap-controls button:last-child { font-size: 9px; }
.roadmap-gesture-hint { position: absolute; z-index: 7; left: 16px; bottom: 16px; padding: 9px 11px; border: 1px solid #d8dde4; border-radius: 9px; color: #687281; background: rgba(255,255,255,.9); font-size: 9px; backdrop-filter: blur(10px); }
.roadmap-mode-empty { position: absolute; display: grid; place-items: center; inset: 0; padding: 50px; text-align: center; cursor: default; }
.roadmap-mode-empty h3 { margin: 0 0 7px; font-size: 17px; }
.roadmap-mode-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.roadmap-inspector { position: absolute; z-index: 12; display: flex; flex-direction: column; right: 16px; bottom: 16px; top: 16px; width: min(390px, calc(100% - 32px)); padding: 20px; overflow: auto; border: 1px solid rgba(215,221,229,.95); border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: -12px 20px 50px rgba(18,28,44,.18); backdrop-filter: blur(16px); animation: inspector-in .22s ease both; }
.roadmap-inspector[hidden] { display: none; }
.roadmap-inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.roadmap-inspector-head span { color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.roadmap-inspector-head h3 { margin: 5px 0 0; font-size: 19px; line-height: 1.35; }
.roadmap-inspector-head button { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: #66707e; background: #f4f6f8; font-size: 22px; cursor: pointer; }
.roadmap-inspector-status { align-self: flex-start; margin: 14px 0 16px; padding: 6px 9px; border-radius: 7px; color: #697381; background: #eef1f4; font-size: 9px; font-weight: 800; }
.roadmap-inspector-status.completed { color: #14724e; background: #dcf5e9; }
.roadmap-inspector-status.in-progress { color: #597600; background: #ebffc0; }
.roadmap-inspector-status.available { color: #5749d2; background: #ece9ff; }
.roadmap-inspector-relations { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 15px; }
.roadmap-relations { min-width: 0; padding: 10px; border: 1px solid #e2e6ec; border-radius: 11px; background: #f7f8fa; }
.roadmap-relations h4 { margin: 0 0 7px; color: #66717f; font-size: 8px; letter-spacing: .3px; text-transform: uppercase; }
.roadmap-relations div { display: flex; flex-wrap: wrap; gap: 5px; }
.roadmap-relations span { max-width: 100%; padding: 4px 6px; overflow: hidden; border-radius: 6px; color: #4d43b8; background: #ebe8ff; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-relations p { margin: 0; color: #929aa5; font-size: 8px; line-height: 1.45; }
.roadmap-inspector-list { display: grid; gap: 8px; }
.roadmap-inspector-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e5e9ee; border-radius: 12px; background: #fafbfc; }
.roadmap-inspector-list > article > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #5b4ed1; background: #ece9ff; font-size: 10px; font-style: normal; font-weight: 900; }
.roadmap-inspector-list > article > i.course { color: #14724e; background: #ddf6ea; }
.roadmap-inspector-list article div { min-width: 0; }
.roadmap-inspector-list strong, .roadmap-inspector-list p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-inspector-list strong { font-size: 10px; }
.roadmap-inspector-list p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.roadmap-item-status { display: grid; gap: 2px; justify-items: end; color: #7d8794; font-size: 8px; font-weight: 800; }
.roadmap-item-status.completed { color: #168059; }
.roadmap-item-status.in-progress { color: #668700; }
.roadmap-item-status.available { color: #5c4fd2; }
.roadmap-item-status span { font-size: 8px; font-weight: 600; }
.roadmap-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; color: var(--muted); font-size: 9px; }
.roadmap-legend span { display: flex; align-items: center; gap: 6px; }
.roadmap-legend i { width: 7px; height: 7px; border-radius: 50%; background: #b5bdc8; }
.roadmap-legend i.completed { background: var(--success); }
.roadmap-legend i.in-progress { background: #85b800; }
.roadmap-legend i.available { background: var(--purple); }
.roadmap-legend i.course { width: 9px; height: 9px; border: 2px solid var(--success); border-radius: 2px; background: transparent; }

/* Toast */
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; width: min(360px, calc(100vw - 44px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease both; }
.toast::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.toast.error::before { background: var(--danger); }

@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position-x: -220%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes inspector-in { from { opacity: 0; transform: translateX(15px); } }

@media (max-width: 1050px) {
  .login-view { grid-template-columns: 1fr 1fr; }
  .story-features { grid-template-columns: 1fr; }
  .story-features > div { display: flex; align-items: center; gap: 14px; min-height: 0; }
  .story-features p { margin: 0; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
  .roadmap-toolbar { align-items: flex-start; flex-direction: column; }
  .roadmap-branches { justify-content: flex-start; }
  .admin-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-search-field { grid-column: 1 / -1; }
  .admin-deadline-range { grid-column: span 2; }
  .admin-apply-button { grid-column: span 1; }
}

@media (max-width: 760px) {
  .login-view { display: block; background: var(--ink); }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 60px; font-size: 15px; font-weight: 800; }
  .mobile-brand > span:last-child > span { color: var(--purple); }
  .login-card h2 { font-size: 34px; }

  .dashboard-view { padding: 70px 0 0; }
  .mobile-header { position: fixed; z-index: 28; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 20px; background: var(--ink); }
  .mobile-menu-button { display: grid; gap: 6px; width: 38px; height: 38px; padding: 11px; border: 0; border-radius: 9px; background: rgba(255,255,255,.06); }
  .mobile-menu-button span { display: block; height: 2px; border-radius: 3px; background: white; }
  .sidebar { width: min(290px, 86vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-content { padding: 28px 18px 45px; }
  .content-header { align-items: flex-start; margin-bottom: 26px; }
  .header-actions { margin-top: 2px; }
  .sync-status { display: none; }
  .refresh-button { width: 39px; padding: 0; justify-content: center; gap: 0; line-height: 0; }
  .refresh-button span, .refresh-button:not(:has(span)) { font-size: 0; }
  .refresh-button { font-size: 0; }
  .skeleton-grid, .deadline-summary { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: auto 1fr; padding: 22px; }
  .profile-avatar { width: 76px; height: 76px; border-radius: 21px; font-size: 20px; }
  .profile-main h2 { font-size: 21px; }
  .level-orbit { grid-column: 1 / -1; width: 100%; height: auto; padding: 15px; border-radius: 13px; background: rgba(255,255,255,.05); }
  .level-orbit::before { display: none; }
  .level-orbit p { display: flex; align-items: center; gap: 8px; }
  .level-orbit strong { font-size: 17px; }
  .info-list { grid-template-columns: 1fr; }
  .project-toolbar { align-items: flex-start; flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
  .graduation-card { padding: 17px; }
  .graduation-item { grid-template-columns: 31px minmax(0, 1fr); }
  .graduation-item > .chip { grid-column: 2; justify-self: start; }
  .deadline-item { grid-template-columns: 49px 27px minmax(0, 1fr); gap: 9px; padding: 6px 0; }
  .deadline-item:not(:last-child)::after { left: 70px; top: 58px; }
  .deadline-date strong { font-size: 16px; }
  .deadline-marker { width: 27px; height: 27px; }
  .deadline-status { grid-column: 3; text-align: left; margin: -7px 0 10px; }
  .schedule-card { padding: 17px; }
  .roadmap-heading { align-items: flex-start; flex-direction: column; }
  .roadmap-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-summary > div { padding: 11px; }
  .roadmap-focus { grid-template-columns: auto minmax(0, 1fr); }
  .roadmap-focus button { grid-column: 2; justify-self: start; min-height: 44px; }
  .roadmap-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .roadmap-modes button { min-height: 44px; }
  .roadmap-branches { flex-wrap: nowrap; width: calc(100vw - 36px); padding-bottom: 5px; overflow-x: auto; }
  .roadmap-branches > span { display: none; }
  .roadmap-branches button { flex: 0 0 auto; min-height: 40px; }
  .roadmap-shell { min-height: 560px; }
  .roadmap-gesture-hint { display: none; }
  .roadmap-controls { right: 10px; top: 10px; }
  .roadmap-inspector { inset: auto 10px 10px; width: auto; max-height: calc(100% - 20px); }
  .roadmap-legend { gap: 10px; }
  .admin-intro { align-items: flex-start; flex-direction: column; }
  .admin-sync-button { width: 100%; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary button:first-child { grid-column: 1 / -1; }
  .admin-filter-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .admin-filter-title p { display: none; }
  .admin-reset-button { align-self: flex-start; min-height: 32px; padding: 0; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-search-field, .admin-deadline-range, .admin-apply-button { grid-column: 1; }
  .admin-filters input, .admin-filters select { min-height: 44px; font-size: 16px; }
  .admin-apply-button, .admin-pagination button { min-height: 44px; }
  .admin-mobile-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -3px 0 12px; }
  .admin-mobile-sort > span { width: 100%; color: var(--muted); font-size: 9px; font-weight: 700; }
  .admin-mobile-sort button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 11px; border: 1px solid #dce1e8; border-radius: 9px; color: #647080; background: white; font-size: 9px; font-weight: 800; }
  .admin-mobile-sort button.active { color: var(--ink); border-color: #b7e834; background: #f3ffd1; }
  .admin-mobile-sort svg { width: 14px; height: 14px; }
  .admin-table-wrap { overflow: visible; border: 0; }
  .admin-table { display: block; min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: grid; gap: 10px; }
  .admin-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .admin-table tr.admin-participant-row.blocked { border-color: #efcbd0; border-left: 3px solid #e45b67; background: #fff7f8; box-shadow: 0 5px 14px rgba(178,56,68,.06); }
  .admin-participant-row.blocked td, .admin-participant-row.blocked:hover td { background: transparent; }
  .admin-participant-row.blocked td:first-child { box-shadow: none; }
  .admin-table td { display: block; padding: 0; border: 0; }
  .admin-table td:nth-child(1), .admin-table td:nth-child(4) { grid-column: 1 / -1; }
  .admin-pagination { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
