:root {
  --bg: #f4efe6;
  --paper: rgba(255, 250, 243, 0.88);
  --paper-strong: #fffaf1;
  --ink: #14213d;
  --muted: #6f6a62;
  --line: rgba(20, 33, 61, 0.12);
  --brand: #c86b3c;
  --brand-deep: #9d4f29;
  --accent: #2f7f73;
  --accent-soft: #d9efe9;
  --warn: #b33a3a;
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 107, 60, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(47, 127, 115, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f1e7 0%, #efe5d7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

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

.brand {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero,
.panel,
.auth-panel,
.section-card {
  background: var(--paper);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 34px;
}

.hero h1,
.panel h1,
.section-card h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p,
.lead,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.stat-grid,
.action-grid {
  display: grid;
  gap: 14px;
}

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

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

.stat,
.action-tile,
.info-chip {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.action-tile {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 107, 60, 0.45);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
}

.action-kicker,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.action-title {
  font-size: 20px;
  font-weight: 700;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-chip {
  padding: 18px;
}

.info-chip strong {
  display: block;
  margin-bottom: 6px;
}

.panel,
.auth-panel,
.section-card {
  padding: 28px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.stack {
  display: grid;
  gap: 16px;
}

.form-card {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 127, 115, 0.18);
  border-color: rgba(47, 127, 115, 0.55);
}

.button,
button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  background: var(--brand-deep);
}

.button.secondary,
.button-ghost {
  background: rgba(20, 33, 61, 0.08);
  color: var(--ink);
}

.button.secondary:hover,
.button-ghost:hover {
  background: rgba(20, 33, 61, 0.14);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-shell {
  width: min(520px, calc(100% - 32px));
  margin: 64px auto;
}

.auth-hero {
  display: grid;
  gap: 18px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 107, 60, 0.12);
  color: var(--brand-deep);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card {
  display: grid;
  gap: 16px;
}

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

.auth-note {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(47, 127, 115, 0.09);
  border: 1px solid rgba(47, 127, 115, 0.16);
  color: var(--ink);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-title {
  display: grid;
  gap: 6px;
}

.page-title h1,
.page-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.nav-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.tabs button {
  background: rgba(20, 33, 61, 0.08);
  color: var(--ink);
}

.tabs button:hover {
  background: rgba(20, 33, 61, 0.16);
}

.table-card {
  overflow: hidden;
}

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

th,
td {
  border: 1px solid rgba(20, 33, 61, 0.08);
  padding: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
}

th {
  background: #f6ede3;
}

.result-card {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.status-pill.pending {
  background: #ffe8bf;
  color: #8e5a00;
}

.status-pill.accepted {
  background: #d8f3e8;
  color: #12664f;
}

.status-pill.rejected {
  background: #f8d7d7;
  color: #8f2323;
}

@media (max-width: 920px) {
  .hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .field-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .panel,
  .auth-panel,
  .hero,
  .section-card {
    padding: 20px;
  }
}
