:root {
  --bg: #10141c;
  --surface-1: #161c27;
  --surface-2: #1c2431;
  --border: #2e3a4d;
  --border-accent: #c9a227;
  --border-danger: #b3352c;
  --border-warning: #c9a227;
  --text: #e9e6dc;
  --text-secondary: #9aa6b8;
  --text-muted: #647085;
  --text-accent: #e0b93a;
  --text-success: #6fd19a;
  --text-warning: #e0b93a;
  --text-danger: #e2635a;
  --bg-accent: #3a2c12;
  --bg-success: #1e3327;
  --bg-warning: #3a2c12;
  --bg-danger: #3a1f1c;
  --fill-accent: #b3352c;
  --fill-success: #4caf7d;
  --fill-warning: #c9a227;
  --fill-danger: #b3352c;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

.container { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }

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

nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-accent); background: linear-gradient(180deg, #161c27 0%, #10141c 100%); }
nav .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #e0b93a 0%, #d68a2a 40%, #b3352c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
nav .brand a { color: inherit; }
nav .links a { margin-left: 16px; font-size: 14px; color: var(--text-secondary); }
nav .links a:hover { color: var(--text-accent); }

h1, h2, h3 { font-weight: 500; }

button, input[type="submit"], .btn {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
button.primary { border-color: var(--border-accent); color: var(--text-accent); }
button.danger { border-color: var(--border-danger); color: var(--text-danger); }
button:hover { background: var(--surface-1); }

input[type=text], input[type=number], input[type=password], select, textarea {
  background: var(--surface-1);
  border: 0.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 4px; }

.card { background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.card.you { border: 2px solid var(--border-accent); }
.panel { background: var(--surface-1); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 20px; }

.progress { height: 6px; border-radius: 4px; background: var(--surface-1); overflow: hidden; margin-bottom: 8px; }
.progress .fill { height: 100%; }

.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: var(--radius); margin: 2px 4px 2px 0; }
.pill.accent { background: var(--bg-accent); color: var(--text-accent); }
.pill.success { background: var(--bg-success); color: var(--text-success); }
.pill.warning { background: var(--bg-warning); color: var(--text-warning); }
.pill.danger { background: var(--bg-danger); color: var(--text-danger); }
.pill.muted { color: var(--text-muted); }

.unit-row { padding: 12px 14px; border-bottom: 0.5px solid var(--border); }
.unit-row:last-child { border-bottom: none; }
.unit-list { border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
td { padding: 6px 0; border-bottom: 0.5px solid var(--border); }
tr:last-child td { border-bottom: none; }

.section-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 6px; }

.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.full { width: 100%; }
