:root {
  --bg: #10150f;
  --bg-2: #171e16;
  --panel: #1c251b;
  --line: #31402e;
  --text: #eef4e8;
  --muted: #93a48c;
  --lime: #c6ef4a;
  --lime-2: #9ad43a;
  --mint: #5ee0a0;
  --warn: #f0c14b;
  --danger: #ff7a6e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, sans-serif;
}

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(198, 239, 74, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(94, 224, 160, 0.06), transparent 45%),
    var(--bg);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a {
  color: var(--lime);
}

.app {
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #141b13 0%, #10150f 100%);
  padding: 28px 22px 40px;
  overflow: auto;
}

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

.brand h1 {
  margin: 0;
  font-family: Geologica, sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.brand-kicker {
  margin: 0 0 2px;
  color: var(--lime-2);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pin {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 16px 6px;
  background: var(--lime);
  position: relative;
  transform: rotate(-12deg);
  box-shadow: 0 8px 20px rgba(198, 239, 74, 0.25);
}

.pin span {
  position: absolute;
  inset: 13px 13px 15px;
  border-radius: 50%;
  background: #10150f;
}

.lede {
  color: var(--muted);
  line-height: 1.45;
  margin: 18px 0 22px;
}

.filters {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  font-family: Geologica, sans-serif;
}

.step {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--lime);
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field.tight {
  margin-top: 12px;
}

input,
button {
  font: inherit;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #121811;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}

input:focus {
  border-color: var(--lime-2);
}

.hint,
.picked {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 8px 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip,
.size-btn,
.suggest button,
.tag {
  border: 1px solid var(--line);
  background: #141c13;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.chip:hover,
.size-btn:hover,
.suggest button:hover {
  border-color: var(--lime-2);
}

.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.size-btn.is-active,
.chip.is-active {
  background: var(--lime);
  color: #152010;
  border-color: var(--lime);
  font-weight: 700;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.range-row label {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 4px;
}

.suggest {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.suggest button {
  border-radius: 12px;
  text-align: left;
  padding: 9px 10px;
}

.suggest small {
  display: block;
  color: var(--muted);
}

.selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  background: rgba(198, 239, 74, 0.12);
  border-color: rgba(198, 239, 74, 0.35);
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.primary,
.ghost {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
}

.primary {
  background: var(--lime);
  color: #14200f;
  font-weight: 700;
}

.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.main {
  padding: 28px 28px 40px;
  min-width: 0;
}

.main-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.main-head h2 {
  margin: 0;
  font-family: Geologica, sans-serif;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.main-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 8px;
  min-width: 360px;
}

.toolbar .ghost {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 16px;
}

.stats article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

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

.stats strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-family: Geologica, sans-serif;
}

.progress {
  height: 6px;
  background: #243022;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime-2), var(--mint));
  transition: width 0.2s ease;
}

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

.warn.is-info {
  color: var(--mint);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  background: #141b13;
  max-height: calc(100vh - 280px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #1a2319;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

td {
  font-size: 14px;
}

.name {
  font-weight: 700;
}

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

.size-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #243022;
  font-size: 12px;
}

.contacts a,
.contacts span {
  display: block;
  font-size: 13px;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.empty-map {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  background:
    radial-gradient(circle at 50% 42%, var(--lime) 7px, transparent 8px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, #2c3a29 12px),
    repeating-linear-gradient(0deg, transparent, transparent 11px, #2c3a29 12px);
}

.linkish {
  color: var(--mint);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats,
  .toolbar {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }

  .main-head,
  .toolbar {
    display: grid;
  }
}
