.safety-hero .slots-hero-art {
  background-image: url('assets/safety-hero.webp');
  background-position: right center
}

.safety-hero .slots-hero-copy {
  max-width: 1080px
}

.safety-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch
}

.safety-overview>.panel,
.safety-pair>.panel {
  min-width: 0;
  margin: 0
}

.safety-content h3 {
  font-size: 14px;
  line-height: 1.5
}

.safety-content .section-heading {
  align-items: flex-start
}

.checklist-panel {
  display: flex;
  flex-direction: column
}

.checklist-progress {
  margin: 0 0 15px
}

.checklist-progress p {
  margin: 0 0 9px;
  font-weight: 600
}

.checklist-progress progress {
  display: block;
  width: 100%;
  height: 11px;
  border: 1px solid #ddbbf6;
  border-radius: 10px;
  overflow: hidden;
  background: #32214d;
  appearance: none
}

.checklist-progress progress::-webkit-progress-bar {
  background: #32214d
}

.checklist-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, #e541ec, #7fe7c3)
}

.checklist-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, #e541ec, #7fe7c3)
}

.manual-checks {
  display: grid;
  gap: 1px;
  padding: 7px 12px;
  border: 1px solid #e7ccff;
  border-radius: 13px;
  background: linear-gradient(115deg, #f2eaff, #c8b5ee);
  color: #261039
}

.manual-check {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 7px 11px;
  padding: 12px 0;
  border-bottom: 1px solid #a47cb350
}

.manual-check:last-child {
  border-bottom: 0
}

.manual-check>.ui-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  padding: 4px;
  background: linear-gradient(#aa4fcf, #61208d);
  border-radius: 7px
}

.manual-check label {
  font-weight: 700;
  line-height: 1.5;
  align-self: center;
  cursor: pointer
}

.manual-check select {
  grid-column: 2;
  width: 100%;
  min-height: 40px;
  border: 1px solid #a373c0;
  border-radius: 8px;
  background: #fff9ff;
  color: #411356;
  font: 600 14px/1.5 Inter, Arial, sans-serif;
  padding: 8px 30px 8px 10px;
  cursor: pointer
}

.manual-check select:focus-visible {
  outline: 2px solid #821bb0;
  outline-offset: 2px
}

.checklist-outcome {
  margin-top: 15px;
  padding: 13px;
  border: 1px solid #e6c38b;
  border-radius: 12px;
  background: linear-gradient(130deg, #fff1d2, #edc1eb);
  color: #291439
}

.checklist-outcome h3 {
  font-size: 16px;
  margin: 0 0 7px
}

.checklist-outcome p {
  margin: 0
}

.checklist-outcome[data-outcome=warning] {
  background: linear-gradient(120deg, #ffdfdf, #edbadc);
  border-color: #ff829c
}

.checklist-outcome[data-outcome=confirmed] {
  background: linear-gradient(120deg, #dffce8, #cfebeb);
  border-color: #71dfb0
}

.checklist-art {
  position: relative;
  min-height: 170px;
  flex: 1;
  margin-top: 15px
}

.checklist-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #d85bff30)
}

.result-cards {
  display: grid;
  gap: 10px
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  border: 1px solid #c98ee8;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(130deg, #4a2e67, #28133d)
}

.result-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 11px;
  margin: 0;
  font-size: 16px
}

.result-card .ui-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  filter: drop-shadow(0 0 6px #ce83ee60)
}

.result-card>div {
  background: linear-gradient(115deg, #f2eaff, #c8b4ec);
  color: #28163b;
  padding: 13px
}

.result-card p {
  margin: 0
}

.result-card p+p {
  margin-top: 9px
}

.result-verified h3 {
  background: linear-gradient(120deg, #167653, #1c344d)
}

.result-unverified h3 {
  background: linear-gradient(120deg, #b07423, #54303c)
}

.result-warning h3 {
  background: linear-gradient(120deg, #b31e59, #4e1640)
}

.decision-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffeb75;
  margin: 18px 0 12px !important;
  font-size: 18px !important
}

.decision-heading .ui-icon {
  width: 31px;
  height: 31px
}

.safety-content table {
  font-size: 14px;
  width: 100%;
  min-width: 410px;
  border-collapse: collapse;
  background: linear-gradient(110deg, #eee6fc, #c8b4e8);
  color: #261538
}

.safety-content thead th {
  background: linear-gradient(#71318d, #401559);
  color: white
}

.safety-content tbody :is(th, td) {
  border-color: #ac86c7;
  padding: 10px;
  color: #261538;
  background: transparent
}

.safety-content tbody th {
  font-weight: 700
}

.safety-content tbody tr:nth-child(even) {
  background: #b48dca24
}

.results-panel tbody th {
  width: 38%
}

.verify-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px
}

.verify-steps article,
.incident-steps article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #c280e7;
  border-radius: 13px;
  background: linear-gradient(150deg, #552573, #2a123c 70%);
  box-shadow: inset 0 1px 0 #f0c8ff50, 0 0 12px #d23beb29
}

.verify-step-top,
.incident-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px
}

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ffb8ff;
  border-radius: 50%;
  background: linear-gradient(#f7a2ff, #a324cb);
  font-size: 16px;
  font-weight: 800
}

.verify-step-top>.ui-icon,
.incident-step-top>.ui-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 6px #ce7eff60)
}

.verify-steps h3,
.incident-steps h3 {
  margin: 0 0 10px;
  color: #f8e2ff
}

.verify-steps p,
.incident-steps p {
  margin: 8px 0;
  color: #eaddf1
}

.guide-details {
  margin-top: 10px;
  border-top: 1px solid #a46abd60;
  padding-top: 9px
}

.guide-details>summary {
  cursor: pointer;
  font-weight: 600;
  color: #f4b6ff;
  line-height: 1.5
}

.guide-details[open]>summary {
  display: none
}

.guide-details .hide-details {
  margin-top: 10px
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.command-grid article {
  min-width: 0;
  border: 1px solid #b777da;
  border-radius: 13px;
  padding: 15px;
  background: linear-gradient(130deg, #4c2162, #26133b)
}

.command-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 0 0 12px
}

.command-grid h3>.ui-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px
}

.command-grid p {
  color: #eaddf1;
  margin: 10px 0
}

.command-box {
  display: flex;
  gap: 9px;
  align-items: center;
  background: linear-gradient(120deg, #f6edff, #d6c3ee);
  padding: 11px;
  border: 1px solid #edccff;
  border-radius: 9px;
  margin: 12px 0;
  color: #2e123e;
  min-width: 0
}

.command-box code {
  font: 600 13px/1.6 Consolas, monospace;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1
}

.copy-command {
  flex: 0 0 auto;
  border: 1px solid #a162c0;
  background: linear-gradient(#9342b8, #5b237f);
  color: #fff;
  border-radius: 7px;
  padding: 8px;
  font: 600 13px/1.4 Inter, Arial, sans-serif;
  cursor: pointer
}

.copy-command:hover {
  filter: brightness(1.18)
}

.command-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 16px;
  align-items: start
}

.command-notes h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.command-notes p {
  margin: 8px 0
}

.command-notes>.recommendation {
  margin: 0
}

.safety-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px
}

.permissions-panel .table-wrap {
  margin-bottom: 16px
}

.permissions-panel tbody th {
  width: 25%
}

.permissions-panel tbody td:last-child {
  font-weight: 600
}

.permissions-panel tbody tr:nth-child(n+5) td:last-child {
  color: #8b1746;
  background: #ffc1d12c
}

.permission-details {
  padding: 13px;
  border: 1px solid #b77bcd;
  border-radius: 10px;
  background: linear-gradient(#462056, #26123c)
}

.permission-details[open]>summary {
  display: list-item
}

.permission-details ol {
  padding-left: 22px;
  margin: 12px 0
}

.permission-details li {
  margin: 9px 0
}

.permission-details p {
  margin: 10px 0;
  color: #eadcf1
}

.update-checks {
  display: grid;
  gap: 12px
}

.update-checks article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b788dc;
  border-radius: 12px;
  background: linear-gradient(115deg, #f3eaff, #d3c0eb);
  color: #29143d
}

.update-checks article>.ui-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 5px;
  border-radius: 8px;
  background: linear-gradient(#a55ac8, #62228c)
}

.update-checks h3 {
  margin: 0 0 8px
}

.update-checks p {
  margin: 7px 0;
  color: #29143d
}

.update-panel>p {
  margin: 14px 0 0
}

.incident-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px
}

.incident-art {
  display: block;
  align-self: center;
  justify-self: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none
}

.related-guide {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #ac66c1;
  border-radius: 10px;
  background: #3b164e
}

.related-guide p {
  margin: 0
}

.safety-content :is(button, select, a, summary):focus-visible {
  outline: 2px solid #f7b1ff;
  outline-offset: 3px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

main#apk-safety#apk-safety .safety-overview>.panel {
  border: 1px solid #ee8cff !important;
  border-radius: 19px;
  background: linear-gradient(150deg, #470c67, #1a0b33 35%, #1d0b36 80%, #400d5d) !important;
  box-shadow: inset 0 1px 0 #ffd8ffb0, inset 0 0 20px #af22de30, 0 0 5px #f074ff70, 0 0 17px #c523f94a
}

main#apk-safety#apk-safety .safety-content tbody :is(th, td) {
  color: #261538;
  background: transparent
}

main#apk-safety#apk-safety .safety-content thead th {
  color: #fff
}

main#apk-safety#apk-safety .permissions-panel tbody tr:nth-child(n+5) td:last-child {
  color: #8b1746;
  background: #ffc1d12c
}

@media(max-width:1350px) {

  .safety-overview,
  .safety-pair {
    grid-template-columns: 1fr
  }

  .checklist-art {
    flex: none;
    height: 180px;
    min-height: 0
  }

  .verify-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .command-grid {
    grid-template-columns: 1fr
  }

  .command-notes {
    grid-template-columns: 1fr
  }

  .incident-steps {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:681px) and (max-width:1000px) {
  .safety-content .faq-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:680px) {
  .safety-hero .slots-hero-art {
    background-position: 70% center
  }

  .verify-steps,
  .incident-steps {
    grid-template-columns: 1fr
  }

  .result-card {
    grid-template-columns: 1fr
  }

  .result-card h3 {
    padding: 11px 13px
  }

  .result-card>div {
    padding: 13px
  }

  .manual-checks {
    padding: 5px 11px
  }

  .manual-check {
    gap: 7px 9px
  }

  .manual-check select {
    grid-column: 1/-1
  }

  .checklist-art {
    height: 170px
  }

  .command-box {
    align-items: flex-start
  }

  .verify-steps article,
  .incident-steps article {
    padding: 15px
  }

  .incident-art {
    display: none
  }

  .update-checks article {
    padding: 12px;
    gap: 9px
  }

  .update-checks article>.ui-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px
  }

  .safety-content table {
    min-width: 390px
  }

  .safety-overview {
    gap: 16px
  }

  main#apk-safety#apk-safety .safety-overview>.panel {
    border-radius: 16px
  }
}
