* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  font:
    100%/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: #101010;
  color: #fafafa;
}
body {
  margin: 0;
  min-height: 100svh;
}
header {
  height: 78px;
  border-bottom: 1px solid #373737;
  padding: 0 max(20px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font: 400 clamp(1rem, 4.5vw, 1.28rem)/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .025em;
  text-decoration: none;
}
.brand img {
  width: clamp(100px, 30vw, 140px);
  height: auto;
  transform: translateY(clamp(7px, calc(3vw - 4px), 9px));
  mix-blend-mode: screen;
}
.review-comment {
  font-size: .875rem;
  font-weight: 400;
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 100%;
  background: #fafafa;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
main,
#error {
  width: min(100% - 40px, 460px);
  margin: clamp(28px, 6vh, 64px) auto;
}
main:focus {
  outline: none;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 28px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
h2 {
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 28px 0 16px;
}
p {
  margin: 12px 0;
}
small,
.muted {
  color: #bcbcbc;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #454545;
  margin-bottom: 28px;
}
.tabs a {
  flex: 1;
  padding: 12px;
  text-align: center;
  color: #bcbcbc;
  text-decoration: none;
}
.tabs .active {
  color: white;
  border-bottom: 2px solid white;
}
.form {
  display: grid;
  gap: 16px;
}
label,
legend {
  font-weight: 550;
}
input,
textarea,
button {
  font: inherit;
}
input:not([type="radio"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #555;
  background: #191919;
  color: white;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
}
button,
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #626262;
  border-radius: 8px;
  background: #1d1d1d;
  color: #fafafa;
  font: inherit;
  text-decoration: none;
  font-weight: 600;
}
button:hover,
.btn:hover {
  border-color: white;
}
.primary {
  background: #fafafa;
  color: #111;
  border-color: #fafafa;
}
.form > .primary {
  margin-top: 6px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 44px;
}
.home {
  min-height: calc(75svh - 80px);
  display: grid;
  align-content: center;
  gap: 14px;
}
.home .btn {
  min-height: 76px;
  justify-content: flex-start;
  font-size: 1.35rem;
  gap: 20px;
}
.symbol {
  font: 1.8rem/1 Georgia;
}
.back {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 0;
  color: #ccc;
}
.list {
  margin: 8px 0 18px;
  display: grid;
  gap: 4px;
}
.list button {
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #444;
  padding: 10px 0;
}
.row span,
article {
  overflow-wrap: anywhere;
}
.quiet {
  background: transparent;
  color: #ddd;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.score {
  border: 0;
  padding: 0;
  margin: 0;
}
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 8px;
}
.scale label {
  position: relative;
  text-align: center;
  padding: 10px 0;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
}
.scale input {
  position: absolute;
  opacity: 0;
}
.scale label:has(:checked) {
  background: white;
  color: black;
}
.scale label:focus-within,
:focus-visible {
  outline: 3px double #aaa;
  outline-offset: 3px;
}
.date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid #555;
  padding: 10px 4px;
  letter-spacing: 0;
}
.date::-webkit-details-marker { display: none; }
.date::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
details[open] > .date::after { transform: rotate(225deg); }
.review {
  padding: 12px 0;
  border-bottom: 1px solid #333;
}
.review h3 {
  margin: 0;
  font-size: 1.3rem;
}
.review p {
  white-space: pre-wrap;
}
.metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.metrics b {
  font-variant-numeric: tabular-nums;
}
#error:empty {
  display: none;
}
#error {
  border: 1px solid #aaa;
  padding: 12px;
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
