:root {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #102536;
  background: #eef3f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: #0e6d74;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

button.ghost {
  background: #fff;
  border: 1px solid #ccd8e0;
  color: #102536;
}

button.danger {
  background: #a62929;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid #ccd8e0;
  border-radius: 8px;
  color: #102536;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #0e6d74;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
}

h2 {
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel {
  background: #fff;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 35, 51, 0.08);
}

.login-panel {
  width: min(440px, 100%);
}

.grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 16px;
  margin: 16px 0;
}

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

.stat {
  background: #fff;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  padding: 14px;
  color: #102536;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 35, 51, 0.06);
}

.stat:hover {
  border-color: #0e6d74;
  background: #f4fbfb;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: #0e6d74;
}

.stat span {
  display: block;
  color: #526777;
}

.stat small {
  display: block;
  margin-top: 8px;
  color: #6b7e8c;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-note {
  margin: 12px 0 0;
  color: #607484;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-block {
  margin-top: 20px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.tab-btn {
  background: #fff;
  border: 1px solid #ccd8e0;
  color: #102536;
}

.tab-btn.active {
  background: #0e6d74;
  border-color: #0e6d74;
  color: #fff;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: grid;
}

.panel.admin-view.active {
  display: block;
}

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

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

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  background: #f8fbfc;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: #4e6373;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #4e6373;
  font-size: 0.84rem;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid #cbd7df;
  border-radius: 8px;
  padding: 10px 12px;
  color: #102536;
}

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

.form-hint {
  margin: -4px 0 0;
  padding: 9px 11px;
  border: 1px solid #d7e4ea;
  border-radius: 8px;
  background: #f7fafb;
  color: #526777;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.place-results {
  display: grid;
  gap: 8px;
}

.place-result {
  width: 100%;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  background: #f8fbfc;
  color: #102536;
  padding: 10px 12px;
  text-align: left;
}

.place-result:hover {
  border-color: #0e6d74;
  background: #eef8f8;
}

.place-result strong,
.place-result span,
.place-result small {
  display: block;
}

.place-result span,
.place-result small {
  color: #607484;
  font-weight: 600;
}

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

.event-item {
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}

.event-item[data-status="pending"] {
  border-color: #d9b85c;
  background: #fff9e8;
}

.event-item[data-status="rejected"] {
  border-color: #d89c9c;
  background: #fff1f1;
}

.event-item:hover,
.event-item.active {
  border-color: #0e6d74;
  background: #f0f8f8;
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item span,
.event-item small,
.muted,
.status {
  color: #607484;
}

.event-item small {
  display: block;
  margin-top: 3px;
}

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

.detail-item {
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.detail-item strong,
.detail-item span {
  display: block;
}

.detail-item span {
  color: #607484;
  font-size: 0.88rem;
}

.detail-item p {
  margin: 8px 0 0;
}

.error {
  color: #a62929;
}

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

.activity ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 840px) {
  .grid,
  .stats,
  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
