.home-intro {
  padding: 4px 2px 2px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-block + .section-block {
  margin-top: 10px;
}

.study-grid {
  display: grid;
  gap: 12px;
}

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

.study-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.study-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 8px;
}

/* Study — Days tab */
.study-card--days {
  padding: 10px;
  gap: 8px;
}

.study-card--days img {
  width: 100%;
  max-width: none;
}

.study-day-label {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 3px solid;
}

/* Study — Numbers tab */
.study-number-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.study-num-id {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.study-num-day {
  font-size: 1rem;
  font-weight: 800;
}

/* Study — Tens tab */
.tens-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 0;
}

.tens-4col {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tens-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.tens-col:last-child {
  border-right: none;
}

.tens-wrap-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
}

.tens-wrap-from {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-soft);
}

.tens-wrap-to {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
}

.tens-wrap-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0 6px;
}

.tens-wrap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tens-wrap-grid .tens-cell {
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tens-wrap-grid .tens-cell:nth-child(3n) {
  border-right: none;
}

.tens-wrap-grid .tens-cell:nth-last-child(-n+3) {
  border-bottom: none;
}

/* Study — Leap year tab */
.leap-rule-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.leap-parity {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.leap-unit {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.leap-exception--no {
  color: #ff1a45;
  font-weight: 900;
}

.leap-exception--yes {
  color: #00e676;
  font-weight: 900;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-hint-trigger {
  align-self: center;
  min-width: 120px;
}

.separator {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

/* Study — Month table */
.month-table {
  width: 100%;
  border-collapse: collapse;
}

.month-row td {
  padding: 7px 0;
  vertical-align: middle;
}

.month-row__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.month-row__value {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding-left: 14px;
  white-space: nowrap;
}

.month-group-last td {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.month-group-last:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

.month-group-first td {
  padding-top: 12px;
}

.month-group-first:first-child td {
  padding-top: 0;
}

/* Progress — stat strip */
.stat-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-strip__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.stat-strip__item:last-child {
  border-right: none;
}

.stat-strip__value {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.stat-strip__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Progress — module rows */
.progress-module-list {
  display: flex;
  flex-direction: column;
}

.progress-module-row {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.progress-module-row:last-child {
  border-bottom: none;
}

.study-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.study-tabs .segmented__button {
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  border-radius: var(--radius-sm);
}
