:root {
  --bg: #f2ece0;
  --bg2: #ece5d6;
  --bg3: #e4dccb;
  --bg4: #d6ccb8;
  --bg5: #c8bca4;
  --text: #2a2018;
  --text2: #6a5c48;
  --text3: #a8987e;
  --text4: #c8b89a;
  --red: #8b3a2a;
  --red-deep: #702d21;
  --red2: #b04a36;
  --red3: #d4604a;
  --redbg: #f0e0d8;
  --line: linear-gradient(to right, var(--bg4), transparent);
  --shadow: 0 18px 50px rgba(92, 68, 43, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(180, 120, 80, 0.07), transparent 32rem),
    radial-gradient(circle at 92% 92%, rgba(139, 58, 42, 0.05), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to right, var(--red2), var(--red2)) left bottom / 0 1.5px no-repeat,
    linear-gradient(to right, var(--bg4), var(--bg4)) left bottom / 100% 1px no-repeat;
  color: var(--text);
  padding: 0.95rem 0 0.78rem;
  outline: 0;
  transition: background-size 0.35s ease, color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text4);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  background-size: 100% 1.5px, 100% 1px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.85;
}

select {
  appearance: none;
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg5);
}

#app {
  position: relative;
  min-height: 100vh;
}

.paper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.paper-noise,
.paper-ornaments {
  position: absolute;
  inset: 0;
}

.paper-noise {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.paper-ornaments {
  width: 100%;
  height: 100%;
  color: var(--red);
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 1.1rem calc(3rem + env(safe-area-inset-bottom));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: calc(1.2rem + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(242, 236, 224, 0.95), rgba(242, 236, 224, 0.82) 76%, rgba(242, 236, 224, 0));
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.65rem;
  background: linear-gradient(to right, var(--bg4), transparent);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.62rem 0 1.08rem;
}

.brand-spine {
  width: 2px;
  min-height: 4.8rem;
  margin-top: 0.15rem;
  background: linear-gradient(to bottom, var(--red2), transparent);
  opacity: 0.5;
}

.brand-copy {
  min-width: 0;
}

.brand-mark,
.section-kicker,
.timeline-type,
.comparison-title,
.summary-item-label,
.step-label,
.today-pill {
  margin: 0;
  color: var(--text4);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.brand-mark {
  color: var(--text3);
}

.brand-title {
  margin: 0.42rem 0 0;
  font-size: clamp(28px, 5vw, 32px);
  font-weight: 200;
  line-height: 1.16;
}

.brand-subtitle {
  margin: 0.72rem 0 0;
  max-width: 36rem;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.95;
}

.top-nav {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.08rem 0 0.8rem;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0.62rem 0.28rem;
  color: var(--text3);
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-tab:hover {
  color: var(--text2);
}

.nav-tab.is-active {
  color: var(--red);
}

.nav-tab.is-active::after {
  transform: scaleX(1);
}

.view-shell {
  padding-top: 1.5rem;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  animation: view-in 0.4s ease both;
}

.today-page {
  gap: 1.35rem;
}

.page > * {
  opacity: 0;
  animation: view-in 0.4s ease forwards;
}

.page > *:nth-child(1) {
  animation-delay: 0.08s;
}

.page > *:nth-child(2) {
  animation-delay: 0.15s;
}

.page > *:nth-child(3),
.page > *:nth-child(4),
.page > *:nth-child(5),
.page > *:nth-child(6),
.page > *:nth-child(7) {
  animation-delay: 0.28s;
}

.card,
.card-subtle {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-header,
.detail-header,
.section-head,
.hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-header,
.detail-header {
  position: relative;
  padding-bottom: 1rem;
}

.page-header::after,
.detail-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, var(--bg4), transparent);
}

.page-title,
.detail-title {
  margin: 0.3rem 0 0;
  font-size: clamp(28px, 4.6vw, 32px);
  font-weight: 200;
  line-height: 1.12;
}

.section-head .page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-card {
  position: relative;
  display: block;
  padding: 0.9rem 0 2.15rem;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1.1rem -0.9rem 1.6rem -0.7rem;
  background: radial-gradient(circle at 11% 14%, rgba(176, 74, 54, 0.09), transparent 19rem);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, color-mix(in srgb, var(--red2) 22%, var(--bg4)), transparent 86%);
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: min(100%, 38rem);
}

.today-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  margin-bottom: 1.05rem;
  padding: 0.22rem 0.62rem;
  border-radius: 1px;
  background: var(--red);
  color: var(--bg);
  box-shadow: 0 8px 18px rgba(139, 58, 42, 0.08);
}

.big-word {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  font-size: clamp(76px, 20vw, 96px);
  font-weight: 200;
  line-height: 0.86;
  color: var(--red);
  -webkit-text-stroke: 0.5px color-mix(in srgb, var(--red) 70%, var(--text) 30%);
  text-shadow: 0 16px 28px rgba(139, 58, 42, 0.08);
}

.big-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: color-mix(in srgb, var(--red2) 78%, var(--red) 22%);
  box-shadow: 0 1px 0 rgba(139, 58, 42, 0.16);
  opacity: 0.98;
}

.hero-card .meta-line {
  color: var(--text3);
}

.today-stage-divider {
  height: 1px;
  margin: -0.85rem 0 -0.65rem;
  background: linear-gradient(to right, color-mix(in srgb, var(--red2) 14%, var(--bg4)), transparent 88%);
}

.meta-line {
  margin: 0;
  color: var(--text4);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.status-accent {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.chip-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--bg4);
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    padding-left 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.primary-button {
  border-color: var(--red-deep);
  background: var(--red-deep);
  color: var(--bg);
  box-shadow: 0 12px 24px rgba(139, 58, 42, 0.14);
}

.primary-button:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-1px);
}

.primary-button:disabled {
  border-color: var(--bg4);
  background: color-mix(in srgb, var(--bg3) 90%, #fff 10%);
  color: var(--text3);
  box-shadow: none;
  opacity: 1;
}

.secondary-button,
.ghost-button,
.chip-button {
  color: var(--text2);
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.chip-button:hover:not(:disabled) {
  border-color: var(--red2);
  color: var(--red);
}

.word-switch {
  align-self: flex-start;
  margin-top: 1.15rem;
  border-color: color-mix(in srgb, var(--red) 24%, var(--bg4));
  background: color-mix(in srgb, var(--bg) 86%, #fff 14%);
  box-shadow: 0 10px 22px rgba(139, 58, 42, 0.05);
}

.word-switch:hover:not(:disabled) {
  border-color: var(--red);
  background: color-mix(in srgb, var(--redbg) 68%, #fff 32%);
}

.step-action {
  align-self: flex-start;
  padding: 12px 32px;
}

.ghost-button {
  color: var(--text3);
}

.danger-button {
  min-height: auto;
  padding: 0.25rem 0;
  border-color: transparent;
  color: var(--text3);
}

.danger-button:hover:not(:disabled),
.word-remove:hover:not(:disabled) {
  color: var(--red);
}

.danger-button.is-confirming,
.word-remove.is-confirming {
  color: var(--red);
  opacity: 1 !important;
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--text2);
}

.text-button:hover:not(:disabled) {
  color: var(--red);
}

.stack,
.timeline-stack,
.list-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.interactive-card {
  transition: transform 0.2s ease;
}

.interactive-card:hover {
  transform: translateY(-1px);
}

.chip-row,
.filters,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.row-actions {
  align-items: center;
  justify-content: flex-end;
}

.chip-button {
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text3);
}

.chip-button.is-active {
  border-color: var(--red);
  background: var(--redbg);
  color: var(--red);
}

.tag-choice {
  border-color: color-mix(in srgb, var(--tag-color, var(--bg4)) 42%, var(--bg4));
  color: var(--tag-color, var(--text2));
  opacity: 0.66;
}

.tag-choice.is-active {
  border-color: var(--tag-color, var(--red));
  background: var(--tag-color, var(--red));
  color: #fff;
  opacity: 1;
}

.body-copy,
.note-text,
.history-text,
.summary-text,
.quote-text,
.completion-note {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
}

.summary-text,
.note-text {
  color: var(--text);
}

.quote-text,
.italic,
.prompt-note {
  color: var(--text2);
  font-style: italic;
}

.muted {
  color: var(--text2);
}

.weak {
  color: var(--text3);
}

.clamp-one,
.clamp-two {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.clamp-one {
  -webkit-line-clamp: 1;
}

.clamp-two {
  -webkit-line-clamp: 2;
}

.revisit-banner,
.history-callout,
.notebook-list-card,
.timeline-card,
.comparison-banner,
.history-item {
  position: relative;
  padding-left: 1rem;
}

.revisit-banner::before,
.comparison-banner::before,
.timeline-card::before,
.history-item::before,
.notebook-list-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--red2), transparent);
}

.history-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--bg4), transparent);
}

.quote-mark {
  margin: 0.48rem 0 0.36rem;
  font-size: 14px;
}

.revisit-banner {
  padding: 0.9rem 0.95rem 0.86rem 1.4rem;
  background: linear-gradient(to right, rgba(176, 74, 54, 0.055), rgba(176, 74, 54, 0) 62%);
}

.revisit-banner::before {
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.revisit-banner .section-kicker {
  color: var(--red2);
}

.revisit-banner .quote-mark {
  margin: 0.58rem 0 0.42rem;
  color: var(--text);
  font-size: 15px;
  line-height: 1.88;
  font-style: normal;
}

.revisit-banner .meta-line {
  margin-top: 0.28rem;
  color: var(--text3);
}

.today-step {
  animation: view-in 0.4s ease both;
}

.today-step.stack {
  gap: 0.62rem;
}

.step-header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 0.9rem;
  padding: 0.12rem 0 0.3rem;
}

.step-number {
  color: var(--red);
  font-size: clamp(38px, 7vw, 48px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.step-meta {
  min-width: 0;
  padding-bottom: 0.34rem;
}

.step-line {
  align-self: center;
  height: 2px;
  background: linear-gradient(to right, color-mix(in srgb, var(--red2) 40%, var(--bg4)), transparent 84%);
}

.step-label {
  color: var(--red);
  letter-spacing: 0.22em;
}

.prompt-title {
  margin: 0;
  font-size: clamp(18px, 3.4vw, 21px);
  font-weight: 300;
  line-height: 1.78;
}

.today-step .prompt-title {
  line-height: 1.62;
}

.prompt-block {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-width: 38rem;
}

.today-step textarea {
  padding-top: 0.42rem;
  padding-bottom: 0.72rem;
}

.today-understanding {
  min-height: 84px;
}

.prompt-note {
  margin: 0.3rem 0 0;
  font-size: 14px;
  line-height: 1.85;
}

.movie-card {
  padding: 1rem 0 1rem 1rem;
}

.movie-card::before,
.movie-card::after,
.divider {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, var(--bg4), transparent);
}

.movie-card::before {
  margin-bottom: 1rem;
}

.movie-card::after {
  margin-top: 1rem;
}

.movie-bookmark {
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 0 0 2px 2px;
  background: var(--red);
  opacity: 0.85;
}

.movie-title {
  margin: 0.12rem 0 0;
  font-size: clamp(28px, 5vw, 32px);
  font-weight: 200;
  line-height: 1.16;
}

.pause-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 4.5rem 0;
  text-align: center;
}

.pause-card .step-action {
  align-self: center;
}

.pause-ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--red);
  opacity: 0.3;
}

.pause-ornament span {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.pause-ornament i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pause-line {
  margin: 0;
  font-size: clamp(20px, 4vw, 22px);
  font-weight: 200;
}

.pause-line .muted,
.pause-line .focus {
  display: block;
}

.pause-line .focus {
  color: var(--text);
}

.summary-grid,
.film-grid,
.detail-grid {
  display: grid;
}

.summary-grid {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.35rem;
}

.summary-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--bg4) calc(50% - 0.5px), var(--bg4) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--bg4) calc(50% - 0.5px), var(--bg4) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}

.summary-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(7.25rem, 17vw, 8.5rem);
  padding: 1.15rem 1.1rem 1.35rem;
}

.summary-cell:nth-child(odd) {
  padding-left: 0;
  padding-right: 1.85rem;
}

.summary-cell:nth-child(even) {
  padding-left: 1.55rem;
  padding-right: 0.3rem;
}

.summary-cell:nth-child(-n + 2) {
  padding-bottom: 1.55rem;
}

.summary-cell:nth-child(n + 3) {
  padding-top: 1.3rem;
}

.summary-cell--topic {
  position: relative;
}

.summary-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--red);
  opacity: 0.7;
}

.summary-item-title {
  margin: 0.55rem 0 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 200;
  line-height: 1.25;
  color: var(--red);
}

.summary-text {
  margin-top: 0.55rem;
}

.compare-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1rem;
  position: relative;
}

.compare-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, var(--bg4), transparent);
}

.comparison-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.comparison-title {
  flex: 0 0 auto;
  width: 2.1rem;
  padding-top: 0.22rem;
  color: var(--text4);
}

.comparison-now {
  color: var(--text);
}

.completion-note {
  font-size: 13px;
}

.detail-grid {
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.list-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.95rem 1rem;
  transition: padding-left 0.2s ease;
}

.list-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22rem;
  bottom: 0.22rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--bg4), transparent);
  transition: background 0.2s ease;
}

.list-row:hover::before {
  background: linear-gradient(to bottom, var(--red2), transparent);
}

.list-row:hover {
  padding-left: calc(1rem + 4px);
}

.row-title {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.empty-state {
  padding: 4.5rem 0;
  text-align: center;
}

.empty-state p {
  margin: 0 0 1rem;
  color: var(--text3);
  font-size: 14px;
  line-height: 1.95;
}

.save-badge {
  color: var(--text3);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.save-badge.is-visible {
  opacity: 1;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.tag-pill,
.weight-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, var(--bg3)) 22%, transparent);
  color: var(--tag-color, var(--text3));
  font-size: 10px;
  letter-spacing: 0.12em;
}

.weight-pill--heavy {
  --tag-color: var(--red);
}

.weight-pill--light {
  --tag-color: var(--text3);
}

.notebook-list-card {
  transition: padding-left 0.2s ease;
}

.notebook-list-card::before {
  width: 1px;
  background: linear-gradient(to bottom, var(--bg4), transparent);
  transition: background 0.2s ease;
}

.notebook-list-card:hover {
  padding-left: calc(1rem + 4px);
}

.notebook-list-card:hover::before {
  background: linear-gradient(to bottom, var(--red2), transparent);
}

.note-card,
.timeline-card,
.hit-card,
.word-chip,
.film-card,
.notebook-list-card {
  position: relative;
}

.note-card {
  padding-left: 1rem;
}

.note-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  bottom: 0.28rem;
  width: 3px;
  background: var(--tag-color, var(--bg4));
}

.sticky-composer {
  position: sticky;
  bottom: 0;
  padding: 1rem 0 0.3rem;
  background: linear-gradient(180deg, rgba(242, 236, 224, 0), rgba(242, 236, 224, 0.92) 20%, rgba(242, 236, 224, 1) 100%);
}

.comparison-banner {
  padding-top: 0.2rem;
}

.comparison-banner::before {
  width: 2px;
}

.film-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.film-card {
  padding-top: 1rem;
}

.film-card::before,
.hit-card--heavy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 28%;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, var(--red2), transparent);
}

.hit-card {
  padding: 1rem 0;
}

.hit-card--heavy .hit-title {
  font-size: 22px;
  font-weight: 200;
}

.hit-card--light .hit-title {
  font-size: 17px;
  font-weight: 200;
}

.hit-title {
  margin: 0;
  line-height: 1.45;
}

.timeline-card[data-type="today"]::before {
  background: linear-gradient(to bottom, var(--red2), transparent);
}

.timeline-card[data-type="hit"]::before {
  background: linear-gradient(to bottom, #9888b8, transparent);
}

.timeline-card .row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
}

.timeline-word {
  color: var(--red);
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem 0.8rem;
}

.word-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.06rem 0;
}

.word-chip--soft {
  color: var(--text3);
  font-size: 14px;
}

.word-chip--warm {
  color: var(--text2);
  font-size: 15px;
}

.word-chip--bright {
  color: var(--red2);
  font-size: 17px;
  font-weight: 400;
}

.word-remove {
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0;
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.back-button {
  color: var(--text3);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.back-button:hover {
  color: var(--red);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(54, 38, 26, 0.24);
  z-index: 40;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1rem 1rem 1.1rem;
  border-top: 2px solid var(--red);
  border-radius: 1px;
  background: color-mix(in srgb, var(--bg) 78%, #fff 22%);
  box-shadow: var(--shadow);
  animation: modal-in 0.3s ease both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 200;
  line-height: 1.3;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.7;
}

.radio-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.radio-card {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.65rem;
  min-width: 180px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--bg4);
  border-radius: 999px;
  background: transparent;
}

.radio-card input {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}

.radio-card span {
  color: var(--text);
  font-size: 13px;
}

.radio-card small {
  color: var(--text3);
  font-size: 11px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (hover: hover) {
  [data-action^="delete-"],
  .word-remove {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .list-row:hover [data-action^="delete-"],
  .note-card:hover [data-action^="delete-"],
  .hit-card:hover [data-action^="delete-"],
  .timeline-card:hover [data-action^="delete-"],
  .word-chip:hover .word-remove,
  .detail-header:hover [data-action^="delete-"] {
    opacity: 1;
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .modal-overlay {
    align-items: center;
  }

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

  .detail-grid > .card:first-child,
  .detail-grid > .card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 719px) {
  .page-header,
  .detail-header,
  .section-head,
  .hero-card,
  .inline-form,
  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header > button,
  .modal-actions button,
  .inline-form .primary-button,
  .detail-header .row-actions {
    width: 100%;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-spine {
    min-height: 4.2rem;
  }

  .row-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid::before {
    display: none;
  }

  .summary-cell,
  .summary-cell:nth-child(odd),
  .summary-cell:nth-child(even),
  .summary-cell:nth-child(-n + 2),
  .summary-cell:nth-child(n + 3) {
    min-height: auto;
    padding: 1rem 0;
  }

  .summary-cell {
    border-bottom: 1px solid var(--bg4);
  }

  .summary-cell:last-child {
    border-bottom: 0;
  }

  .comparison-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}
