.safety-readiness-page {
  background: #f4f7fa;
}
.safety-app {
  min-height: 100vh;
}
.safety-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}
.safety-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 22px;
}
.safety-intro > div,
.safety-intro > aside {
  background: #fff;
  border: 1px solid #d8e1e9;
  border-radius: 14px;
  padding: 24px;
}
.safety-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.18;
  color: #102f4a;
}
.safety-intro p {
  margin: 0;
  color: #516074;
  line-height: 1.75;
}
.safety-intro aside {
  border-left: 4px solid #b53c51;
}
.safety-intro aside strong {
  display: block;
  margin-bottom: 8px;
  color: #8e2e42;
}
.safety-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.safety-tabs button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "number title" "number copy";
  gap: 2px 12px;
  align-items: start;
  text-align: left;
  border: 1px solid #cad5df;
  border-radius: 12px;
  background: #fff;
  color: #172235;
  padding: 17px 18px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.safety-tabs button:hover {
  border-color: #7891a8;
  transform: translateY(-1px);
}
.safety-tabs button.is-active {
  border-color: #102f4a;
  box-shadow: 0 0 0 2px rgba(16,47,74,.08);
}
.safety-tabs button > span {
  grid-area: number;
  color: #f57920;
  font-weight: 850;
  font-size: 1.05rem;
}
.safety-tabs strong {
  grid-area: title;
  color: #102f4a;
  font-size: 1.04rem;
}
.safety-tabs small {
  grid-area: copy;
  color: #647386;
  line-height: 1.5;
}
.safety-panel {
  background: #fff;
  border: 1px solid #d8e1e9;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(27,51,75,.05);
}
.safety-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e7ed;
  margin-bottom: 20px;
}
.safety-panel-head > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}
.safety-panel-head > div:first-child > span {
  grid-row: 1 / 3;
  color: #f57920;
  font-weight: 900;
  padding-top: 2px;
}
.safety-panel-head h2 {
  margin: 0 0 5px;
  color: #102f4a;
  font-size: 1.5rem;
}
.safety-panel-head p {
  margin: 0;
  color: #617084;
  line-height: 1.6;
}
.safety-notice,
.safety-duty-notice {
  border-left: 4px solid #f57920;
  background: #fff8ef;
  color: #714514;
  padding: 13px 15px;
  margin: 0 0 20px;
  line-height: 1.7;
}
.safety-duty-notice {
  margin: 22px 0 16px;
  font-weight: 700;
}
.safety-form-section,
.safety-step {
  margin: 0 0 24px;
  padding-top: 2px;
}
.safety-form-section + .safety-form-section,
.safety-step + .safety-step {
  border-top: 1px solid #e5eaf0;
  padding-top: 22px;
}
.safety-form-section h3,
.safety-step h3 {
  margin: 0 0 14px;
  color: #163b5a;
  font-size: 1.16rem;
}
.safety-form-section > p,
.safety-step > p {
  color: #5d6d80;
  line-height: 1.65;
}
.safety-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.safety-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.safety-field.is-wide {
  grid-column: 1 / -1;
}
.safety-field > span {
  color: #25364a;
  font-weight: 750;
  font-size: .92rem;
}
.safety-field em {
  color: #b53c51;
  font-style: normal;
}
.safety-field small {
  color: #6b7889;
  line-height: 1.45;
}
.safety-field input,
.safety-field select,
.safety-field textarea,
.safety-step > input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9c6d1;
  border-radius: 8px;
  background: #fff;
  color: #172235;
  font: inherit;
  padding: 10px 11px;
}
.safety-field textarea {
  resize: vertical;
  min-height: 90px;
}
.safety-field input:focus,
.safety-field select:focus,
.safety-field textarea:focus,
.safety-step > input[type="file"]:focus {
  outline: 3px solid rgba(23,143,130,.15);
  border-color: #178f82;
}
.safety-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 16px;
}
.safety-check-list {
  display: grid;
  gap: 9px;
}
.safety-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #d8e1e9;
  border-radius: 8px;
  background: #fbfcfd;
  color: #27384c;
  line-height: 1.62;
}
.safety-check.is-compact {
  padding: 9px 10px;
  font-size: .92rem;
}
.safety-check input {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: #178f82;
}
.safety-check b {
  color: #6b7889;
  font-size: .82rem;
  margin-right: 4px;
}
.safety-final-confirm {
  border-color: #d99027;
  background: #fff8ef;
  font-weight: 700;
  margin-top: 18px;
}
.safety-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.safety-status {
  border-radius: 8px;
  padding: 11px 13px;
  margin: 15px 0 0;
  line-height: 1.6;
}
.safety-status.is-info { background: #eef5fb; color: #264b68; }
.safety-status.is-success { background: #e7f8f4; color: #176f66; }
.safety-status.is-warning { background: #fff6e5; color: #805116; }
.safety-status.is-error { background: #ffe9ed; color: #8e2e42; }
.safety-success {
  display: grid;
  gap: 7px;
  border: 1px solid #9cd9cd;
  background: #effaf7;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}
.safety-success strong { color: #176f66; }
.safety-success span { color: #526276; overflow-wrap: anywhere; }
.safety-success button { justify-self: start; }
.safety-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}
.safety-summary-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #d9e2e9;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.safety-summary-grid span,
.safety-summary-grid small { color: #6a7888; font-size: .82rem; }
.safety-summary-grid strong { color: #17344f; overflow-wrap: anywhere; }
.safety-timer,
.safety-result-score {
  flex: 0 0 auto;
  border: 1px solid #c6d2dc;
  border-radius: 10px;
  padding: 10px 14px;
  color: #102f4a;
  background: #f8fafc;
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.safety-timer.is-urgent { border-color: #b53c51; color: #9c2f44; background: #fff1f3; }
.safety-exam-progress {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.safety-exam-progress progress { width: 100%; height: 12px; accent-color: #178f82; }
.safety-question-list { display: grid; gap: 14px; }
.safety-question {
  border: 1px solid #d7e0e8;
  border-radius: 10px;
  padding: 17px;
  scroll-margin-top: 90px;
}
.safety-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: #68778a;
  font-size: .82rem;
  margin-bottom: 10px;
}
.safety-question-meta strong { color: #a23146; }
.safety-question fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.safety-question legend { color: #172235; font-weight: 780; line-height: 1.65; margin-bottom: 11px; }
.safety-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  margin: 7px 0;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.55;
}
.safety-answer:hover { border-color: #90a4b6; background: #f8fafc; }
.safety-answer input { margin-top: 4px; accent-color: #178f82; }
.safety-sticky-actions {
  position: sticky;
  bottom: 10px;
  z-index: 3;
  justify-content: flex-end;
  padding: 12px;
  background: rgba(255,255,255,.95);
  border: 1px solid #d5dfe7;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16,47,74,.12);
}
.safety-result-score.is-pass { color: #247752; border-color: #8dc7af; background: #effaf5; }
.safety-result-score.is-fail { color: #a23146; border-color: #e1a6b1; background: #fff1f3; }
.safety-result-banner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.safety-result-banner.is-pass { background: #e7f8f4; color: #176f66; }
.safety-result-banner.is-fail { background: #ffe9ed; color: #8e2e42; }
.safety-commitment h4,
.safety-clause h4 {
  color: #173b59;
  margin: 22px 0 10px;
}
.safety-clause {
  border-top: 1px solid #dfe6ec;
  margin-top: 22px;
  padding-top: 2px;
}
.safety-clause p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin: 9px 0;
  color: #34465a;
  line-height: 1.78;
}
.safety-clause p strong { grid-column: 1 / -1; }
.safety-clause p > span { color: #f57920; font-weight: 850; }
.safety-signature {
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  padding: 14px;
  margin-top: 18px;
}
.safety-signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.safety-signature-head > div { display: flex; gap: 6px; }
.safety-signature canvas {
  display: block;
  width: 100%;
  height: 190px;
  border: 1px dashed #8fa2b4;
  border-radius: 7px;
  background: #fff;
}
.safety-signature small { display: block; color: #6a7888; margin-top: 8px; }
.safety-import-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.safety-import-columns > section {
  border: 1px solid #d8e1e9;
  border-radius: 10px;
  padding: 15px;
  min-width: 0;
}
.safety-import-columns h3 { margin: 0 0 11px; color: #173b59; }
.safety-record-list { margin: 0; padding-left: 22px; }
.safety-record-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e5eaf0;
  padding: 10px 0;
}
.safety-record-list li:first-child { border-top: 0; padding-top: 0; }
.safety-record-list li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.safety-record-list span { color: #69788a; font-size: .84rem; overflow-wrap: anywhere; }
.safety-record-list.is-rejected strong { color: #8e2e42; }
.safety-archive { margin-top: 26px; }

@media (max-width: 900px) {
  .safety-intro { grid-template-columns: 1fr; }
  .safety-tabs { grid-template-columns: 1fr; }
  .safety-form-grid,
  .safety-summary-grid,
  .safety-import-columns { grid-template-columns: 1fr; }
  .safety-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-panel-head { flex-direction: column; }
}
@media (max-width: 600px) {
  .safety-main { width: min(100% - 18px, 1240px); padding-top: 18px; }
  .safety-panel,
  .safety-intro > div,
  .safety-intro > aside { padding: 17px; border-radius: 10px; }
  .safety-check-grid { grid-template-columns: 1fr; }
  .safety-actions > * { width: 100%; justify-content: center; }
  .safety-exam-progress { grid-template-columns: 1fr; }
  .safety-sticky-actions { position: static; }
  .safety-signature-head { align-items: flex-start; flex-direction: column; }
}
