:root {
  --bg: #f8f5ef;
  --panel: #fffdfa;
  --text: #2d3128;
  --muted: #74756d;
  --line: #ddd4c8;
  --green: #2e4029;
  --green-2: #526a47;
  --danger: #a53d2d;
  --ok: #2f6740;
  --shadow: 0 12px 30px rgba(49, 42, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.date-card {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: right;
  box-shadow: var(--shadow);
}

.date-card span,
.date-card strong {
  display: block;
}

.date-card span {
  color: var(--muted);
  font-size: 13px;
}

.date-card strong {
  margin-top: 2px;
  color: var(--green);
  font-size: 21px;
}

.stack {
  display: grid;
  gap: 16px;
}

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

.panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.panel-title span {
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(82, 106, 71, 0.16);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.summary div {
  padding: 16px 18px;
}

.summary div + div {
  border-left: 1px solid var(--line);
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 24px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  border: 1px solid #e6ded5;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #edf2e8;
  color: var(--green);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.task-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.standard {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.status-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-option {
  position: relative;
}

.status-option input {
  position: absolute;
  opacity: 0;
}

.status-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.status-option input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.detail-field {
  margin-top: 12px;
}

.submit-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  min-width: 156px;
  min-height: 56px;
  padding: 0 24px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 800;
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

.empty {
  text-align: center;
}

.empty h2 {
  margin-bottom: 8px;
}

.empty p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .shell {
    padding: 20px 12px 32px;
  }

  .page-header {
    display: grid;
    align-items: stretch;
  }

  .date-card {
    text-align: left;
  }

  .field-grid,
  .summary,
  .status-options {
    grid-template-columns: 1fr;
  }

  .summary div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .panel {
    padding: 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .actions button {
    justify-self: stretch;
    width: 100%;
  }
}
