:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f3f6f9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.container {
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 48px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #17365d;
  color: white;
  padding: 24px 26px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 2rem; }
.hero p { margin: 0; line-height: 1.45; }
.local-badge {
  white-space: nowrap;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: bold;
}
.panel,
.status-card,
.notice {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}
.panel h2 { margin: 0 0 14px; font-size: 1.15rem; }
.drop-zone {
  border: 2px dashed #5b9bd5;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  transition: .15s ease;
}
.drop-zone.dragging {
  background: #eaf3fb;
  border-color: #17365d;
}
.drop-title { font-size: 1.2rem; font-weight: bold; margin: 0 0 8px; }
.muted { color: #667085; }
.help { color: #667085; font-size: .92rem; margin: 12px 0 0; line-height: 1.45; }
.button-row,
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.center { justify-content: center; }
.controls { margin: 18px 0; }
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: .95rem;
}
.button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: #1f4e78; color: white; }
.secondary { background: #d9e2f3; color: #17365d; }
.danger { background: #b42318; color: white; }
progress { width: 100%; height: 18px; margin-top: 10px; }
.table-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.table-wrap { overflow: auto; max-height: 520px; border: 1px solid #d5dde5; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td {
  border-bottom: 1px solid #e1e6eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #1f4e78;
  color: white;
  z-index: 1;
}
.empty { text-align: center; color: #667085; padding: 24px; }
.status-ok { color: #1b5e20; font-weight: bold; }
.status-working { color: #1f4e78; font-weight: bold; }
.status-error { color: #b42318; font-weight: bold; }
.notice { line-height: 1.5; }
.notice ul { margin: 8px 0 0 20px; padding: 0; }
footer { color: #667085; font-size: .88rem; padding: 4px 4px 0; }
@media (max-width: 760px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .local-badge { white-space: normal; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .controls .button { flex: 1 1 auto; }
}


.ocr-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}
.ocr-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.ocr-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ocr-option small {
  color: #667085;
  line-height: 1.4;
}

.wake-status {
  margin-top: 8px;
  font-size: .88rem;
  line-height: 1.4;
}
