:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --accent: #3d8bfd;
  --accent-hover: #5aa0ff;
  --danger: #f87171;
  --ok: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header.app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

header.app h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

ul.companies {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.companies li {
  margin-bottom: 0.5rem;
}

ul.companies a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

ul.companies a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #243044;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 500;
}

form .row {
  margin-bottom: 0.85rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121a26;
  color: var(--text);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

button,
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.alert-error {
  border-color: #7f1d1d;
  background: #1f1214;
  color: var(--danger);
}

.alert-ok {
  border-color: #064e3b;
  background: #0f1f18;
  color: var(--ok);
}

.rate-estimate {
  border-color: #1e3a8a;
  background: #10203f;
  color: #bfdbfe;
  font-size: 1.05rem;
  font-weight: 600;
}

.rate-note {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
