.panel.patch-notes.active {
  max-width: 1140px;
  margin-inline: auto;
  color: var(--ink);
}

.patch-notes .patch-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: clamp(1.4rem, 4.2vw, 2.75rem);
  margin-bottom: 1.3rem;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(117deg, #102e43 5%, #13485a 67%, #11636a 100%);
}

.patch-notes .patch-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 2.95rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.patch-notes .patch-header p {
  margin: .55rem 0 0;
  color: #e0f2f5;
}

.patch-notes .patch-latest {
  display: grid;
  gap: .25rem;
  padding: .8rem 1.05rem;
  border: 1px solid #79b9c2;
  border-radius: 10px;
  background: #0e3d4a;
}

.patch-notes .patch-latest span {
  color: #bee5e8;
  font-size: .78rem;
}

.patch-notes .patch-latest strong {
  font-size: 1.05rem;
}

.patch-notes .patch-controls,
.patch-notes .patch-day-items,
.patch-notes .patch-state {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.patch-notes .patch-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .9rem 1.25rem;
  padding: 1rem 1.2rem;
}

.patch-notes .patch-search {
  flex: 1 1 18rem;
  max-width: 31rem;
  display: grid;
  gap: .4rem;
  margin: 0;
}

.patch-notes .patch-search input {
  margin: 0;
}

.patch-notes .patch-all {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  margin: 0;
  cursor: pointer;
}

.patch-notes .patch-all input {
  inline-size: 1rem;
  block-size: 1rem;
  margin: 0;
  accent-color: #087e8b;
}

.patch-notes .patch-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: 1.45rem 0 .25rem;
}

.patch-notes .patch-history-head h2,
.patch-notes .patch-entry h4 {
  margin: 0;
  color: var(--ink);
}

.patch-notes .patch-history-head span,
.patch-notes .patch-build,
.patch-notes .patch-entry-notes {
  color: var(--muted);
}

.patch-notes .patch-day {
  display: grid;
  grid-template-columns: 9.75rem minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  margin-block: .8rem 1.15rem;
}

.patch-notes .patch-day h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding-block: .65rem;
  font-size: .84rem;
  color: var(--ink);
}

.patch-notes .patch-day h3 span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 7px;
  color: #0c5664;
  background: #dff1f3;
  font-size: .93rem;
}

.patch-notes .patch-day-items {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem;
}

.patch-notes .patch-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  padding: 1rem 0;
}

.patch-notes .patch-entry > div {
  flex: 1 1 16rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.patch-notes .patch-entry + .patch-entry {
  border-top: 1px solid var(--border);
}

.patch-notes .patch-entry h4 {
  font-size: 1rem;
  line-height: 1.35;
}

.patch-notes .patch-entry a {
  white-space: nowrap;
  padding: .3rem .48rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .81rem;
  color: var(--ink);
}

.patch-notes .patch-entry a:hover {
  background: var(--surface-soft, #edf5f6);
}

.patch-notes .patch-entry-notes {
  margin: .45rem 0 0;
  padding-inline-start: 1.1em;
  line-height: 1.5;
}

.patch-notes .patch-entry-notes li + li {
  margin-top: .2rem;
}

.patch-notes .patch-more,
.patch-notes .patch-state {
  margin-block: .8rem 0;
}

.patch-notes .patch-state {
  padding: 1rem 1.2rem;
}

.patch-notes .patch-build {
  margin-block: 1.25rem 0;
  font-size: .8rem;
}

@media (max-width: 660px) {
  .patch-notes .patch-day {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .patch-notes .patch-day h3 {
    padding-block: .45rem;
  }
}
