[hidden] { display: none !important; }
.manual { max-width: 72rem; margin: auto; padding: 2.4rem max(1rem, 4vw) 3rem; }
.manual h1 { font-size: clamp(2.9rem, 6vw, 5.2rem); margin: .75rem 0 1rem; }
.manual h2 { font-size: 1.9rem; margin: 0 0 .8rem; }
.manual h3 { margin: .4rem 0 .6rem; font-size: 1.2rem; }
.lead { max-width: 53ch; font-size: 1.2rem; }
.privacy-note, .keep > p { max-width: 75ch; }
.privacy-note { border-left: 3px solid #b65b43; padding-left: .9rem; color: #424f49; }
.name-panel { border-bottom: 1px solid #c8d3c9; margin: 2rem 0 1.5rem; padding-bottom: 1.3rem; }
.name-panel input { max-width: 30rem; }
#saved-state { display: block; font-size: .91rem; margin-top: .5rem; color: #465a51; }
.record-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.records, .editor, .keep { min-width: 0; }
.record-card, .editor, .keep { background: #fffdf7; border: 1px solid #c7d3c9; border-radius: 1rem; padding: clamp(1rem, 2.3vw, 1.65rem); }
.record-card { margin: .7rem 0; overflow-wrap: anywhere; }
.record-card p, #print-copy p { white-space: pre-line; overflow-wrap: anywhere; }
.record-card p { margin: .35rem 0; color: #34483f; }
.record-type { font-size: .85rem; color: #74402e; font-weight: 700; }
.manual input, .manual select, .manual textarea { display: block; background: #fff; width: 100%; box-sizing: border-box; color: #203a30; font: inherit; line-height: 1.4; border: 1px solid #81968a; border-radius: .4rem; padding: .59rem .7rem; }
.manual textarea { resize: vertical; }
.manual label { display: block; font-weight: 650; margin: .75rem 0 .15rem; }
.manual label span { font-weight: 400; }
.manual button { font: inherit; font-weight: 650; line-height: 1.28; min-height: 2.6rem; border: 1px solid #20463b; border-radius: .45rem; background: #20463b; color: #fff; padding: .6rem .9rem; }
.manual button.secondary { background: transparent; color: #20463b; }
.manual :is(button,input,textarea,select):focus-visible { outline: 3px solid #a44932; outline-offset: 3px; }
.buttons { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }
.keep { margin-top: 1.5rem; }
.local-actions { margin-top: 1.25rem; border-top: 1px solid #c7d3c9; padding-top: .4rem; }
.local-actions input { max-width: 31rem; }
.local-actions button { margin-top: .75rem; }
#status { color: #1c4033; font-weight: 650; }
#confirm-action { width: min(28rem, 90vw); padding: 1.4rem; border: 1px solid #24483b; border-radius: 1rem; background: #fffdf7; color: #204435; }
#confirm-action::backdrop { background: rgb(20 40 33 / 55%); }
@media (max-width: 720px) { .record-layout { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 1.6cm; }
  body { background: #fff; color: #111; }
  body > header, body > footer, body > .skip, .manual > :not(#print-copy) { display: none !important; }
  .manual { max-width: none; padding: 0; }
  #print-copy { display: block !important; }
  #print-copy h1 { font-size: 24pt; }
  #print-copy h2 { font-size: 16pt; margin: 0 0 4pt; }
  #print-copy article { border-top: 1pt solid #777; padding: 8pt 0; break-inside: avoid; }
  #print-copy p { margin: 2pt 0; color: #111; }
}
