:root {
  color-scheme: light;
  --bg-start: #0f172a;
  --bg-end: #1d4ed8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --focus: #3b82f6;
  --success: #166534;
  --success-bg: #dcfce7;
  --error: #991b1b;
  --error-bg: #fee2e2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-start), var(--bg-end));
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(680px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.32);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--focus);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
}

.subtitle {
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 14px;
  font-size: 16px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

button {
  margin-top: 18px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.status {
  margin: 16px 0 0;
  min-height: 24px;
  border-radius: 10px;
  padding: 8px 12px;
  display: none;
}

.status.visible {
  display: block;
}

.status.success {
  color: var(--success);
  background: var(--success-bg);
}

.status.error {
  color: var(--error);
  background: var(--error-bg);
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.details-page {
  color: #e2e8f0;
}

.details-meta {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0 22px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.fingerprint-card {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #cbd5e1;
}

.fingerprint-card__header h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.fingerprint-card__key {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.fingerprint-card__description {
  margin: 10px 0;
  color: #334155;
  line-height: 1.4;
}

.fingerprint-card pre {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 15px;
  font: inherit;
  background: #fff;
}

.fingerprint-settings {
  margin-top: 16px;
}

.mode-fields {
  margin: 8px 0 0;
  color: var(--muted);
  padding-left: 22px;
}

.fingerprint-mode-info {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 22px;
}

.fingerprint-mode-info h2 {
  margin-top: 0;
}

.matched-timeline-controls {
  margin: 0 0 22px;
}

.timeline-button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.matched-timeline {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 22px;
}

.matched-timeline ul {
  margin: 0;
  padding-left: 20px;
}

.matched-timeline li {
  margin-bottom: 10px;
}
