:root {
  --page: #f6f5f1;
  --ink: #17191d;
  --muted: #6f7884;
  --line: #dfd9cf;
  --panel: #fffdf9;
  --soft: #eee8dc;
  --orange: #ff8a00;
  --orange-dark: #d66d00;
  --green: #168c4f;
  --shadow: 0 22px 58px rgba(37, 28, 18, 0.11);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.updates-page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.eyebrow {
  margin: 0;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.vertical-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(255, 138, 0, 0.14);
  color: var(--orange-dark);
}

.status-pill.pending {
  background: rgba(22, 25, 29, 0.08);
  color: var(--muted);
}

.vertical-card h2 {
  margin: 40px 0 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
}

.card-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.5;
}

.target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.target-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.target-row strong {
  text-align: right;
  font-size: 16px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.build-checklist {
  gap: 12px;
  margin-top: 24px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-item {
  position: relative;
  display: grid;
  gap: 8px;
}

.note-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.level-0 > .note-row {
  min-height: 66px;
  border-color: rgba(255, 138, 0, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.12), transparent 68%),
    rgba(255, 255, 255, 0.74);
}

.note-check {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  cursor: pointer;
}

.level-0 > .note-row .note-check {
  width: 26px;
  height: 26px;
}

.note-label {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
}

.level-0 > .note-row .note-label {
  font-size: 24px;
  font-weight: 900;
}

.note-label::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.note-action,
.add-root {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.note-action {
  width: 34px;
  height: 34px;
}

.note-action:hover,
.add-root:hover {
  border-color: rgba(255, 138, 0, 0.42);
  color: var(--orange-dark);
}

.remove-item:hover {
  border-color: rgba(210, 55, 55, 0.35);
  color: #b52a2a;
}

.note-children {
  position: relative;
  display: grid;
  gap: 8px;
  margin-left: 18px;
  padding-left: 20px;
}

.note-children:empty {
  display: none;
}

.note-children::before {
  position: absolute;
  top: -2px;
  bottom: 18px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.note-children .note-item::before {
  position: absolute;
  top: 26px;
  left: -20px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.level-1 > .note-row {
  min-height: 50px;
}

.level-2 > .note-row,
.level-3 > .note-row {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.48);
}

.level-2 > .note-row .note-label,
.level-3 > .note-row .note-label {
  font-size: 14px;
}

.note-row:has(.note-check:checked) .note-label {
  color: var(--green);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.add-root {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  color: var(--orange-dark);
}

.template-count {
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.check-item input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.check-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.check-copy span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
}

.check-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
}

.check-item small {
  margin-left: auto;
  padding-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.check-item:has(input:checked) {
  border-color: rgba(22, 140, 79, 0.32);
  background: rgba(22, 140, 79, 0.08);
}

.check-item:has(input:checked) small {
  color: var(--green);
}

@media (max-width: 820px) {
  .updates-page {
    width: min(100% - 22px, 620px);
    padding-top: 22px;
  }

  .vertical-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .vertical-card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .target-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .target-row strong {
    text-align: left;
  }
}
