.permit-log {
  margin: clamp(2rem, 6vw, 5.5rem) 0;
  padding: clamp(1.25rem, 3.7vw, 3rem);
  border: 1px solid var(--line, #c8c8b9);
  background: #f1f0e7;
  color: #27392e;
  scroll-margin-top: 6rem;
}
.permit-log h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; }
.permit-log > p { max-width: 63ch; margin: .85rem 0 1.35rem; }
.permit-log summary { width: fit-content; padding: .6rem 0; font-weight: 650; cursor: pointer; }
.permit-log [hidden] { display: none !important; }
.pl-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-top: 1.2rem; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
#permit-log-form label { display: block; margin: 0 0 .9rem; font-size: .9rem; font-weight: 650; }
#permit-log-form label span { font-weight: 400; }
#permit-log-form :is(input, select, textarea) { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 2.8rem; padding: .58rem .67rem; margin-top: .3rem; border: 1px solid #92998a; border-radius: .1rem; background: #fffdf7; font: inherit; font-size: 1rem; font-weight: 400; color: inherit; }
#permit-log-form textarea { resize: vertical; }
.permit-log button { cursor: pointer; font: inherit; }
.permit-log button:disabled { cursor: default; opacity: .55; }
.permit-log .pl-primary { border: 1px solid #293e30; background: #293e30; color: #fffdf7; padding: .7rem 1rem; }
.pl-history { min-width: 0; }
.pl-history h3 { margin: 0 0 .75rem; font-size: 1.45rem; }
.pl-history ol { list-style: none; padding: 0; margin: 0; }
.pl-history li { overflow-wrap: anywhere; border-top: 1px solid #c2c5b7; padding: .75rem 0; }
.pl-history li strong, .pl-history li time { display: block; }
.pl-history li time { font-size: .8rem; color: #4d5a4f; }
.pl-history li p { white-space: pre-line; margin: .3rem 0; }
.pl-history button { min-height: 2.6rem; padding: .3rem 0; border: 0; background: transparent; color: #314b38; text-decoration: underline; text-underline-offset: .22em; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-block: .5rem; }
.pl-consent { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.pl-consent input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: #304533; }
.pl-feedback { min-height: 1.4em; margin: .5rem 0 0; font-size: .9rem; }
.permit-log :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #805032; outline-offset: 3px; }
@media (max-width: 820px) { .pl-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } }
@media print { .permit-log { display: none; } }
