.death-access { background: #f7f5ee; }
.death-access-wrap { padding-block: clamp(1rem, 2.4vw, 2.15rem) clamp(2.25rem, 5vw, 4.5rem); }
.death-editor-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin-bottom: clamp(.75rem, 2.2vw, 1.75rem);
  color: var(--green);
  font-size: .94rem;
  font-weight: 700;
}
.death-editor-back span { font-size: 1.15rem; }
.death-access-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}
.death-access-copy h1 {
  max-width: 12ch;
  margin-bottom: .28em;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  letter-spacing: -.046em;
  line-height: 1;
}
.death-access-intro {
  max-width: 37ch;
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
  color: var(--muted);
  font-size: clamp(1.04rem, 1.65vw, 1.26rem);
}
.death-access-panel {
  max-width: 32rem;
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
  border: 1px solid #d1d9cd;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 .35rem 1.2rem #263e2e08;
}
.death-access-requirement { margin: 0; color: var(--green-dark); font-weight: 720; }
.death-access-status { min-height: 1.53em; margin: .25rem 0 0; color: var(--muted); font-size: .94rem; }
.death-access-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.05rem; }
.death-access-actions .button { min-height: 44px; }
.death-access-secondary { display: inline-flex; align-items: center; min-height: 44px; margin: .4rem 1rem 0 0; font-weight: 650; }
.death-access-preview {
  margin: 0;
  padding: clamp(1rem, 3.25vw, 2.8rem);
  border: 1px solid #cfdbcc;
  border-radius: 1rem;
  background: linear-gradient(153deg, #e9eee3, #d9e4d5);
}
.death-access-sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.6rem, 1.65vw, 1.5rem);
}
.death-access-sheets a {
  display: block;
  border: 1px solid #c3cdbf;
  border-radius: .2rem;
  background: #fff;
  box-shadow: 0 .5rem 1.1rem #233d2826;
}
.death-access-sheets a:hover { box-shadow: 0 .5rem 1.15rem #233d2840; }
.death-access-sheets a + a { margin-top: clamp(.55rem, 1.5vw, 1.4rem); }
.death-access-sheets img { width: 100%; border-radius: inherit; }
.death-access-preview figcaption { margin-top: 1.15rem; color: #3e5342; font-size: .88rem; text-align: center; }

.death-workspace { padding-top: clamp(1.7rem, 4vw, 3.3rem); }
.death-workspace h1 { max-width: none; font-size: clamp(2.45rem, 5vw, 4rem); }
#death-editor { max-width: 76rem; }
.death-workspace #death-editor > p { max-width: 66ch; color: var(--muted); }
.death-backup, .death-edit-card { background: #fff; border: 1px solid #c6d2c6; border-radius: .7rem; padding: clamp(.9rem,2vw,1.5rem); }
.death-backup { margin-bottom: 1.25rem; background: #f5f7f1; }
.death-backup summary { color: var(--green); cursor: pointer; min-height: 44px; padding-block: .45rem; font-weight: 700; }
.death-backup p:empty, #death-pdf-status:empty { display: none; }
.death-section-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.death-section-nav button, .death-edit-card .button, .death-edit-card button { min-height: 44px; }
.death-section-nav [aria-current] { background: var(--green); color: #fff; }
.death-section-nav .death-mobile-export { display: none; }
.death-editor-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.death-edit-card h2 { font-size: clamp(1.6rem,2.65vw,2.3rem); }
.death-editor-grid .death-edit-card:first-child { box-shadow: 0 .35rem 1rem #263e2e08; }
#death-export { background: #f5f7f1; }
.death-edit-card fieldset { min-width: 0; margin: 1rem 0; padding: .8rem; border: 1px solid #d7ded5; border-radius: .45rem; }
.death-edit-card legend { color: var(--green); font-weight: 700; padding-inline: .3rem; }
.death-edit-card .field { margin-bottom: .85rem; font-size: 1rem; }
.death-edit-card textarea { min-height: 4.6rem; resize: vertical; }
.death-edit-card [aria-invalid="true"] { border-color: #a43c24; }
#death-answer-preview { background: var(--sage); border-radius: .4rem; margin: .9rem 0; padding: .75rem; overflow-wrap: anywhere; }
#death-answer-preview dl, #death-answer-preview p { margin: 0; }
#death-answer-preview dt { font-weight: 700; }
#death-answer-preview dd { margin: 0 0 .55rem; white-space: pre-wrap; }
@media(max-width: 800px) { .death-editor-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 760px) {
  .death-access-grid { grid-template-columns: minmax(0, 1fr); }
  .death-access-copy h1 { font-size: clamp(2.7rem, 7.6vw, 3.65rem); }
  .death-access-preview { width: min(100%, 32rem); }
}
@media(max-width: 540px) {
  .death-section-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .death-section-nav button,.death-section-nav .button { padding: .5rem; font-size: .91rem; }
  .death-section-nav .death-mobile-export { display: inline-flex; min-height: 44px; }
}
@media(max-width: 480px) {
  .death-access-actions { display: grid; }
}
