.patch-notes-view.active {
  display: block;
}

.patch-notes-page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 64px;
}

.patch-notes-hero {
  display: grid;
  gap: 9px;
  padding: 22px 26px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(94, 61, 40, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 235, 0.76);
  box-shadow: 0 12px 30px rgba(66, 43, 28, 0.08);
}

.patch-notes-hero-top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.patch-notes-hero-top .eyebrow {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.patch-notes-hero h2 {
  margin: 0;
}

.patch-notes-intro {
  max-width: none;
  margin: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}

.patch-notes-channel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid rgba(111, 49, 39, 0.34);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 248, 226, 0.9), rgba(226, 203, 148, 0.52));
  color: #6d2b24;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  font-family: var(--ui-font, "Marcellus SC", Georgia, serif);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-decoration: none;
}

.patch-notes-channel:hover {
  border-color: rgba(123, 45, 36, 0.56);
  background: linear-gradient(180deg, rgba(249, 235, 200, 0.98), rgba(218, 187, 126, 0.72));
  color: #7b2d25;
}

.patch-notes-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 220px) minmax(130px, 170px);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(94, 61, 40, 0.19);
  border-radius: 12px;
  background: rgba(250, 240, 211, 0.62);
}

.patch-notes-controls label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.patch-notes-controls input,
.patch-notes-controls select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(104, 70, 47, 0.3);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.95);
  color: inherit;
  font: inherit;
}

.patch-notes-status {
  min-height: 24px;
  padding: 12px 2px 8px;
  font-size: 0.88rem;
  opacity: 0.74;
}

.patch-notes-feed {
  display: grid;
  gap: 14px;
}

.patch-note-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(94, 61, 40, 0.2);
  border-radius: 13px;
  background: rgba(255, 252, 242, 0.94);
  box-shadow: 0 7px 20px rgba(58, 38, 25, 0.07);
}

.patch-note-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 13px 0 0 13px;
  background: currentColor;
  opacity: 0.24;
}

.patch-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.patch-note-kind {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(98, 61, 42, 0.22);
  border-radius: 999px;
  background: rgba(111, 61, 42, 0.08);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.patch-note-meta time {
  opacity: 0.7;
}

.patch-note-card h3 {
  margin: 0 0 11px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.patch-note-text {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
  line-height: 1.48;
}

.patch-note-paragraph {
  margin: 0;
}

.patch-note-point {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.patch-note-point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border: 1px solid rgba(111, 49, 39, 0.32);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(142, 62, 48, 0.13), rgba(115, 69, 42, 0.06));
  color: #7a342b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.55);
}

.patch-note-point-text {
  min-width: 0;
}

.patch-note-highlight {
  padding: 0 0.12em;
  border-radius: 3px;
  background: rgba(212, 168, 62, 0.34);
  color: inherit;
  box-shadow: 0 0 0 1px rgba(148, 94, 31, 0.12);
}

.patch-note-card.is-focused {
  outline: 2px solid rgba(126, 45, 37, 0.48);
  outline-offset: 3px;
  box-shadow: 0 10px 28px rgba(96, 43, 31, 0.16);
}

.patch-note-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(94, 61, 40, 0.2);
}

.patch-note-card footer a {
  font-size: 0.88rem;
  font-weight: 700;
}

.patch-note-permalink {
  color: #7a3128;
}

.patch-notes-empty {
  padding: 34px 20px;
  border: 1px dashed rgba(94, 61, 40, 0.28);
  border-radius: 12px;
  text-align: center;
  opacity: 0.74;
}

@media (max-width: 1050px) {
  .patch-notes-intro {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .patch-notes-page {
    width: min(100% - 18px, 1120px);
    margin-bottom: 44px;
  }

  .patch-notes-hero {
    gap: 12px;
    padding: 18px;
  }

  .patch-notes-hero-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .patch-notes-hero-top .eyebrow {
    width: 100%;
  }

  .patch-notes-channel {
    align-self: flex-start;
  }

  .patch-notes-controls {
    grid-template-columns: 1fr 1fr;
  }

  .patch-notes-search {
    grid-column: 1 / -1;
  }

  .patch-note-card {
    padding: 17px 16px;
  }

  .patch-note-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 470px) {
  .patch-notes-controls {
    grid-template-columns: 1fr;
  }

  .patch-notes-search {
    grid-column: auto;
  }
}
