:root {
  --bg-main: #f5f7ef;
  --bg-gradient-a: #fef2d8;
  --bg-gradient-b: #d7f0ea;
  --ink: #102a43;
  --ink-soft: #36506b;
  --card: rgba(255, 255, 255, 0.86);
  --line: #d2ddd6;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warning: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, var(--bg-gradient-a), transparent 35%),
    radial-gradient(circle at 95% 0%, var(--bg-gradient-b), transparent 32%),
    var(--bg-main);
  min-height: 100vh;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(16, 42, 67, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 239, 0.76);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, #f97316, #0f766e);
}

.top-nav {
  display: flex;
  gap: 1rem;
}

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

main {
  padding: 1.2rem 0 2.2rem;
}

.hero {
  padding: 1.2rem 0 0.5rem;
}

.hero h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.5rem, 3.6vw, 2.45rem);
  line-height: 1.12;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: #0b9489;
  margin: 0;
  font-weight: 800;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  margin: 1rem 0;
  box-shadow: 0 15px 50px -32px rgba(16, 42, 67, 0.44);
}

.search-form label,
.report-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

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

.search-mode-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.export-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

input,
select,
textarea,
button,
.button-secondary {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid #b7cac1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

button,
.button-secondary {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
}

button {
  background: var(--accent);
  color: #fff;
}

button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: #e5ece9;
  color: #1f3b52;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.panel-title-row h1,
.panel-title-row h2 {
  margin: 0;
}

.link-action {
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

th,
td {
  text-align: left;
  padding: 0.72rem;
  border-bottom: 1px solid #d3e1dc;
}

th {
  color: #204560;
  font-size: 0.94rem;
}

td a {
  color: var(--accent-strong);
  font-weight: 700;
}

.empty-state {
  font-family: "Spectral", serif;
  font-size: 1.05rem;
}

.field-grid {
  display: grid;
  gap: 0.95rem;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-form {
  display: grid;
  gap: 1rem;
}

small {
  color: #51697f;
}

.error-box {
  background: #fee4e2;
  border: 1px solid #fecdca;
  color: var(--warning);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.success-box {
  background: #dcfae6;
  border: 1px solid #b7efcc;
  color: #0e6f3d;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.rejected-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.rejected-card {
  margin: 0;
}

.meta-row {
  margin: 0.75rem 0;
  color: #45627a;
  font-size: 0.95rem;
}

details {
  border: 1px dashed #b7cac1;
  border-radius: 10px;
  padding: 0.8rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
  margin-top: 1rem;
}

.detail-photo img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.detail-description {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(16, 42, 67, 0.08);
  color: #3c566f;
  padding: 1.2rem 0 2.2rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .two-columns,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .top-nav a {
    background: rgba(210, 221, 214, 0.45);
    border-radius: 8px;
    text-align: center;
    padding: 0.35rem;
  }
}
