:root {
  --bg: #f3efe7;
  --bg-2: #ebe2d3;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #fffaf1;
  --ink: #1f1b16;
  --muted: #675d52;
  --line: rgba(72, 60, 46, 0.16);
  --accent: #4f6a3b;
  --accent-2: #8a5231;
  --shadow: 0 18px 50px rgba(45, 32, 20, 0.11);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(79, 106, 59, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(138, 82, 49, 0.15), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
strong,
.eyebrow {
  font-family: "Georgia", "Times New Roman", serif;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

a {
  color: var(--accent);
}

.page {
  min-height: 100vh;
  padding: 28px 20px 40px;
}

.shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.dashboard-shell,
.detail-shell {
  gap: 24px;
}

.hero-card,
.panel,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 24px;
}

.panel {
  padding: 22px;
}

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

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

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.hero-intro h1 {
  font-size: clamp(2.35rem, 4vw, 4.7rem);
  line-height: 0.98;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.summary-grid,
.grid-2,
.grid {
  display: grid;
  gap: 16px;
}

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

.stat {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.stat strong {
  font-size: 1.6rem;
}

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

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

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.column {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.column-head h3 {
  margin: 0;
  font-size: 2rem;
}

.project-card,
.asset-card,
.message-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

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

.project-card h4,
.project-card h3 {
  margin: 0;
}

.project-meta,
.list-row-meta,
.timeline-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(79, 106, 59, 0.1);
  color: var(--ink);
  font-size: 0.82rem;
}

.list-row,
.timeline-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.list-row strong,
.timeline-row strong {
  display: block;
  margin-bottom: 4px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.88rem;
  color: var(--muted);
}

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

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

textarea {
  resize: vertical;
}

button,
.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

button {
  background: var(--accent);
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.ghost,
.ghost-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.compact-form {
  max-width: 100%;
}

.compact-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.slim-form {
  max-width: 420px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
  padding: 10px 0;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.login-panel {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.replied {
  opacity: 0.82;
}

@media (max-width: 840px) {
  .hero-intro {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .project-card-head,
  .list-row,
  .timeline-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
