﻿:root {
  color-scheme: light;
  --bg: #fff8df;
  --surface: #ffffff;
  --surface-soft: #fff0bd;
  --text: #2b1a08;
  --muted: #7a6139;
  --line: #f0d48b;
  --primary: #f28c18;
  --primary-dark: #b65300;
  --accent: #ffd447;
  --shadow: 0 18px 50px rgba(148, 83, 0, 0.18);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 244, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary-dark);
}

.ghost-button,
.filter-chip,
.search-panel button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.ghost-button {
  padding: 10px 15px;
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.role-switcher {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.role-switcher span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-switcher select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--text);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(110deg, rgba(242, 140, 24, 0.88), rgba(255, 206, 71, 0.64)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-copy {
  color: rgba(255, 255, 255, 0.88);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
  gap: 12px;
  max-width: 790px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 4px;
}

.field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: white;
}

.search-panel button {
  align-self: end;
  min-height: 42px;
  padding: 0 22px;
  background: var(--primary);
  color: white;
}

.quick-card {
  position: relative;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
}

.quick-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.quick-label {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffbf1f;
  box-shadow: 0 0 0 6px rgba(255, 191, 31, 0.24);
}

.toolbar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px clamp(18px, 4vw, 56px);
}

.role-summary,
.management-grid,
.marketplace-section {
  padding-inline: clamp(18px, 4vw, 56px);
}

.role-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
}

.role-summary article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.role-summary h2 {
  font-size: 1.06rem;
}

.role-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  margin-bottom: 34px;
}

.marketplace-section {
  margin-bottom: 34px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.inline-form.stacked {
  grid-template-columns: 1fr 120px 120px;
}

.inline-form .full {
  grid-column: 1 / -1;
}

.inline-form button,
.table-action,
.buy-button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.inline-form button {
  min-height: 42px;
  padding: 0 15px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th {
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.role-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-action {
  padding: 7px 10px;
  font-size: 0.84rem;
}

.table-action.danger {
  background: #a33d00;
}

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

.market-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.market-card h3 {
  margin: 0;
}

.market-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.buy-button {
  padding: 9px 12px;
}

.locked {
  opacity: 0.55;
}

.locked input,
.locked select,
.locked button {
  pointer-events: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  padding: 0 clamp(18px, 4vw, 56px) 56px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--muted);
  font-weight: 800;
}

.section-heading.compact {
  margin-bottom: 14px;
}

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

.listing-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.listing-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.listing-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.listing-card h3 {
  margin: 0 0 5px;
  font-size: 1.06rem;
}

.listing-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.badge {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #2b1a08;
  color: white;
  font-weight: 800;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.event-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.event-list time {
  color: var(--primary-dark);
  font-weight: 900;
}

.notice {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.notice p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  background: #2b1a08;
  color: white;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero,
  .content-grid,
  .role-summary,
  .management-grid,
  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    max-width: 460px;
  }

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

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

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

  .role-switcher {
    width: 100%;
  }

  .inline-form,
  .inline-form.stacked {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }
}


