:root {
  --ink: #223b35;
  --muted: #72766d;
  --paper: #f7f7f0;
  --line: #dfe2d5;
  --orange: #e15c38;
  --mint: #eaf0de;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
a {
  color: var(--ink);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--orange);
}
.container {
  max-width: 1160px;
  padding-inline: 28px;
}
.site-header {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fffefa;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}
.brand strong {
  font-weight: 500;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 25px;
}
nav a {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.account .btn-link {
  color: var(--muted);
  text-decoration: none;
  padding: 4px;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #e8dfc8;
  display: grid;
  place-content: center;
  font-weight: 700;
}
.dev-banner {
  background: #f9e4c4;
  color: #724d21;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 4px;
}
.page {
  min-height: 70vh;
  padding-top: 48px;
  padding-bottom: 70px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 9px;
}
h1 {
  font-size: 45px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 600;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.65px;
  font-weight: 600;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
}
.decorative {
  color: var(--orange);
  font-size: 106px;
  line-height: 1;
  padding-right: 25px;
}
.work-panel {
  background: var(--mint);
  border: 1px solid #d8e2c7;
  border-radius: 16px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.work-panel .eyebrow {
  color: #586a48;
}
.btn {
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.btn-primary {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: #38594e;
  --bs-btn-hover-border-color: #38594e;
  --bs-btn-active-bg: #38594e;
  --bs-btn-active-border-color: #38594e;
}
.btn-outline-dark {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: #c4ccba;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 38px 0 21px;
}
.section-heading h2 {
  margin: 0;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.task-card {
  display: flex;
  flex-direction: column;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  transition: border-color 0.2s;
}
.task-card:hover {
  border-color: #b6c4a8;
}
.product-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.status {
  font-size: 11px;
  border-radius: 20px;
  padding: 3px 10px;
  background: #f2f1e9;
  color: #626954;
  white-space: nowrap;
}
.status.done {
  background: #e2ecd8;
  color: #46633a;
}
.task-code {
  font-family: monospace;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.5px;
  margin-top: 25px;
  margin-bottom: 7px;
}
.task-goal {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  flex-grow: 1;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
  margin-bottom: 20px;
}
.task-link {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.task-link > span:last-child {
  font-size: 21px;
  line-height: 1;
}
.help-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 35px;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.narrow {
  max-width: 740px;
  margin: 0 auto;
}
.goal {
  font-size: 21px;
  line-height: 1.6;
  margin-top: 8px;
}
.instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.muted,
small {
  color: var(--muted);
}
.accent {
  color: var(--orange);
}
.back-link {
  display: block;
  font-size: 13px;
  margin-bottom: 30px;
  text-decoration: none;
}
.timer {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 8px 0 0;
}
.run-clock {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  font-size: 14px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #829953;
}
.stuck-panel {
  background: #fcf0e5;
  border-color: #edccb4;
}
.stuck-panel > summary {
  font-size: 19px;
}
.result-panel {
  background: #eef3e3;
}
.timeline {
  list-style: none;
  padding-left: 18px;
  margin-top: 25px;
  border-left: 2px solid var(--line);
  font-size: 14px;
}
.timeline li {
  position: relative;
  padding-bottom: 22px;
  padding-left: 8px;
}
.timeline li:before {
  content: "";
  width: 9px;
  height: 9px;
  background: #97a680;
  border-radius: 50%;
  position: absolute;
  left: -23.5px;
  top: 8px;
}
.timeline time {
  font-size: 12px;
  color: var(--muted);
}
.timeline p {
  margin: 7px 0 0;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.screenshot-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.screenshot-grid a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d4dacc;
  background: white;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}
input[type="file"] {
  font-size: 13px !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #899d74;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
}
fieldset {
  margin: 25px 0;
}
legend {
  font-size: 15px;
  font-weight: 600;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  margin-bottom: 12px;
}
.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.difficulty {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}
.difficulty label {
  flex: 1;
  margin: 0;
  position: relative;
}
.difficulty input {
  position: absolute;
  opacity: 0;
}
.difficulty span {
  display: grid;
  place-content: center;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.difficulty input:checked + span {
  background: var(--ink);
  color: white;
}
.difficulty input:focus-visible + span {
  outline: 3px solid #879d70;
  outline-offset: 2px;
}
.optional {
  font-size: 12px;
  font-weight: 400;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary:after {
  content: "⌄";
  color: var(--muted);
}
details[open] > summary:after {
  content: "⌃";
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.admin-nav {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 12px 25px;
}
.admin-nav a {
  font-size: 13px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.filters label {
  min-width: 200px;
  margin-bottom: 0;
}
.table-panel {
  padding: 8px 20px;
}
.table {
  --bs-table-bg: transparent;
  margin: 0;
  font-size: 14px;
}
.table td,
.table th {
  padding: 18px 10px;
  border-color: var(--line);
  vertical-align: middle;
}
.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.table tr:last-child td {
  border-bottom: 0;
}
.edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.edit-row label {
  margin: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 23px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.site-footer > span:first-child {
  font-weight: 600;
}
.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 90px;
  padding-block: 65px;
}
.display-title {
  font-size: 65px;
  letter-spacing: -3px;
  line-height: 1.07;
  margin: 26px 0;
}
.login-panel {
  padding: 40px;
}
.login-panel h2 {
  font-size: 29px;
  margin: 22px 0 10px;
}
.login-panel .btn {
  margin-top: 8px;
}
.product-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.product-chips span {
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 11px;
  padding: 6px 12px;
}
.dev-note {
  font-size: 12px;
  padding: 12px;
  background: #f9edda;
  border-radius: 7px;
}
.empty {
  text-align: center;
  padding: 50px;
}
.alert {
  border-radius: 10px;
}
.list-group-item {
  background: #fffefa;
  border-color: var(--line);
}
@media (max-width: 800px) {
  .account > span:not(.avatar) {
    display: none;
  }
  .header-inner {
    gap: 15px;
    flex-wrap: wrap;
    padding-block: 18px;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    gap: 24px;
  }
  .account {
    margin-left: auto;
  }
  .login-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 5px;
  }
  .display-title {
    font-size: 50px;
  }
  .login-panel {
    padding: 26px;
  }
  .decorative {
    font-size: 78px;
    padding: 0;
  }
  .task-grid {
    gap: 16px;
  }
  .task-card {
    padding: 22px;
  }
  .container {
    padding-inline: 20px;
  }
  .page {
    padding-top: 32px;
  }
  .work-panel {
    padding: 23px;
    flex-wrap: wrap;
  }
  .work-panel .actions {
    width: 100%;
  }
  h1 {
    font-size: 37px;
  }
}
@media (max-width: 550px) {
  .task-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .task-card h3 {
    font-size: 24px;
  }
  .decorative {
    display: none;
  }
  .page-intro {
    margin-bottom: 24px;
  }
  .panel {
    padding: 22px;
  }
  .table-panel {
    padding: 6px 10px;
  }
  .site-footer {
    gap: 15px;
    font-size: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .work-panel .btn {
    padding: 11px 15px;
  }
  .section-heading {
    margin-top: 32px;
  }
  .timeline .d-flex {
    flex-direction: column;
  }
  .admin-nav {
    gap: 12px 20px;
  }
  .edit-row {
    align-items: start;
  }
  .filters label {
    width: 100%;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .narrow h1 {
    font-size: 33px;
  }
}
