* { box-sizing: border-box; }
:root {
  --bg: #07111f;
  --bg-soft: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 28%), radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.18), transparent 24%), linear-gradient(180deg, #040814 0%, #091221 45%, #07111f 100%);
  --panel: rgba(8, 15, 31, 0.72);
  --panel-border: rgba(148, 163, 184, 0.18);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --text: #e5f0ff;
  --muted: #93a4bf;
  --primary: #60a5fa;
  --primary-strong: #38bdf8;
  --accent: #a78bfa;
  --success: #34d399;
  --warn: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-soft);
  color: var(--text);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 85%);
  pointer-events: none;
}
.lock-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lock-card, header, .card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
.lock-card {
  width: 100%;
  max-width: 420px;
  padding: 22px;
}
.lock-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}
.lock-card p {
  color: var(--muted);
}
.lock-message {
  min-height: 24px;
  color: #fca5a5;
  font-size: 14px;
}
.app {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px;
}
header {
  padding: 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
header::after {
  content: '';
  position: absolute;
  inset: auto -20% -50% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
  pointer-events: none;
}
header h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
header p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
  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 rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}
.tracker-fieldset legend {
  padding: 0 8px;
  font-weight: 700;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  min-height: 48px;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}
textarea {
  resize: vertical;
  min-height: 96px;
}
button {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: white;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
}
button:hover { filter: brightness(1.04); }
.result-empty {
  color: var(--muted);
  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;
  gap: 10px;
  flex-wrap: wrap;
}
.result-actions button,
.link-chip {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-decoration: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  background: rgba(52, 211, 153, 0.16);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
}
.summary-item .label {
  font-size: 12px;
  color: var(--muted);
  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: #d7e3f7;
  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: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.policy-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.office-contact-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.office-contact-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.78);
}
.office-contact-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.office-contact-card p {
  margin: 0 0 8px;
  color: #d7e3f7;
  line-height: 1.7;
  font-size: 14px;
}
.office-contact-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.office-contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
  font-weight: 700;
}
.case-list {
  display: grid;
  gap: 10px;
}
.case-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  padding: 12px 14px;
}
.case-item-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.case-item-meta {
  font-size: 13px;
  color: var(--muted);
  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: rgba(30, 41, 59, 0.92);
  color: var(--text);
  box-shadow: none;
}
.mode-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.mode-pill.highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
}
@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,
  .link-chip {
    width: auto;
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
