.pk-safety-page { margin: 0; color: #303c35; background: #f7f5f0; font-family: system-ui, sans-serif; line-height: 1.7; }
.pk-safety-shell { width: min(880px, calc(100% - 28px)); margin: 90px auto 110px; }
.pk-safety-shell h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); margin-bottom: 20px; }
.pk-safety-card { padding: clamp(16px, 4vw, 28px); border: 1px solid #e3e6df; border-radius: 18px; background: #fff; margin: 18px 0; }
.pk-safety-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.pk-safety-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pk-safety-intro article { text-align: center; padding: 12px; border-radius: 16px; background: #fff; }
.pk-safety-intro img { width: 100%; height: 105px; object-fit: contain; }
.pk-safety-intro h2 { font-size: 1rem; margin: 6px 0; }
.pk-safety-intro p, .pk-safety-note { font-size: .875rem; color: #58665d; }
.pk-safety-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; border: 0; padding: 0; margin: 18px 0; }
.pk-safety-fields legend { font-weight: 700; margin-bottom: 12px; }
.pk-safety-fields label, .pk-safety-form label { display: block; font-weight: 600; }
.pk-safety-fields input, .pk-safety-fields select, .pk-safety-fields textarea,
.pk-safety-form input:not([type=hidden]), .pk-safety-form select, .pk-safety-form textarea { display: block; width: 100%; min-height: 44px; box-sizing: border-box; margin-top: 6px; border: 1px solid #bbc5bd; border-radius: 10px; padding: 10px; background: #fff; color: #26382d; font: inherit; font-weight: 400; }
.pk-safety-wide { grid-column: 1 / -1; }
.pk-safety-choice { display: flex !important; gap: 12px; padding: 14px; border: 1px solid #dce4dc; border-radius: 12px; margin: 10px 0; cursor: pointer; align-items: flex-start; }
.pk-safety-choice:has(input:checked) { background: #eef5ee; border-color: #65806b; }
.pk-safety-form .pk-safety-choice input { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 4px; accent-color: #536c60; }
.pk-safety-choice small { display: block; font-weight: 400; }
.pk-safety-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 10px 18px; border: 1px solid #b6c4b8; border-radius: 12px; background: #fff; color: #324d3d; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pk-safety-action--primary { background: #536c60; color: #fff; border-color: #536c60; }
.pk-safety-action:disabled { opacity: .5; cursor: not-allowed; }
.pk-safety-conditions { margin: 14px 0; font-size: .9rem; }
.pk-safety-conditions > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e8ece7; }
.pk-safety-conditions dt { color: #5e6a61; }
.pk-safety-conditions dd { margin: 0; overflow-wrap: anywhere; }
.pk-safety-preview { background: #f4f7f2; border: 1px dashed #a9baad; border-radius: 12px; padding: 18px; margin-top: 16px; }
.pk-safety-preview h3 { margin: 0; font-size: 1rem; }
.pk-safety-preview-row { padding: 10px 0; border-bottom: 1px solid #dce4dc; }
.pk-safety-preview-row p { margin: 0; }
.pk-safety-preview-row small { display: block; margin-top: 4px; }
.pk-safety-status { border-left: 4px solid #66836e; padding: 12px 16px; background: #edf5ed; }
.pk-safety-history { margin: 28px 0 36px; }
.pk-safety-history > h2 { margin: 0 0 4px; font-size: 1.2rem; }
.pk-safety-history .pk-safety-card { margin: 12px 0; }
.pk-safety-history-card h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.pk-safety-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pk-safety-history-state { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f1eee8; color: #534f47; font-size: .78rem; font-weight: 700; }
.pk-safety-history-state--sent { background: #e9f4e9; color: #315c39; }
.pk-safety-history-state--pending, .pk-safety-history-state--sending { background: #fff3dc; color: #76521b; }
.pk-safety-history-state--received { background: #fff3dc; color: #76521b; }
.pk-safety-history-state--reviewing { background: #e7f0f9; color: #345c7d; }
.pk-safety-history-state--closed { background: #edf0ec; color: #536154; }
.pk-safety-history-state--failed { background: #f9e9e6; color: #893b2c; }
.pk-safety-history-meta { margin: 8px 0; color: #657269; font-size: .82rem; overflow-wrap: anywhere; }
.pk-safety-history-preview { margin: 8px 0 14px; overflow-wrap: anywhere; }
.pk-safety-history-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-safety-history-card details { margin-top: 14px; }
.pk-safety-history-card summary { color: #365e42; font-weight: 700; cursor: pointer; }
.pk-safety-history-messages { margin-top: 10px; padding: 2px 14px; border-radius: 12px; background: #f7f8f5; }
.pk-safety-history-messages p { overflow-wrap: anywhere; }
.pk-safety-shell [hidden] { display: none !important; }
.pk-safety-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.pk-safety-shell :focus-visible, .pk-safety-fields :focus-visible { outline: 3px solid #c17d44; outline-offset: 3px; }
@media (max-width: 580px) {
    .pk-safety-history-head { flex-wrap: wrap; }
    .pk-safety-fields { grid-template-columns: 1fr; }
    .pk-safety-intro { gap: 6px; }
    .pk-safety-intro article { padding: 8px 4px; }
    .pk-safety-intro img { height: 70px; }
    .pk-safety-intro h2 { font-size: .85rem; }
    .pk-safety-intro p { font-size: .75rem; }
}
