:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --surface: #ffffff;
  --line: #d9d9d9;
  --text: #111111;
  --muted: #555555;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.back-menu {
  display: inline-flex;
  width: max-content;
  flex: 0 0 auto;
  align-items: center;
  align-self: flex-start;
  white-space: nowrap;
  min-height: 36px;
  padding: 0 10px;
  margin: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.back-menu:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.page {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 18px;
}

.wrap {
  width: min(820px, 100%);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

header {
  padding: 28px 20px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 40px;
}

h3 {
  margin: 10px 0 0;
  color: var(--muted);
}

.content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
  padding: 22px 20px 24px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.item:hover {
  transform: translateY(-1px);
  background: #fafafa;
  border-color: #cfcfcf;
}

input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

input[type="checkbox"]:hover {
  transform: scale(1.04);
}

input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(2px, -1px);
}

input[type="checkbox"]:checked {
  background: #111;
}

input[type="checkbox"]:checked::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

label {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.2px;
  user-select: none;
  cursor: pointer;
}

input[type="checkbox"]:checked + label {
  color: #6b6b6b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.25px;
}

.badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 10px 12px;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.links a:hover {
  transform: translateY(-1px);
  background: #fafafa;
  border-color: #cfcfcf;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.status {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 18px;
  margin-bottom: 12px;
  color: #b91c1c;
  font-size: 14px;
  text-align: center;
}

.buttons {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
}

button {
  padding: 12px 22px;
  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  background: #1b1b1b;
}

button:active {
  transform: translateY(0) scale(0.99);
}

.reset {
  border: 1px solid #111;
  background: #fff;
  color: #111;
}

.reset:hover {
  background: #fff;
}

.help-btn {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  z-index: 5;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.help-btn:hover {
  background: #1b1b1b;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.60);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.modal h2 {
  margin: 0 0 10px;
  color: #111;
}

.modal p {
  color: #333;
}

.modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.modal-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #111;
  text-align: left;
  line-height: 1.6;
}

.underline {
  text-decoration: underline;
}

.modal-actions {
  margin-top: 16px;
}

@media (max-width: 820px) {
  .content {
    grid-template-columns: 1fr;
  }
}
