:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #5d6872;
  --line: #d8d2c6;
  --accent: #1f6f78;
  --accent-strong: #174f56;
  --green: #28724f;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.08), transparent 34%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8d6c5;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: #f3fbf6;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin: 42px auto;
}

.workspace,
.check-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workspace {
  padding: clamp(24px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.brief-form {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(31, 111, 120, 0.18);
  border-color: var(--accent);
}

.notes-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.panel-heading h2 {
  margin: 0;
}

.ghost-button {
  min-height: 34px;
  border-color: var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.ghost-button:hover {
  color: #fff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.notes-list {
  min-height: 156px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.notes-list li:last-child {
  border-bottom: 0;
}

.notes-list time,
.empty-note {
  color: var(--muted);
  font-size: 13px;
}

.check-panel {
  align-self: start;
  padding: 22px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell {
    width: min(100% - 24px, 1120px);
  }

  .notes-list li,
  dl > div {
    grid-template-columns: 1fr;
  }

  .notes-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}
