:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #dbdee1;
  background: #1e1f22;
  font-synthesis: none;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
a {
  color: #b5beff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
summary,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #b5beff;
  outline-offset: 3px;
}
.shell {
  max-width: 980px;
  margin: 32px auto;
  background: #313338;
  border: 1px solid #42444b;
  border-radius: 12px;
  padding: 0 24px 22px;
}
.intro {
  padding: 24px 0 18px;
}
.eyebrow,
.type {
  color: #b5beff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.intro p {
  margin: 0;
}
.intro h1 {
  font-size: 30px;
  color: #f2f3f5;
  line-height: 1.2;
  margin: 8px 0;
}
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #42444b;
  border-radius: 6px;
  background: #1e1f22;
  padding: 10px 14px;
  color: #f2f3f5;
}
input::placeholder {
  color: #b5bac1;
}
nav {
  display: flex;
  border-bottom: 1px solid #42444b;
  margin-top: 12px;
  gap: 18px;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #b5bac1;
  min-height: 48px;
  padding: 0 10px;
  white-space: nowrap;
}
nav button[aria-pressed='true'] {
  border-bottom-color: #5865f2;
  color: #b5beff;
  font-weight: 700;
}
.sort,
.metadata {
  font-size: 12px;
  color: #b5bac1;
}
.sort {
  margin: 16px 0;
}
.card {
  background: #2b2d31;
  border: 1px solid #42444b;
  border-radius: 10px;
  margin: 0 0 16px;
  overflow: hidden;
}
.title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.title-copy {
  min-width: 0;
}
.type {
  margin: 0 0 4px;
}
.title-header h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
  color: #f2f3f5;
  overflow-wrap: anywhere;
}
.summary {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.review-count {
  background: transparent;
  border: 0;
  color: #b5bac1;
  font-size: 13px;
  min-height: 44px;
  min-width: 75px;
  text-align: right;
  padding: 0;
}
.review-count:hover {
  color: #b5beff;
}
.stars {
  white-space: nowrap;
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  font-size: 21px;
  flex-shrink: 0;
}
.star {
  position: relative;
  color: #8f96a3;
}
.star > span {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: #f0b232;
}
.review {
  padding: 18px 20px;
  border-top: 1px solid #42444b;
}
.review-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.author {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  overflow-wrap: anywhere;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #4e5058;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #f2f3f5;
  flex-shrink: 0;
}
.comment {
  overflow-wrap: anywhere;
  font-size: 15px;
  margin: 8px 0;
}
.comment ul {
  padding-left: 24px;
  margin: 8px 0;
}
.comment blockquote,
.source {
  border-left: 3px solid #72767d;
  padding-left: 12px;
  margin: 10px 0;
  color: #b5bac1;
}
.comment pre {
  background: #1e1f22;
  padding: 12px;
  border-radius: 5px;
  overflow: auto;
  white-space: pre-wrap;
}
.comment code,
footer code {
  background: #1e1f22;
  border-radius: 3px;
  padding: 2px 4px;
}
.comment .spoiler {
  display: inline-block;
  vertical-align: baseline;
  background: #1e1f22;
  border-radius: 4px;
  padding: 0 6px;
}
.spoiler summary {
  min-height: 44px;
  font-size: 13px;
}
.metadata {
  margin: 8px 0 0;
}
.origin {
  color: #b5bac1;
  font-size: 12px;
  margin: 8px 0;
}
.load-status {
  text-align: center;
  padding: 22px 8px;
  color: #b5bac1;
  font-size: 13px;
  min-height: 66px;
}
.retry {
  background: #5865f2;
  color: white;
  border: 0;
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 18px;
  margin: 8px;
}
.retry:disabled {
  opacity: 0.5;
  cursor: wait;
}
footer {
  font-size: 12px;
  color: #b5bac1;
  margin-top: 16px;
}
footer p {
  max-width: 760px;
}
summary {
  cursor: pointer;
  color: #b5beff;
  min-height: 44px;
  padding: 10px 0;
}
#notice {
  font-size: 13px;
  color: #b5bac1;
}
.empty {
  padding: 36px 16px;
  text-align: center;
  color: #b5bac1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .shell {
    margin: 0;
    padding: 0 16px 18px;
    border: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  nav {
    gap: 0;
    justify-content: space-between;
  }
  nav button {
    padding: 0 6px;
    font-size: 13px;
  }
  .title-header {
    flex-wrap: wrap;
    padding: 16px;
  }
  .summary {
    width: 100%;
    justify-content: space-between;
  }
  .review {
    padding: 14px 16px;
  }
  .review-line {
    gap: 8px;
  }
  .stars {
    font-size: 19px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .public-label {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Keep rating summaries on the title line; wrap the server summary as a unit. */
.title-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
}
.title-copy {
  display: contents;
}
.title-header .type {
  grid-column: 1;
  grid-row: 1;
}
.title-header h2 {
  grid-column: 1;
  grid-row: 2;
}
.title-header > .stars,
.title-header > .summary {
  grid-column: 2;
  grid-row: 2;
}
@media (max-width: 640px) {
  .title-header > .summary {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px;
  }
}

.review-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.review-line > .stars {
  margin-top: 11px;
}
.author-identity {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}
.author {
  min-width: 0;
  max-width: 100%;
}
.origin {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
}
.review-metadata {
  margin-top: 24px;
}
@media (max-width: 640px) {
  .author-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .origin {
    white-space: normal;
  }
}
@media (max-width: 640px) {
  .author-identity {
    display: contents;
  }
  .review-line > .stars {
    grid-column: 2;
    grid-row: 1;
  }
  .review-line .author {
    grid-column: 1;
    grid-row: 1;
  }
  .review-line .origin {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
