* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f3;
  color: #111827;
}
.lock-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lock-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e7e5e4;
  padding: 22px;
}
.lock-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}
.lock-card p {
  color: #6b7280;
}
.lock-message {
  min-height: 24px;
  color: #b91c1c;
  font-size: 14px;
}
.app {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px;
}
header, .card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e7e5e4;
}
header {
  padding: 18px;
  margin-bottom: 14px;
}
header h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
header p {
  margin: 0;
  line-height: 1.6;
  color: #6b7280;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  padding: 16px;
}
.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
form {
  display: grid;
  gap: 12px;
}
.tracker-fieldset {
  margin: 8px 0 0;
  padding: 14px;
  border: 1px solid #ece7e2;
  border-radius: 14px;
}
.tracker-fieldset legend {
  padding: 0 8px;
  font-weight: 700;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fcfcfb;
  min-height: 48px;
  color: #111827;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #9ca3af;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 96px;
}
button {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
button:hover { background: #0f172a; }
.result-empty {
  color: #6b7280;
  padding: 8px 0;
}
.result-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.result-header h2 {
  margin: 0;
}
.result-actions {
  display: flex;
  justify-content: stretch;
}
.result-actions button {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: #f3f4f6;
  color: #111827;
}
.result-actions button:hover {
  background: #e5e7eb;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  background: #ecfdf3;
  color: #166534;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-item {
  border: 1px solid #ece7e2;
  border-radius: 16px;
  padding: 14px;
  background: #fafaf9;
}
.summary-item .label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.summary-item .value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.result-block {
  margin-bottom: 16px;
  padding-top: 2px;
}
.result-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.result-block p, .result-block li {
  line-height: 1.7;
  color: #374151;
  font-size: 14px;
}
.result-block ul {
  margin: 0;
  padding-left: 20px;
}
.notes { margin-top: 14px; }
.source-title {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 6px;
}
.policy-box {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafaf9;
  border: 1px solid #ece7e2;
}
.policy-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.case-list {
  display: grid;
  gap: 10px;
}
.case-item {
  border: 1px solid #ece7e2;
  border-radius: 14px;
  background: #fafaf9;
  padding: 12px 14px;
}
.case-item-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.case-item-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}
.case-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case-item-actions button {
  min-height: 40px;
  padding: 10px 12px;
  margin-top: 0;
  background: #f3f4f6;
  color: #111827;
}
.case-item-actions button:hover {
  background: #e5e7eb;
}
@media (min-width: 768px) {
  .app {
    padding: 24px;
  }
  header {
    padding: 24px;
    margin-bottom: 18px;
  }
  header h1 {
    font-size: 32px;
  }
  header p {
    font-size: 15px;
  }
  .grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 18px;
  }
  .card {
    padding: 20px;
  }
  .result-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .result-actions {
    justify-content: flex-end;
  }
  .result-actions button {
    width: auto;
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
