
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f1724;
  --accent: #6d28d9;
  --accent-600: #7c3aed;
  --glass: rgba(124, 58, 237, 0.06);
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 8px 30px rgba(15, 23, 36, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body,
#app {
  height: 100%
}

body {
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial;
  background: linear-gradient(180deg, var(--bg), #eaf0f8);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding: 28px
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 36, 0.03)
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center
}

.logo {
  width: 96px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12)
}

h1 {
  font-size: 18px;
  margin-bottom: 6px
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px
}

label {
  display: block;
  font-size: 13px;
  color: #24303d;
  margin-bottom: 6px
}

input[type=number],
select,
input[type=text] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(14, 20, 28, 0.06);
  background: transparent;
  font-size: 14px
}

.field {
  margin-bottom: 12px
}

.row {
  display: flex;
  gap: 10px
}

.col {
  flex: 1
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: 8px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12)
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(14, 20, 28, 0.06)
}

.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px
}

.big {
  font-size: 20px;
  font-weight: 700
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--accent);
  font-weight: 700
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.stat {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.04), rgba(124, 58, 237, 0.02));
}

.stat h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px
}

.stat .value {
  font-size: 18px;
  font-weight: 700
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px
}

th,
td {
  padding: 10px 8px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(15, 23, 36, 0.04)
}

.right {
  text-align: right
}

.muted-sm {
  color: var(--muted);
  font-size: 13px
}

.neg {
  color: var(--danger);
  font-weight: 600
}

.pos {
  color: var(--success);
  font-weight: 700
}

/* responsive */
@media (max-width:980px) {
  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width:520px) {
  body {
    padding: 14px
  }

  .card {
    padding: 14px
  }

  .grid-two {
    grid-template-columns: 1fr
  }
}

input:focus,
select:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18)
}

.hint {
  font-size: 12px;
  color: var(--muted);
}