:root {
  --bg: #eef3ea;
  --surface: #fffdf7;
  --surface-strong: #16302b;
  --text: #17231f;
  --muted: #55706b;
  --line: rgba(22, 48, 43, 0.12);
  --accent: #c96f3b;
  --accent-soft: #f4dfd0;
  --success: #24734f;
  --danger: #992b2b;
  --shadow: 0 18px 40px rgba(22, 48, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 111, 59, 0.15), transparent 32%),
    linear-gradient(180deg, #f6f0e6 0%, var(--bg) 100%);
}

.site-header,
.layout {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-chip {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.76);
  border: 1px solid var(--line);
}

.user-chip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.layout {
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

.card {
  background: color-mix(in srgb, var(--surface) 88%, white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero,
.grid-two {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-card.accent {
  background: linear-gradient(135deg, var(--surface-strong), #23564c);
  color: white;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: white;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.small {
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
}

.flash-stack {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  gap: 0.6rem;
}

.flash {
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.flash-success {
  background: rgba(36, 115, 79, 0.12);
  color: var(--success);
}

.flash-error {
  background: rgba(153, 43, 43, 0.12);
  color: var(--danger);
}

.table-list {
  display: grid;
  gap: 0.75rem;
}

.table-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--surface-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.password-field {
  display: grid;
  gap: 0.5rem;
}

.auth-card {
  max-width: 460px;
  margin: 4rem auto 0;
}

@media (max-width: 700px) {
  .site-header {
    display: grid;
    gap: 1rem;
  }

  .header-actions {
    display: grid;
  }

  .table-row {
    display: grid;
  }
}
