:root {
  --bg: #14110e;
  --card: #241c16;
  --line: #3c3128;
  --text: #f6f1ea;
  --muted: #b7aa9c;
  --accent: #ff7a1a;
  --ok: #2f9e62;
  --danger: #d4534b;
  --warn: #e0a23a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  padding: 24px 18px;
  background: #1c1612;
  border-right: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 20px; margin-bottom: 22px; }
.brand span { color: var(--accent); }
.side a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 4px;
}
.side a:hover, .side a.active { background: #2c241c; color: var(--text); }
.content { padding: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { font-size: 28px; font-weight: 700; }
.muted { color: var(--muted); }
.flash, .warn, .error {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.flash { background: #1d3a2a; }
.warn { background: #3d3118; }
.error { background: #4a2422; }
.btn, button, .linkish {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--accent);
  color: #1a100a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost, button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger, button.danger { background: var(--danger); color: white; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label { display: block; margin: 10px 0 4px; color: var(--muted); }
input[type="checkbox"] { width: auto; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a1512;
  color: var(--text);
}
textarea { min-height: 90px; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #3a3128;
  font-size: 12px;
}
.badge.new { background: #6a4a16; }
.badge.accepted { background: #1d4a32; }
.badge.rejected, .badge.cancelled { background: #5a2a28; }
.product {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.price { color: var(--accent); font-weight: 700; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login .card { width: min(420px, 100%); }
.phone { max-width: 280px; }
.phone .key {
  background: #2a231c;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  text-align: center;
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
}
