.review-notebook-view,
.unified-review-view {
  padding-top: 1rem;
}

.review-notebook-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  color: var(--on-brand);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--indigo-deep);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.review-notebook-hero::after {
  position: absolute;
  right: 8%;
  bottom: -90px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 64px rgba(255, 255, 255, 0.018);
  content: "";
}

.review-notebook-hero > * { position: relative; z-index: 1; }

.review-notebook-hero .eyebrow { color: #9dc6c2; }

.review-notebook-hero h1 {
  max-width: 760px;
  margin: 0.6rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.review-notebook-hero > div:first-child > p:last-child {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.9;
}

.review-notebook-seal {
  display: grid;
  width: clamp(112px, 15vw, 160px);
  aspect-ratio: 1;
  place-content: center;
  color: #f5c3b8;
  text-align: center;
  border: 4px double var(--vermilion);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.review-notebook-seal strong {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 0.9;
}

.review-notebook-seal span {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.review-notebook-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.review-notebook-stats div {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface-card);
}

.review-notebook-stats span {
  color: var(--text-muted);
  font-size: 0.56rem;
  font-weight: 900;
}

.review-notebook-stats strong {
  color: var(--text-accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.review-notebook-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.review-notebook-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.review-notebook-heading h2 {
  margin: 0.35rem 0 0;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}

.review-notebook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.review-notebook-filters button {
  padding: 0.52rem 0.75rem;
  color: var(--text-muted);
  background: var(--surface-page);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
}

.review-notebook-filters button[aria-pressed="true"] {
  color: var(--on-brand);
  background: var(--surface-brand-strong);
  border-color: var(--text-heading);
}

.review-notebook-filters span { margin-left: 0.18rem; }

.review-notebook-list {
  display: grid;
  gap: 0.65rem;
}

.review-index-card {
  --review-tab: var(--mineral);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.review-index-card--japan { --review-tab: var(--vermilion); }
.review-index-card--world { --review-tab: #568b87; }
.review-index-card--other { --review-tab: #a7833f; }

.review-index-card__tab {
  display: grid;
  place-items: center;
  padding: 0.8rem 0.55rem;
  color: var(--on-brand);
  text-align: center;
  background: var(--review-tab);
  font-size: 0.58rem;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.review-index-card__copy {
  padding: 1rem;
}

.review-index-card__copy small {
  color: var(--text-muted);
  font-size: 0.54rem;
  font-weight: 800;
}

.review-index-card__copy h3 {
  margin: 0.35rem 0 0.55rem;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.review-index-card__copy p {
  margin: 0;
  color: var(--vermilion-dark);
  font-size: 0.64rem;
  font-weight: 750;
}

.review-index-card__copy p span {
  margin-right: 0.45rem;
  color: var(--text-muted);
  font-size: 0.52rem;
}

.review-index-card__meta {
  display: grid;
  min-width: 170px;
  align-content: center;
  gap: 0.55rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-left: 1px solid var(--line);
}

.review-index-card__meta > span {
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 900;
  text-align: center;
}

.review-index-card__meta button {
  padding: 0.65rem 0.8rem;
  color: var(--on-brand);
  background: var(--surface-brand-strong);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: 900;
}

.review-notebook-empty {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  color: var(--text-muted);
  background: var(--surface-page);
  border-radius: 0.8rem;
}

.review-notebook-empty > span {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--mineral-dark);
  border: 3px double var(--mineral);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  transform: rotate(-5deg);
}

.review-notebook-empty strong { color: var(--text-accent); }
.review-notebook-empty p { margin: 0.25rem 0 0; font-size: 0.68rem; }

.learning-record-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.learning-record-settings strong { color: var(--text-accent); font-size: 0.72rem; }
.learning-record-settings p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.62rem; }

.text-button--danger { color: var(--vermilion-dark); }

.unified-review-sheet::after { content: "復習"; }
