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

.story-card,
.guestbook-empty,
.admin-entry,
.admin-login-card {
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.story-message {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.7;
}

.story-person {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.story-person strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.guestbook-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.guestbook-form-wrap {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 38px;
  padding: 36px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.guestbook-form-intro {
  padding-right: 20px;
}

.guestbook-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--navy);
  font-weight: 800;
}

.optional,
.field-help {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.field-help { margin: 0; }

.form-field input,
.form-field textarea,
.hash-output {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #b8b2a5;
  border-radius: 10px;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(214, 180, 106, .45);
  border-color: var(--navy);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.guestbook-notice {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 700;
}

.guestbook-notice-success {
  color: #164d2c;
  background: #e5f5e9;
  border: 1px solid #91cda2;
}

.guestbook-notice-error {
  color: #7f2725;
  background: #fbe9e8;
  border: 1px solid #e3aaa7;
}

.admin-body { background: var(--cream-deep); }

.admin-main {
  max-width: 1050px;
  padding-top: 50px;
}

.admin-login-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--white);
}

.admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-entry-list {
  display: grid;
  gap: 24px;
}

.admin-entry {
  background: var(--white);
}

.admin-entry.is-pending { border-left: 7px solid var(--accent); }
.admin-entry.is-approved { border-left: 7px solid #4a9662; }

.admin-entry-status {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-entry-status span { color: var(--muted); }

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

.admin-full-width { grid-column: 1 / -1; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-approve {
  color: var(--white);
  background: #327648;
  border-color: #327648;
}

.button-delete {
  color: var(--white);
  background: var(--danger);
  border-color: var(--danger);
}

.hash-output {
  display: block;
  margin-top: 10px;
  word-break: break-all;
}

.setup-check-list {
  padding: 0;
  list-style: none;
}

.setup-check-list li {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
}

.check-pass { background: #e5f5e9; }
.check-fail { background: #fbe9e8; }

@media (max-width: 800px) {
  .story-grid,
  .guestbook-form-wrap,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .guestbook-form-intro { padding-right: 0; }
  .admin-full-width { grid-column: auto; }
}

@media (max-width: 680px) {
  .guestbook-form-wrap,
  .story-card,
  .guestbook-empty,
  .admin-entry,
  .admin-login-card {
    padding: 23px 19px;
  }

  .admin-heading,
  .admin-entry-status {
    flex-direction: column;
  }

  .admin-actions .button { width: 100%; }
}

