* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --border: #d9e2ef;
  --border-strong: #c5d1e0;
  --text: #142033;
  --text-sub: #66758a;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --green: #0f9f6e;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(30, 41, 59, 0.08);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 2.4rem;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel,
.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.primary,
.small-button,
.icon-button {
  border: 0;
}

.primary,
.small-button {
  min-height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.primary {
  width: 100%;
}

.small-button {
  padding: 0 16px;
}

.small-button.danger {
  background: var(--red);
}

.icon-button {
  min-width: 42px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
  font-weight: 750;
}

.positive strong,
.success {
  color: var(--green);
}

.negative strong,
.error {
  color: var(--red);
}

.error,
.success {
  margin-bottom: 12px;
  font-weight: 750;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
