:root {
  color-scheme: dark;
  --bg: #101721;
  --card: #182231;
  --card2: #202d3f;
  --text: #f4f7fb;
  --muted: #9aa8bb;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #4aa3ff;
  --accent2: #2dd4bf;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(74, 163, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, #0c121b, var(--bg));
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.muted,
.meta,
.filters {
  color: var(--muted);
}

.card {
  padding: 16px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
  background: var(--card2);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(74, 163, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.16);
}

button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: var(--card2);
  cursor: pointer;
}

.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #04101d;
  font-weight: 800;
}

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

.inlineActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inlineActions .ghost {
  flex: 0 1 auto;
}

.chips {
  display: flex;
  min-height: 42px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 2px;
}

.chip {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.13);
  color: var(--text);
  border-radius: 999px;
  font-size: 13px;
}

.wide {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.sectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  min-width: 30px;
  padding: 4px 9px;
  text-align: center;
  color: #04101d;
  background: var(--accent2);
  border-radius: 999px;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.searchItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.listingItem {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.listingPhoto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--card2);
}

.listingDescription {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
}

.openLink {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #04101d;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.meta,
.filters {
  margin-bottom: 4px;
  font-size: 13px;
}

.actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.danger {
  color: #fff;
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.14);
}

.empty {
  padding: 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

@media (max-width: 680px) {
  .app {
    padding: 14px;
  }

  .hero,
  .searchItem,
  .listingItem {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
  }

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

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .inlineActions .ghost {
    width: 100%;
  }
}
