.updates-summary-panel,
.updates-feed-shell {
  background: #fffdf8;
  border: 1px solid #e3d8c8;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.05);
}

.updates-summary-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.updates-summary-copy {
  display: grid;
  gap: 6px;
}

.updates-summary-copy strong {
  font-size: 1.05rem;
  color: #1f2933;
}

.updates-summary-copy span {
  color: #5c6670;
  line-height: 1.6;
}

.updates-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.updates-filter-btn {
  appearance: none;
  border: 1px solid #d7cbb8;
  background: #f5eee2;
  color: #364152;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.updates-filter-btn:hover {
  background: #efe6d6;
  border-color: #c9b99d;
}

.updates-filter-btn.active {
  background: #243447;
  border-color: #243447;
  color: #fff;
}

.updates-feed-shell {
  padding: 24px 22px 28px;
}

.updates-feed {
  display: grid;
  gap: 24px;
}

.updates-day-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
}

.updates-day-group.is-planned-group .updates-day-date {
  color: #8f4f00;
}

.updates-day-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.updates-day-date {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18222f;
}

.updates-day-meta {
  color: #697386;
  font-size: 13px;
}

.updates-day-list {
  display: grid;
  gap: 14px;
}

.update-entry-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e7dece;
  border-radius: 16px;
  background: #fff;
}

.update-entry-main {
  display: grid;
  gap: 12px;
}

.update-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.update-entry-title-block {
  display: grid;
  gap: 6px;
}

.update-entry-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #1f2933;
}

.update-entry-title a {
  color: inherit;
  text-decoration: none;
}

.update-entry-title a:hover {
  text-decoration: underline;
}

.update-entry-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: #5c6670;
  font-size: 13px;
}

.update-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.update-entry-badge.planned {
  background: #fff0db;
  color: #8f4f00;
}

.update-entry-badge.archive_upload_planned {
  background: #e8f1ff;
  color: #24508a;
}

.update-entry-badge.completed {
  background: #e3f3ea;
  color: #18603b;
}

.update-entry-badge.archive_upload {
  background: #e7eef7;
  color: #22496f;
}

.update-entry-body {
  color: #314051;
  line-height: 1.75;
  white-space: pre-wrap;
}

.update-entry-strip-shell {
  overflow: hidden;
}

.update-entry-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.update-entry-strip[data-dragging="true"] {
  cursor: grabbing;
}

.update-entry-strip-item {
  display: grid;
  gap: 10px;
  min-width: 138px;
  max-width: 138px;
  color: #243140;
  text-decoration: none;
  flex: 0 0 auto;
}

.update-entry-strip-item:hover .update-entry-strip-title {
  text-decoration: underline;
}

.update-entry-strip-cover {
  width: 138px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #e5ddd2;
  border: 1px solid #ddd1bd;
  box-shadow: 0 10px 22px rgba(37, 47, 63, 0.08);
}

.update-entry-strip-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-entry-strip-title {
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 700;
  color: #243140;
  word-break: keep-all;
}

.update-entry-upload {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
}

.update-entry-cover {
  width: 88px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #e5ddd2;
  border: 1px solid #ddd1bd;
}

.update-entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-entry-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #776b5b;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.update-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22496f;
  font-weight: 700;
  text-decoration: none;
}

.update-entry-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .updates-summary-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .updates-filter-bar {
    justify-content: flex-start;
  }

  .updates-day-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .updates-day-rail {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .updates-feed-shell,
  .updates-summary-panel {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .updates-filter-bar {
    gap: 8px;
  }

  .updates-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .update-entry-card {
    padding: 16px;
    border-radius: 14px;
  }

  .update-entry-upload {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .update-entry-cover {
    width: 72px;
    border-radius: 10px;
  }

  .update-entry-strip {
    gap: 12px;
  }

  .update-entry-strip-item {
    min-width: 116px;
    max-width: 116px;
  }

  .update-entry-strip-cover {
    width: 116px;
    border-radius: 12px;
  }

  .update-entry-strip-title {
    font-size: 0.88rem;
  }
}
