/* ===== Design tokens (from Tutor Site design system, variant 10a) ===== */
:root {
  --lime: #c6f035;
  --pink: #ff2ec4;
  --black: #000000;
  --cream: #faf8f2;
  --paper: #ffffff;
  --track: #e6e2d6;
  --gray: #666666;
  --gray-dark: #333333;

  --font-head: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --border: 1.5px solid var(--black);
  --container: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-head);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  border: var(--border);
  cursor: pointer;
  white-space: nowrap;
}
.btn-fill {
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-mono);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  font-family: var(--font-mono);
  padding: 16px 22px;
}
.btn-fill:hover { background: var(--black); color: var(--lime); }
.btn-outline:hover { background: var(--black); color: var(--lime); border-color: var(--black); }

/* ===== Header / Nav ===== */
.site-header {
  border-bottom: var(--border);
  background: var(--cream);
  position: relative;
  z-index: 20;
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}
.logo {
  font-weight: 800;
  font-size: 19px;
  color: var(--black);
  letter-spacing: -0.2px;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--pink); }
/* Раздел, в котором сейчас находишься */
.nav-links a.is-active { padding-bottom: 4px; border-bottom: 2.5px solid var(--lime); }
.nav-links a.is-active:hover { color: var(--black); }

.nav-cta {
  background: var(--black);
  color: var(--lime);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 20px;
}
.nav-cta:hover { background: var(--pink); color: var(--black); }
.nav-cta.is-profile { background: var(--lime); color: var(--black); }
.nav-cta.is-profile:hover { background: var(--black); color: var(--lime); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span { height: 2.5px; background: var(--black); display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-bottom: var(--border);
  background: var(--cream);
}
.mobile-nav a {
  padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,.1);
  font-weight: 600;
  font-size: 15px;
}
.mobile-nav a.is-active { box-shadow: inset 3px 0 0 var(--lime); background: rgba(198, 240, 53, .14); }
.mobile-nav .nav-cta { margin: 16px 24px; text-align: center; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero {
  display: flex;
  gap: 56px;
  padding: 64px 48px 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-blob {
  position: absolute;
  top: -20px;
  right: 0;
  width: min(50vw, 760px);
  height: 112%;
  background: var(--lime);
  z-index: 0;
  clip-path: polygon(18% 0%,40% 0%,40% 10%,60% 10%,60% 4%,100% 4%,100% 100%,70% 100%,70% 86%,45% 86%,45% 96%,10% 96%,10% 70%,0% 70%,0% 22%,18% 22%);
}
.hero-tag {
  position: absolute;
  top: 34px;
  left: 0;
  background: var(--pink);
  color: var(--lime);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  transform: rotate(-3deg);
  z-index: 3;
}
.hero-tag .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1.5px solid var(--black);
}
.hero-tag .handle.tl { top: -4px; left: -4px; }
.hero-tag .handle.tr { top: -4px; right: -4px; }
.hero-tag .handle.bl { bottom: -4px; left: -4px; }
.hero-tag .handle.br { bottom: -4px; right: -4px; }

.hero-main {
  flex: 1.15;
  position: relative;
  z-index: 2;
  min-width: 0;
}
.hero-title {
  font-weight: 900;
  font-size: 66px;
  line-height: .9;
  color: var(--black);
  letter-spacing: -2.5px;
  margin-top: 20px;
  text-transform: uppercase;
  position: relative;
}
.hero-title .squiggle { position: absolute; top: -30px; left: -6px; }
.hero-title .hl { color: var(--lime); background: var(--black); padding: 0 4px; }
.hero-title .accent { font-style: italic; color: var(--pink); -webkit-text-stroke: 1.5px var(--black); }

.hero-sub {
  margin-top: 22px;
  color: var(--gray-dark);
  font-size: 17px;
  line-height: 1.6;
  max-width: 440px;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* stat card */
.stat-card {
  flex: 1;
  position: relative;
  border: var(--border);
  padding: 28px;
  background: var(--paper);
  z-index: 2;
  min-width: 280px;
}
.stat-card .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border: 1.5px solid var(--pink);
}
.stat-card .handle.tl { top: -5px; left: -5px; }
.stat-card .handle.tr { top: -5px; right: -5px; }
.stat-card .handle.bl { bottom: -5px; left: -5px; }
.stat-card .handle.br { bottom: -5px; right: -5px; }
.stat-card .cursor { position: absolute; bottom: -30px; left: -14px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35)); }
.stat-live {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--black);
  color: var(--lime);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.stat-head .title { font-weight: 700; font-size: 14px; color: var(--black); }
.stat-head .days { color: var(--black); font-weight: 700; font-size: 14px; background: var(--lime); padding: 3px 10px; }
.stat-bar { display: flex; gap: 6px; margin-bottom: 22px; }
.stat-bar span { flex: 1; height: 7px; background: var(--track); }
.stat-bar span.filled { background: var(--black); }
.stat-grid { display: flex; gap: 10px; }
.stat-cell { flex: 1; text-align: center; padding: 14px 8px; border: var(--border); }
.stat-cell.pink { background: var(--pink); }
.stat-cell .num { font-weight: 800; font-size: 30px; color: var(--black); font-family: var(--font-mono); }
.stat-cell.pink .num { color: var(--lime); }
.stat-cell .label { color: var(--gray); font-size: 11px; margin-top: 4px; font-family: var(--font-mono); }
.stat-cell.pink .label { color: var(--cream); }

/* torn divider */
.torn-divider {
  height: 34px;
  background: var(--black);
  clip-path: polygon(0 0,100% 0,100% 40%,96% 40%,96% 100%,88% 100%,88% 55%,80% 55%,80% 100%,70% 100%,70% 45%,60% 45%,60% 100%,48% 100%,48% 50%,36% 50%,36% 100%,24% 100%,24% 40%,12% 40%,12% 100%,0 100%);
}

/* ===== Task bank preview (home) ===== */
.tasks-section {
  padding: 34px 0 48px;
  position: relative;
  overflow: hidden;
}
.tasks-numeral {
  position: absolute;
  top: -30px;
  right: -12px;
  font-weight: 800;
  font-size: 220px;
  line-height: 1;
  color: var(--lime);
  opacity: .35;
  z-index: 0;
  letter-spacing: -6px;
  font-family: 'Departure Mono', monospace;
  pointer-events: none;
}
.tasks-glitch {
  position: absolute;
  top: 14px;
  left: 340px;
  display: grid;
  grid-template-columns: repeat(7,7px);
  gap: 2px;
  z-index: 1;
}
.tasks-glitch div { width: 7px; height: 7px; }
.tasks-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}
.tasks-title {
  font-weight: 800;
  font-size: 28px;
  color: var(--black);
  background: var(--lime);
  display: inline-block;
  padding: 6px 16px;
  transform: rotate(-1deg);
}
.tasks-link { color: var(--black); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.chip-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; position: relative; z-index: 2; }
.chip {
  border: var(--border);
  color: var(--black);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-head);
}
.chip.active { background: var(--black); color: var(--lime); font-weight: 700; border-color: var(--black); }

.task-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}
.task-card {
  background: var(--paper);
  border: var(--border);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.task-card .badge-new {
  position: absolute;
  top: -8px;
  right: 14px;
  background: var(--pink);
  color: var(--lime);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
}
.task-card .t-title { color: var(--black); font-weight: 700; font-size: 15.5px; }
.task-card .t-meta { color: var(--gray); font-size: 12.5px; margin-top: 6px; font-family: var(--font-mono); }
.task-card .t-btn {
  background: var(--lime);
  color: var(--black);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  margin-top: 16px;
  display: inline-block;
  border: var(--border);
  align-self: flex-start;
}
.task-card .t-btn:hover { background: var(--black); color: var(--lime); }

/* ===== Testimonial + CTA ===== */
.promo-row { display: flex; gap: 20px; padding: 0 0 40px; align-items: stretch; flex-wrap: wrap; }
.testimonial {
  flex: 1;
  background: var(--paper);
  border: var(--border);
  padding: 24px;
  color: var(--black);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.6;
  min-width: 260px;
}
.promo-cta {
  flex: 1;
  background: var(--lime);
  color: var(--pink);
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0,92% 0,100% 18%,100% 100%,8% 100%,0 82%);
  min-width: 260px;
}
.promo-cta:hover { background: var(--black); }

/* ===== Footer ===== */
.site-footer {
  border-top: var(--border);
}
.site-footer > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--black);
  font-weight: 600;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--pink); }

/* ===== Task bank page ===== */
.bank-hero {
  padding: 48px 0 28px;
  position: relative;
  overflow: hidden;
}
.bank-hero .tasks-numeral { font-size: 160px; top: -12px; }
.bank-hero-title {
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -1.5px;
  color: var(--black);
  position: relative;
  z-index: 2;
}
.bank-hero-sub {
  margin-top: 14px;
  color: var(--gray-dark);
  font-size: 15.5px;
  font-weight: 500;
  max-width: 520px;
  position: relative;
  z-index: 2;
}
.bank-count {
  display: inline-block;
  background: var(--black);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.bank-section { padding: 10px 0 64px; }

.bank-part { margin-bottom: 44px; }
.part-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.part-title {
  font-weight: 800;
  font-size: 20px;
  color: var(--black);
  background: var(--lime);
  display: inline-block;
  padding: 5px 14px;
}
.part-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--paper);
  border: var(--border);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.cat-card-clickable { cursor: pointer; transition: background 0.15s; }
.cat-card-clickable:hover { background: var(--cream); }
.cat-card .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1.5px solid var(--pink);
}
.cat-card .handle.tl { top: -4px; left: -4px; }
.cat-card .handle.tr { top: -4px; right: -4px; }
.cat-card .handle.bl { bottom: -4px; left: -4px; }
.cat-card .handle.br { bottom: -4px; right: -4px; }
.cat-card.part2 .handle { background: var(--pink); border-color: var(--black); }
.cat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--gray);
}
.cat-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  line-height: 1.25;
  min-height: 40px;
}
.cat-diff-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
  margin-bottom: 8px;
}
.cat-diff-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cat-diff-dots .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--paper);
  box-sizing: border-box;
  flex: none;
}
.cat-diff-dots .dot.filled { background: var(--black); }
.cat-diff-dots .dot.half { background: linear-gradient(90deg, var(--black) 50%, transparent 50%); }
.cat-diff-dots .dot.unknown { border-style: dashed; border-color: var(--gray); }
.cat-card.part2 .cat-diff-dots .dot.filled { background: var(--pink); }
.cat-card.part2 .cat-diff-dots .dot.half { background: linear-gradient(90deg, var(--pink) 50%, transparent 50%); }

/* ===== Reviews page ===== */
.reviews-band {
  position: relative;
  overflow: hidden;
}
.reviews-blob {
  position: absolute;
  top: -30px;
  right: 0;
  width: min(44%, 620px);
  height: 150%;
  background: var(--lime);
  z-index: 0;
  clip-path: polygon(20% 0,100% 0,100% 60%,88% 60%,88% 100%,44% 100%,44% 78%,0 78%,0 26%,20% 26%);
}
.reviews-stars {
  position: absolute;
  bottom: -70px;
  left: -10px;
  font-weight: 800;
  font-size: 200px;
  line-height: 1;
  color: var(--black);
  opacity: .06;
  letter-spacing: -8px;
  font-family: 'Departure Mono', monospace;
  z-index: 0;
  pointer-events: none;
}
.reviews-inner { position: relative; z-index: 2; padding: 56px 48px 44px; }
.reviews-tag {
  display: inline-block;
  background: var(--pink);
  color: var(--lime);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  transform: rotate(-3deg);
  margin-bottom: 18px;
}
.reviews-title {
  font-weight: 900;
  font-size: 66px;
  line-height: .9;
  color: var(--black);
  letter-spacing: -2.5px;
  text-transform: uppercase;
}
.reviews-title .accent { font-style: italic; color: var(--pink); -webkit-text-stroke: 1.5px var(--black); }
.reviews-sub {
  margin-top: 20px;
  color: var(--gray-dark);
  font-size: 17px;
  line-height: 1.6;
  max-width: 440px;
  font-weight: 500;
}
.reviews-badges { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.reviews-badge { font-weight: 700; font-size: 13px; padding: 9px 16px; font-family: var(--font-mono); }
.reviews-badge.fill { background: var(--black); color: var(--lime); }
.reviews-badge.outline { border: 1.5px solid var(--black); color: var(--black); }

.reviews-section { padding: 38px 0 44px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.review-featured {
  grid-column: 1 / -1;
  background: var(--paper);
  border: var(--border);
  padding: 26px;
  display: flex;
  gap: 26px;
  align-items: center;
  position: relative;
}
.review-featured .top-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--lime);
  color: var(--black);
  font-family: 'Departure Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1.5px solid var(--black);
}
.review-featured .avatar-wrap { flex-shrink: 0; position: relative; }
.review-featured img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 2px solid var(--black); display: block; }
.review-featured .avatar-dot { position: absolute; bottom: -4px; right: -4px; width: 12px; height: 12px; background: var(--pink); border: 2px solid var(--black); border-radius: 50%; }
.review-featured .body { flex: 1; min-width: 0; }
.review-featured .head-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.review-featured .name { font-weight: 800; font-size: 22px; color: var(--black); }
.review-featured .cls { color: var(--gray); font-size: 12.5px; font-family: var(--font-mono); }
.review-featured .score { margin-left: auto; background: var(--black); color: var(--lime); font-weight: 800; font-size: 22px; padding: 6px 18px; font-family: var(--font-mono); }
.review-featured .quote { color: var(--black); font-weight: 600; font-size: 16px; line-height: 1.6; }

.review-card2 { background: var(--paper); border: var(--border); padding: 24px; }
.review-card2 .head-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.review-card2 img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--black); display: block; flex-shrink: 0; }
.review-card2 .name { font-weight: 800; font-size: 18px; color: var(--black); }
.review-card2 .cls { color: var(--gray); font-size: 12px; font-family: var(--font-mono); }
.review-card2 .score { background: var(--lime); color: var(--black); font-weight: 800; font-size: 20px; padding: 5px 14px; border: 1.5px solid var(--black); font-family: var(--font-mono); margin-left: auto; }
.review-card2 .quote { color: var(--black); font-weight: 600; font-size: 14.5px; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 52px; }
  .task-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .review-grid { grid-template-columns: repeat(2,1fr); }
  .tasks-numeral { font-size: 160px; }
  .tasks-glitch { left: auto; right: 20px; }
  .reviews-title { font-size: 52px; }
  .reviews-blob { width: 50%; }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .site-header > .container { padding: 18px 24px; }
  .nav-links { display: none; }
  .site-header .nav-cta { display: none; }
  .burger { display: flex; }
  .hero { flex-direction: column; padding: 100px 24px 48px; align-items: stretch; gap: 40px; }
  .hero-blob { width: 90vw; height: 60%; top: -20px; right: 0; }
  .hero-title { font-size: 42px; letter-spacing: -1.5px; margin-top: 40px; }
  .hero-tag { top: 8px; }
  .stat-card { min-width: 0; }
  .task-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .tasks-numeral { display: none; }
  .tasks-glitch { display: none; }
  .reviews-stars { display: none; }
  .reviews-blob { width: 70vw; }
  .reviews-inner { padding: 44px 24px 36px; }
  .reviews-title { font-size: 38px; }
  .review-featured { flex-direction: column; text-align: center; }
  .review-featured .head-row { justify-content: center; }
  .review-featured .score { margin-left: 0; }
  .review-card2 .head-row { flex-wrap: wrap; }
  .review-card2 .score { margin-left: 0; }
  .promo-row { flex-direction: column; }
  .site-footer > .container { flex-direction: column; align-items: flex-start; padding: 16px 24px; }
  .bank-hero-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stat-grid { flex-wrap: wrap; }
  .stat-cell { min-width: 30%; }
  .chip-row { gap: 8px; }
  .category-grid { grid-template-columns: 1fr; }
}

/* ===== Login modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  z-index: 1000;
  padding: 28px 24px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal {
  background: var(--cream);
  border: var(--border);
  width: 100%;
  max-width: 480px;
  position: relative;
  margin: auto;
  padding: 34px 30px 30px;
}
.modal .handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--lime);
  border: 1.5px solid var(--pink);
  z-index: 3;
}
.modal .handle.tl { top: -5px; left: -5px; }
.modal .handle.tr { top: -5px; right: -5px; }
.modal .handle.bl { bottom: -5px; left: -5px; }
.modal .handle.br { bottom: -5px; right: -5px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--black);
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  padding: 0;
}
.modal-close:hover { background: var(--black); color: var(--lime); }

.modal-tag {
  display: inline-block;
  background: var(--pink);
  color: var(--lime);
  font-weight: 700;
  font-size: 10.5px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  transform: rotate(-3deg);
  margin-bottom: 14px;
}
.modal-title {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1px;
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 22px;
  font-weight: 500;
}

.modal-field { margin-bottom: 15px; }
.modal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--black);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.modal-input {
  width: 100%;
  border: 1.5px solid var(--black);
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--black);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.modal-input:focus { border-color: var(--pink); }

.modal-submit {
  width: 100%;
  margin-top: 18px;
  background: var(--lime);
  color: var(--black);
  border: 1.5px solid var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  cursor: pointer;
}
.modal-submit:hover { background: var(--black); color: var(--lime); }
.modal-submit:disabled { opacity: .6; cursor: default; background: var(--lime); color: var(--black); }

.modal-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
.modal-switch a { color: var(--pink); font-weight: 700; text-decoration: underline; }

.modal-error {
  color: #d81159;
  font-size: 11.5px;
  font-family: var(--font-mono);
  margin-top: 5px;
  display: none;
}
.modal-error.show { display: block; }
.field-invalid .modal-input { border-color: #d81159; }

.modal-success { text-align: center; padding: 14px 0 6px; }
.modal-success .check {
  width: 66px;
  height: 66px;
  border: 2px solid var(--black);
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  font-weight: 800;
}
.modal-success h3 {
  font-weight: 800;
  font-size: 24px;
  color: var(--black);
  margin: 0 0 10px;
  letter-spacing: -.5px;
}
.modal-success p {
  color: var(--gray-dark);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 320px;
}

/* ===== Problem set page (task list with answers) ===== */
.pset-hero {
  padding: 40px 0 26px;
  position: relative;
  overflow: hidden;
}
.pset-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 18px;
}
.pset-back:hover { color: var(--black); }
.pset-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pset-part-tag {
  background: var(--black);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 11px;
}
.pset-num-tag {
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 11px;
  transform: rotate(-2deg);
}
.pset-title {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  color: var(--black);
}
.pset-sub {
  margin-top: 12px;
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  font-weight: 500;
}
.pset-progress {
  display: inline-block;
  margin-top: 18px;
  border: 1.5px solid var(--black);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
}

.pset-list {
  padding: 8px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.problem-card {
  background: var(--paper);
  border: var(--border);
  padding: 24px;
  position: relative;
}
.problem-card .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1.5px solid var(--pink);
}
.problem-card .handle.tl { top: -4px; left: -4px; }
.problem-card .handle.tr { top: -4px; right: -4px; }
.problem-card .handle.bl { bottom: -4px; left: -4px; }
.problem-card .handle.br { bottom: -4px; right: -4px; }

.problem-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.problem-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  background: var(--lime);
  color: var(--black);
  padding: 4px 11px;
}
.problem-diff {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
}

.problem-body {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.problem-diagram {
  flex: none;
  width: 200px;
}
.problem-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.problem-text {
  flex: 1;
  min-width: 240px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  font-weight: 500;
}
.problem-text b { font-weight: 800; }

/* real math typesetting: stacked fractions, radical bars, true exponents */
.frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  font-size: 0.86em;
  line-height: 1.15;
  margin: 0 3px;
  position: relative;
  top: 0.1em;
}
.frac .num { padding: 0 3px 2px; border-bottom: 1.3px solid currentColor; }
.frac .den { padding: 2px 3px 0; }
.root { white-space: nowrap; }
.root .radicand { border-top: 1.3px solid currentColor; padding: 1px 3px 0 1px; margin-left: 1px; }
.arc { white-space: nowrap; }
.arc::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.36em;
  margin-right: 1px;
  border: 1.3px solid currentColor;
  border-top: none;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  vertical-align: 0.05em;
}
.eq-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  font-family: var(--font-mono);
  font-size: 14px;
}
.eq-block .eq-line { padding-left: 2px; }
sup { font-weight: inherit; }

.solution {
  margin-top: 18px;
  border-top: 1.5px dashed var(--track);
  padding-top: 16px;
}
.solution-toggle {
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--black);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--black);
  background: var(--paper);
  user-select: none;
}
.solution-toggle::-webkit-details-marker { display: none; }
.solution-toggle .stoggle-arrow { font-size: 10px; }
.solution[open] .solution-toggle .stoggle-arrow { transform: rotate(180deg); }
.solution[open] .solution-toggle { background: var(--black); color: var(--lime); }
.solution-content {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray-dark);
}
.solution-content p { margin: 0 0 10px; }
.solution-answer {
  display: inline-block;
  margin-top: 6px;
  background: var(--black);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
}

.pset-more {
  border: 1.5px dashed var(--track);
  background: transparent;
  padding: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gray);
}

@media (max-width: 640px) {
  .pset-title { font-size: 30px; }
  .problem-body { flex-direction: column; align-items: stretch; }
  .problem-diagram { width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ===== Profile page ===== */
.profile-hero { padding: 40px 0 8px; }
.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-name {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1px;
  color: var(--black);
  margin-top: 12px;
}
.profile-meta {
  margin-top: 8px;
  color: var(--gray-dark);
  font-size: 14px;
  font-family: var(--font-mono);
}
.profile-logout {
  border: 1.5px solid var(--black);
  background: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 12px;
}
.profile-logout:hover { background: var(--black); color: var(--lime); }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 26px 0 60px;
}

.profile-card {
  background: var(--paper);
  border: var(--border);
  padding: 22px 22px 20px;
  position: relative;
}
.profile-card .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1.5px solid var(--pink);
}
.profile-card .handle.tl { top: -4px; left: -4px; }
.profile-card .handle.tr { top: -4px; right: -4px; }
.profile-card .handle.bl { bottom: -4px; left: -4px; }
.profile-card .handle.br { bottom: -4px; right: -4px; }

.profile-card-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.profile-big-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 42px;
  color: var(--black);
  line-height: 1;
}
.profile-big-num .unit {
  font-size: 14px;
  color: var(--gray);
  font-weight: 700;
  margin-left: 8px;
}
.profile-sub-line {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
}
.profile-delta { color: var(--black); font-weight: 700; }

.profile-progress-track {
  margin-top: 16px;
  height: 10px;
  background: var(--track);
  width: 100%;
}
.profile-progress-fill { height: 100%; background: var(--lime); border-right: 1.5px solid var(--black); }

.profile-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--track);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.profile-rank-row:last-child { border-bottom: none; }
.profile-rank-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 16px;
  background: var(--black);
  color: var(--lime);
  padding: 5px 12px;
}
.profile-rank-badge.pink { background: var(--pink); color: var(--black); }

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

/* ===== Homework (student + admin) ===== */
.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 10px 0 50px;
}
@media (max-width: 700px) { .hw-grid { grid-template-columns: 1fr; } }

.hw-card {
  background: var(--paper);
  border: var(--border);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hw-card .handle { position: absolute; width: 7px; height: 7px; background: var(--lime); border: 1.5px solid var(--pink); }
.hw-card .handle.tl { top: -4px; left: -4px; }
.hw-card .handle.tr { top: -4px; right: -4px; }
.hw-card .handle.bl { bottom: -4px; left: -4px; }
.hw-card .handle.br { bottom: -4px; right: -4px; }

.hw-card-title { font-weight: 800; font-size: 19px; color: var(--black); }
.hw-card-deadline { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray); text-transform: uppercase; }
.hw-card-deadline.overdue { color: #d81159; font-weight: 700; }
.hw-card-meta { font-size: 13.5px; color: var(--gray-dark); }
.hw-card-status {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 11px;
  background: var(--track);
  color: var(--black);
}
.hw-card-status.done { background: var(--lime); }
.hw-card-status.progress { background: var(--pink); color: var(--black); }
.hw-card .t-btn { margin-top: 6px; align-self: flex-start; }

.hw-empty {
  border: 1.5px dashed var(--track);
  padding: 30px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

.hw-timer {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  background: var(--black);
  color: var(--lime);
  padding: 8px 14px;
  margin: 6px 0 22px;
}

.hw-answer-row { margin-top: 16px; border-top: 1.5px dashed var(--track); padding-top: 14px; }
.hw-answer-row .modal-input { max-width: 260px; }

.hw-result-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 10px;
}
.hw-result-badge.correct { background: var(--lime); color: var(--black); }
.hw-result-badge.wrong { background: #d81159; color: var(--cream); }

.hw-summary-card {
  background: var(--black);
  color: var(--cream);
  padding: 26px;
  text-align: center;
  margin-bottom: 26px;
}
.hw-summary-card .big-score { font-family: var(--font-mono); font-weight: 800; font-size: 40px; color: var(--lime); }

.admin-hw-form {
  background: var(--paper);
  border: var(--border);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-hw-form .modal-field { margin-bottom: 0; }
.admin-hw-row { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-hw-row .modal-field { flex: 1; min-width: 200px; }

.hw-problem-picker {
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid var(--black);
  padding: 6px;
}
.hw-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px dashed var(--track);
  font-size: 13px;
}
.hw-picker-row:last-child { border-bottom: none; }
.hw-picker-row .id-tag { font-family: var(--font-mono); font-size: 11px; background: var(--track); padding: 2px 7px; flex-shrink: 0; }

.admin-hw-item {
  border: var(--border);
  background: var(--paper);
  padding: 20px;
  margin-bottom: 18px;
}
.admin-hw-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-hw-item-title { font-weight: 800; font-size: 17px; }
.admin-hw-item-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray); margin-top: 4px; }
.admin-hw-delete { border: 1.5px solid var(--black); background: var(--paper); font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.admin-hw-delete:hover { background: #d81159; color: var(--cream); border-color: #d81159; }

.admin-hw-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.admin-hw-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--gray); padding: 6px 8px; border-bottom: 1.5px solid var(--black); }
.admin-hw-table td { padding: 8px; border-bottom: 1px dashed var(--track); }

/* ===== Calendar ===== */
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-nav-btn {
  border: 1.5px solid var(--black);
  background: var(--paper);
  padding: 9px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.cal-nav-btn:hover { background: var(--black); color: var(--lime); }
.cal-month-title { font-weight: 800; font-size: 22px; color: var(--black); text-transform: capitalize; }

.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; font-size: 12.5px; color: var(--gray-dark); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 12px; height: 12px; border: 1.3px solid var(--black); display: inline-block; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding-bottom: 50px; }
.cal-weekday { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--gray); text-transform: uppercase; padding-bottom: 8px; }
.cal-day {
  border: 1.3px solid var(--track);
  min-height: 88px;
  padding: 6px;
  background: var(--paper);
}
.cal-day.empty { border-color: transparent; background: transparent; }
.cal-day.today { border: 2px solid var(--black); }
.cal-day-num { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: var(--black); }
.cal-event {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 5px;
  border: 1px solid var(--black);
  line-height: 1.4;
}
.cal-event.lesson { background: #ff3b3b; color: #fff; }
.cal-event.exam { background: #2ecc71; color: #000; }
.cal-event.deadline { background: #ffd23b; color: #000; }

@media (max-width: 700px) {
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 60px; padding: 3px; }
  .cal-event { font-size: 8.5px; padding: 1px 3px; }
  .cal-weekday { font-size: 9px; }
}

.admin-cal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--track);
  font-size: 13px;
}
.admin-cal-list-item:last-child { border-bottom: none; }
.admin-cal-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border: 1.3px solid var(--black); }
.admin-cal-tag.lesson { background: #ff3b3b; color: #fff; }
.admin-cal-tag.exam { background: #2ecc71; color: #000; }

/* ===== Блок управления внутри раздела (виден только админу) ===== */
.admin-block {
  border: var(--border);
  background: var(--paper);
  padding: 26px 24px 24px;
  margin-bottom: 40px;
  border-left: 6px solid var(--lime);
}
.admin-block[hidden] { display: none; }
.admin-block-title {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.6px;
  color: var(--black);
  margin: 12px 0 22px;
}
.admin-block-subtitle {
  font-weight: 800;
  font-size: 18px;
  color: var(--black);
  margin: 28px 0 14px;
}

.admin-jump-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.admin-jump {
  border: var(--border);
  background: var(--paper);
  padding: 20px;
  font-weight: 800;
  font-size: 18px;
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-jump span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--gray); }
.admin-jump:hover { background: var(--lime); }

/* ===== Список учеников в админке ===== */
.students-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.student-card {
  border: var(--border);
  background: var(--paper);
  padding: 22px 20px 18px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.student-card:hover { background: var(--cream); }
.student-card .handle { position: absolute; width: 7px; height: 7px; background: var(--lime); border: 1.5px solid var(--pink); }
.student-card .handle.tl { top: -4px; left: -4px; }
.student-card .handle.tr { top: -4px; right: -4px; }
.student-card .handle.bl { bottom: -4px; left: -4px; }
.student-card .handle.br { bottom: -4px; right: -4px; }

.student-name { font-weight: 800; font-size: 19px; color: var(--black); word-break: break-word; }
.student-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-dark);
  border-bottom: 1px dashed var(--track);
  padding-bottom: 6px;
}
.student-stat-row b { font-family: var(--font-mono); font-size: 14px; color: var(--black); }
.student-card .t-btn { align-self: flex-start; margin-top: 4px; }

.student-section-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--black);
  margin: 30px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--black);
}
.admin-cal-tag.deadline { background: #ffd23b; color: #000; }

/* ===== Mock exams (пробники) ===== */
.exam-summary-card {
  border: var(--border);
  background: var(--paper);
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
}
.exam-summary-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.exam-summary-title { font-weight: 800; font-size: 19px; }
.exam-summary-empty { color: var(--gray); font-size: 13.5px; }

.exam-hist { display: flex; align-items: flex-end; gap: 10px; height: 130px; overflow-x: auto; padding-bottom: 4px; }
.exam-hist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 46px; flex-shrink: 0; }
.exam-hist-bar {
  width: 30px;
  background: var(--lime);
  border: 1.5px solid var(--black);
  min-height: 3px;
}
.exam-hist-bar.pending { background: var(--track); }
.exam-hist-pct { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; margin-bottom: 4px; }
.exam-hist-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--gray); margin-top: 6px; white-space: nowrap; }

.exam-card-status.pending { background: #ffd23b; color: var(--black); }

.exam-timer {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 22px;
  background: var(--black);
  color: var(--lime);
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: 20px;
}
.exam-timer.low { color: #ff5c7a; }

.exam-part-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--black);
}

.exam-task-card {
  border: var(--border);
  background: var(--paper);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}
.exam-task-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.exam-task-title { font-weight: 800; font-size: 15px; }
.exam-task-points { font-family: var(--font-mono); font-size: 11px; color: var(--gray); }
.exam-task-textarea {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid var(--black);
  background: var(--cream);
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 14.5px;
  color: var(--black);
  resize: vertical;
}
.exam-task-textarea:focus { border-color: var(--pink); outline: none; }
.exam-task-score { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }
.exam-task-score.wait { color: var(--gray); font-weight: 500; }

.exam-warn-list { text-align: left; font-size: 13.5px; color: var(--gray-dark); line-height: 1.6; margin: 0 0 4px; padding-left: 18px; }
.exam-warn-actions { display: flex; gap: 12px; margin-top: 8px; }
.exam-warn-actions .modal-submit { margin-top: 0; }
.exam-warn-cancel {
  width: 100%;
  border: 1.5px solid var(--black);
  background: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  cursor: pointer;
}
.exam-warn-cancel:hover { background: var(--track); }

.examp2-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.examp2-row .modal-input { margin-bottom: 0; }
.examp2-row .examp2-points { max-width: 90px; flex-shrink: 0; }
.examp2-remove {
  border: 1.5px solid var(--black);
  background: var(--paper);
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 14px;
}
.examp2-remove:hover { background: #d81159; color: var(--cream); border-color: #d81159; }

.exam-grade-row { border-top: 1px dashed var(--track); padding: 10px 0; font-size: 13px; }
.exam-grade-row-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.exam-grade-answer { background: var(--track); padding: 8px 10px; font-size: 13px; margin-bottom: 8px; white-space: pre-wrap; }
.exam-grade-controls { display: flex; align-items: center; gap: 8px; }
.exam-grade-controls input { width: 60px; border: 1.5px solid var(--black); padding: 6px 8px; font-family: var(--font-mono); }
.exam-grade-controls button { border: 1.5px solid var(--black); background: var(--lime); font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; padding: 6px 12px; cursor: pointer; }
.exam-grade-controls button:hover { background: var(--black); color: var(--lime); }

/* ===== Разбор задачи (подгружается с сервера) ===== */
.solution-lock { margin-top: 16px; border-top: 1.5px dashed var(--track); padding-top: 14px; }
.solution-load {
  background: var(--paper);
  border: 1.5px solid var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--black);
}
.solution-load:hover { background: var(--lime); }
.solution-load:disabled { opacity: .6; cursor: default; }
.solution-slot:not(:empty) { margin-top: 14px; }
.solution-error {
  font-size: 13.5px;
  color: var(--gray);
  background: var(--track);
  padding: 10px 12px;
}
