* { box-sizing: border-box; }
body { margin: 0; font-family: Segoe UI, Arial, sans-serif; background: #eef1f5; color: #1c2430; }
header { background: #1f3a5f; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
header h1 { margin: 0; font-size: 24px; letter-spacing: 2px; }
header h1 span { font-size: 13px; font-weight: normal; letter-spacing: 0; opacity: .8; margin-left: 12px; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.panel { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
h2 { font-size: 16px; margin: 14px 0 8px; }
h2:first-child { margin-top: 0; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
label { display: block; font-size: 13px; }
input[type=number] { width: 110px; padding: 6px; border: 1px solid #b9c2cf; border-radius: 4px; font-size: 14px; }
.check { margin: 12px 0 0; font-size: 14px; }
.hint { margin: 4px 0 0; font-size: 12px; color: #667; }
table { border-collapse: collapse; margin-bottom: 8px; }
th { text-align: left; font-size: 12px; color: #556; padding: 2px 8px 2px 0; }
td { padding: 3px 8px 3px 0; }
button { background: #1f6feb; color: #fff; border: 0; border-radius: 4px; padding: 9px 18px; font-size: 14px; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button.secondary { background: #5b6b80; }
button.del { background: #c0392b; padding: 6px 10px; }
.actions { margin-top: 14px; display: flex; gap: 10px; }
.error { color: #c0392b; margin-top: 10px; font-size: 14px; }
.hidden { display: none; }
.summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.summary .actions { margin: 0; }
.sheet { background: #fff; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.sheet h3 { margin: 0 0 8px; font-size: 15px; }
input.pn { width: 200px; padding: 6px; border: 1px solid #b9c2cf; border-radius: 4px; font-size: 14px; }
.notes { margin: 8px 0 0; padding-left: 20px; font-size: 13px; columns: 2; }
.sheet svg { width: 100%; max-height: 80vh; display: block; }

@media print {
  body { background: #fff; }
  .noprint { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  .panel, .sheet { box-shadow: none; padding: 0; }
  .sheet { page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .sheet svg { max-height: 240mm; }
  .summary { display: block; margin-bottom: 8px; }
}
