:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --primary: #ff7a1a;
  --primary-strong: #e45a00;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 520px at 15% -10%, rgba(255, 122, 26, 0.08), transparent),
              radial-gradient(900px 420px at 90% 0%, rgba(14, 165, 233, 0.08), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
}

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head-grid {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  grid-template-columns: auto 1fr auto;
}

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

h1 { margin: 0 0 6px; line-height: 1.2; }

.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 200ms ease;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.btn.ghost { background: transparent; color: var(--text); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #0f172a; border-color: transparent; }
.btn.danger { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; border-color: #ef4444; }

.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

.panel {
  margin: 24px 0 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel.sub {
  margin-top: 12px;
  background: #ffffff;
}

.panel-body { padding: 18px; display: grid; gap: 16px; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.field { display: grid; gap: 6px; color: var(--muted); }
.field input, .field select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-value { font-size: 28px; font-weight: 800; }
.stat-label { color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.data-table th { color: var(--muted); font-weight: 700; background: #f8fafc; position: sticky; top: 0; }

.data-table tbody tr:hover { background: rgba(255, 122, 26, 0.06); }

.mini { font-size: 13px; }

.calendar-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cal-nav { display: inline-flex; align-items: center; gap: 8px; }
.cal-nav #calLabel { font-weight: 800; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  padding: 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  min-height: 60px;
}

.cal-cell .date {
  font-weight: 700;
  color: var(--primary);
}

.cal-cell .count {
  color: var(--muted);
  font-size: 13px;
}

.listing-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.listings .table-wrap {
  margin-top: 8px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.brand-mark img { width: 44px; height: 44px; }

.brand-name { font-size: 18px; }
.brand-tagline { color: var(--muted); font-size: 13px; }

.head-copy h1 { margin: 0 0 4px; }
.head-copy p { margin: 0; }

.detail-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.detail-form textarea {
  width: 100%;
  min-height: 100px;
}

@media (max-width: 640px) {
  .head-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-head .actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .data-table { min-width: 720px; }
}
