* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: #1f1a14;
  background:
    radial-gradient(circle at top left, rgba(206, 154, 84, 0.22), transparent 30%),
    linear-gradient(180deg, #f4e9d8 0%, #dfd1be 100%);
}

button,
input,
select {
  font: inherit;
}

.background-orbit {
  position: fixed;
  border-radius: 999px;
  border: 1px solid rgba(117, 83, 39, 0.16);
  pointer-events: none;
}

.orbit-a {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
}

.orbit-b {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -80px;
}

.app-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-panel {
  padding: 32px 12px 24px;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 700px;
  margin: 16px 0 0;
  color: #4b4135;
  font-size: 1.05rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #8a5a23;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.card,
.hero-panel,
.dashboard-bar {
  backdrop-filter: blur(10px);
  background: rgba(255, 251, 245, 0.74);
  border: 1px solid rgba(117, 83, 39, 0.16);
  box-shadow: 0 18px 54px rgba(66, 44, 20, 0.1);
  border-radius: 28px;
}

.card {
  padding: 24px;
}

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

.dashboard {
  display: grid;
  gap: 20px;
}

.dashboard-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
}

.dashboard-bar h2,
.card-heading h2,
.card-heading h3,
.table-meta h3 {
  margin: 0;
}

.dashboard-actions,
.filter-actions,
.pagination,
.tab-strip {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tab-strip {
  flex-wrap: wrap;
}

.tab-button {
  border: 1px solid rgba(117, 83, 39, 0.16);
  background: rgba(255, 251, 245, 0.7);
  color: #4a3825;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.tab-button.active {
  background: #51331c;
  color: #fef7ee;
}

.button {
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border: none;
  background: #51331c;
  color: #fff7ee;
}

.button-secondary {
  border: 1px solid rgba(117, 83, 39, 0.16);
  background: #ede0cd;
  color: #3c2f25;
}

.button-ghost {
  border: 1px solid rgba(117, 83, 39, 0.16);
  background: transparent;
  color: #3c2f25;
}

.stack-form,
.filter-grid {
  display: grid;
  gap: 16px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: #5d4b3b;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(117, 83, 39, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 252, 248, 0.84);
}

.inline-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #8a2626;
}

.hidden {
  display: none !important;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(117, 83, 39, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  color: #5c4937;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.status-card {
  border: 1px solid rgba(117, 83, 39, 0.14);
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.92);
  overflow: hidden;
}

.status-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d8c3a8;
}

.status-card audio {
  width: calc(100% - 24px);
  margin: 16px 12px 0;
}

.status-card-body {
  padding: 16px;
}

.status-text {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(81, 51, 28, 0.95), rgba(176, 126, 70, 0.86));
  color: #fff4e7;
  font-size: 1.05rem;
}

.status-caption {
  margin: 0 0 12px;
  color: #3c2f25;
}

.muted {
  color: #706357;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
  }

  .dashboard-bar,
  .table-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
