:root {
  --bg: #f3efe6;
  --panel: rgba(255, 252, 245, 0.88);
  --ink: #1e1c19;
  --muted: #686157;
  --line: rgba(135, 120, 96, 0.2);
  --brand: #0d5c63;
  --brand-strong: #063f46;
  --brand-soft: #d5eef0;
  --accent: #c46b32;
  --danger: #8f2d2d;
  --danger-soft: #f5d9d9;
  --success: #1e6b3b;
  --success-soft: #dff2e5;
  --shadow: 0 30px 80px rgba(32, 26, 18, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 107, 50, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 92, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #fcf8f0 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(13, 92, 99, 0.08);
  color: var(--brand-strong);
}

.meta {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.92rem;
}

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

.hero,
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.hero h1,
.panel h1,
.panel h2 {
  margin-top: 0;
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 800;
}

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

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

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

.actions,
.section-head,
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 640px;
}

.hero-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.mini-stat {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 92, 99, 0.1), rgba(13, 92, 99, 0.04));
  border: 1px solid rgba(13, 92, 99, 0.12);
}

.mini-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 92, 99, 0.18);
  border-color: rgba(13, 92, 99, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button-secondary {
  background: #eef4ef;
  color: var(--brand-strong);
}

.button-small {
  padding: 8px 12px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.info-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 92, 99, 0.08);
  color: var(--brand-strong);
}

.flash {
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 600;
}

.flash-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.flash-success {
  background: var(--success-soft);
  color: var(--success);
}

.auth-panel {
  width: min(100%, 520px);
  margin: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.intro-card {
  padding: 36px 32px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(13, 92, 99, 0.93), rgba(6, 63, 70, 0.92)),
    var(--brand);
  color: #f8fbfb;
  box-shadow: var(--shadow);
}

.intro-card h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 12px 0;
}

.intro-card p {
  max-width: 34rem;
}

.status-pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.status-pill-inline {
  margin: 0;
  font-size: 0.92rem;
  white-space: nowrap;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -44px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(196, 107, 50, 0.14), transparent 65%);
}

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

.detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  max-width: 65%;
  text-align: right;
  color: var(--muted);
}

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

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-card h2 {
  margin-bottom: 6px;
  font-size: 2.6rem;
}

.filters {
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

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

.week-board {
  display: grid;
  gap: 18px;
}

.day-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.day-card-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

  .hero {
    align-items: start;
    flex-direction: column;
  }

  .hero-side {
    width: 100%;
    justify-items: stretch;
  }

  .detail-list p {
    flex-direction: column;
  }

  .detail-list span {
    max-width: 100%;
    text-align: left;
  }

  .info-strip,
  .week-nav,
  .day-card-head,
  .action-row {
    flex-direction: column;
    align-items: start;
  }
}
