:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --panel-2: #172238;
  --text: #edf3ff;
  --muted: #9db0d0;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 14px 40px rgba(0,0,0,0.25);
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #0f1728 100%);
  color: var(--text);
}
.container {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 40px;
}
.hero {
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card {
  background: rgba(18,26,43,0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.toolbar {
  padding: 16px;
  margin-bottom: 18px;
}
.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}
.toolbar-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  font-size: 16px;
}
button {
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: #4f8cff;
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
button.secondary {
  background: #24324d;
}
button:hover { opacity: 0.92; }
.status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.summary-card {
  padding: 14px 16px;
  background: rgba(18,26,43,0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sheet-card {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(18,26,43,0.95);
}
.sheet-header {
  padding: 14px 16px;
}
.sheet-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.sheet-meta {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #0b1220;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: rgba(11,18,32,0.98);
  z-index: 1;
}
tr:hover td {
  background: rgba(255,255,255,0.03);
}
mark {
  background: #ffe16b;
  color: #111;
  padding: 0 2px;
  border-radius: 4px;
}
.empty, .error-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(18,26,43,0.9);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.checkbox { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .search-wrap { grid-template-columns: 1fr; }
  button { width: 100%; }
}
