:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191b1f;
  --line: #30343b;
  --text: #f0eee8;
  --muted: #a9a59a;
  --accent: #e8b44f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.topbar {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .08em; }
nav { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.credits { color: var(--accent); }
.shell { width: min(1180px, calc(100vw - 36px)); margin: 44px auto; }
h1 { font-size: clamp(34px, 5vw, 64px); margin: 0 0 18px; }
h2 { margin: 0 0 16px; }
p { color: var(--muted); line-height: 1.8; }
.login-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  border-radius: 8px;
}
.panel.small { grid-column: 2; }
.prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prices span {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--accent);
}
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.package {
  border: 1px solid var(--line);
  background: #111316;
  border-radius: 8px;
  padding: 18px;
}
.package strong, .package span { display: block; margin-bottom: 12px; }
.package span { color: var(--muted); }
input, button {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0f1012;
  color: var(--text);
  padding: 0 14px;
  margin-bottom: 12px;
  font: inherit;
}
button {
  cursor: pointer;
  border-color: #c48b2f;
  background: var(--accent);
  color: #16120a;
  font-weight: 800;
}
button:disabled { cursor: wait; opacity: .72; }
.muted, .empty { color: var(--muted); }
.search-head { margin-bottom: 28px; }
.search-form { display: grid; grid-template-columns: 1fr 150px 160px; gap: 12px; }
.search-progress {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #14161a;
}
.search-progress p { margin: 8px 0 0; }
.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b0c0e;
}
.progress-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: progress-slide 1.15s ease-in-out infinite;
}
@keyframes progress-slide {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(245%); }
}
.results { display: grid; gap: 18px; }
.result-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}
.result-body { padding: 18px 20px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--accent); margin-bottom: 10px; }
dl { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; color: var(--muted); }
dt { color: #d8d2c2; }
pre {
  overflow: auto;
  background: #0b0c0e;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}
.inline-form { display: grid; grid-template-columns: 110px 130px 1fr 120px; gap: 12px; }
.table-form { margin: 0; }
.table-form button { height: 34px; margin: 0; padding: 0 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
td, th { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  .login-grid, .search-form, .inline-form, .package-grid { grid-template-columns: 1fr; }
  .panel.small { grid-column: auto; }
}
