#kiot-import .kiot-notice,
.kiot-notice {
  padding: 14px 16px;
  border: 1px solid #bce3dc;
  background: #f0f9f7;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #1e4b45;
}

.kiot-notice p {
  margin: 6px 0 0;
}

#kiot-status {
  margin: 16px 0 8px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.kiot-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.kiot-totals > div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.kiot-totals span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kiot-totals b {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#kiot-preview table p {
  white-space: normal;
  min-width: 210px;
  max-width: 450px;
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.kiot-items td:nth-child(2) {
  white-space: normal;
  min-width: 160px;
}

.kiot-items {
  font-size: 13px;
}

@media (max-width: 700px) {
  .kiot-totals {
    grid-template-columns: 1fr;
  }
}

#modal:has(#kiot-import) {
  width: min(1050px, calc(100vw - 32px));
}

#kiot-import details.kiot-notice summary {
  cursor: pointer;
  font-weight: 600;
}

#kiot-import .form-actions {
  position: sticky;
  bottom: -24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
