:root {
  --bg: #f4ede3;
  --panel: rgba(255, 251, 246, 0.8);
  --panel-strong: #fffaf2;
  --line: rgba(96, 63, 38, 0.14);
  --text: #2f241d;
  --muted: #766355;
  --accent: #a1673f;
  --accent-dark: #6f4226;
  --accent-soft: #efe0d0;
  --ok: #2f8f62;
  --shadow: 0 22px 70px rgba(72, 45, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 103, 63, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(93, 123, 97, 0.14), transparent 26%),
    linear-gradient(180deg, #f8f1e8 0%, #f2e8da 42%, #f8f4ed 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 85%);
}

.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-copy,
.hero-status,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 34px;
}

.eyebrow,
.kicker,
.status-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-status {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.status-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(96, 63, 38, 0.1);
}

.status-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.status-panel small {
  color: var(--muted);
}

.status-panel.accent {
  background: linear-gradient(135deg, rgba(161, 103, 63, 0.16), rgba(255, 248, 239, 0.9));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: clamp(2rem, 2vw, 2.8rem);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(111, 66, 38, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(161, 103, 63, 0.48);
  box-shadow: 0 0 0 4px rgba(161, 103, 63, 0.12);
  transform: translateY(-1px);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(111, 66, 38, 0.22);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.76);
}

.switch-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.btn-primary,
.btn-ghost {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 16px 34px rgba(111, 66, 38, 0.22);
}

.btn-ghost {
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.card-list {
  display: grid;
  gap: 14px;
}

.card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(96, 63, 38, 0.12);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(161, 103, 63, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill.ok {
  background: rgba(47, 143, 98, 0.12);
  color: var(--ok);
}

.empty-state {
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(111, 66, 38, 0.22);
  color: var(--muted);
  background: rgba(255, 252, 248, 0.7);
}

.card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(47, 36, 29, 0.94);
  color: white;
  box-shadow: 0 18px 40px rgba(24, 14, 10, 0.28);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .panel {
    padding: 18px;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}
