/* v24 fixes: square year sheet, wrongbook overlap, focus panel */
.answer-sheet {
  grid-template-columns: repeat(2, minmax(112px, 1fr)) !important;
  gap: 10px !important;
}
.sheet-btn.sheet-number-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 56px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: start !important;
  padding: 9px 11px !important;
  background: #fff !important;
  border: 1.5px solid #dbe7f5 !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
.sheet-btn .sheet-year {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  color: #64748b;
}
.sheet-btn b {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
  color: inherit;
}
.sheet-btn.current {
  background: linear-gradient(135deg, #0b6fff, #075de0) !important;
  color: #fff !important;
  border-color: #0b6fff !important;
  transform: translateY(-1px);
}
.sheet-btn.current .sheet-year { color: rgba(255,255,255,.82); }
.sheet-btn.answered:not(.current) { background: #f7fffb !important; color: #11984f !important; border-color: #86efac !important; }
.sheet-btn.wrong:not(.current) { background: #fff7f7 !important; color: #ef4444 !important; border-color: #fecaca !important; }
.sheet-btn.favorite:not(.current) { box-shadow: inset 0 -3px 0 #fbbf24 !important; }
.wrong-preview { overflow: hidden; }
.wrong-preview-item {
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr) 28px !important;
  min-height: 46px !important;
  padding: 9px 8px 9px 10px !important;
}
.wrong-preview-item b {
  font-size: 13px !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wrong-preview-item span { font-size: 12px !important; }
.wrong-preview-item .wrong-remove,
.wrong-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  justify-self: end;
  padding: 4px;
}
.focus-panel {
  margin: 24px 0 80px;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #dbe7f5;
  box-shadow: 0 18px 48px rgba(15,23,42,.07);
}
.focus-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.focus-head > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #086cff;
  color: #fff;
  font-weight: 950;
}
.focus-head h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.focus-head p,
.focus-summary { margin: 0; color: #64748b; line-height: 1.75; font-weight: 650; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.focus-card {
  padding: 16px;
  border: 1px solid #e7eef8;
  border-radius: 20px;
  background: #f8fbff;
}
.focus-card h4 { margin: 0 0 12px; font-size: 17px; }
.focus-tags { display: grid; gap: 10px; }
.focus-tag {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8f0fb;
}
.focus-tag b { font-size: 14px; color: #0f172a; }
.focus-tag small { color: #086cff; font-weight: 900; font-size: 12px; }
.focus-tag em { color: #64748b; font-size: 12px; line-height: 1.55; font-style: normal; }
.focus-recs {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: #334155;
  font-weight: 700;
  line-height: 1.65;
}
@media (max-width: 1180px) {
  .focus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .answer-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sheet-btn.sheet-number-btn { height: 52px !important; padding: 8px 9px !important; }
  .focus-panel { margin: 16px 0 90px; padding: 18px; border-radius: 20px; }
  .focus-head { align-items: center; }
  .focus-head > span { width: 46px; height: 46px; border-radius: 15px; }
}
