:root {
  --bg: #eef2e8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --line: rgba(21, 37, 27, 0.12);
  --text: #122017;
  --muted: #5c6d61;
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --warning: #9a3412;
  --shadow: 0 20px 60px rgba(18, 32, 23, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(199, 210, 164, 0.5), transparent 28%),
    linear-gradient(135deg, #eef2e8 0%, #f6f8f1 45%, #e8efe2 100%);
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.sidebar h1 {
  margin: 8px 0 18px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(238, 246, 239, 0.7);
}

.status-card {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.status-card strong {
  margin: 0 0 10px;
}

.steps {
  margin: 0;
  padding-left: 18px;
}

.steps li {
  margin: 0 0 10px;
}

.status-card {
  display: grid;
  gap: 6px;
}

.status-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.app-shell {
  padding: 28px;
  background: transparent;
}

.content-header {
  margin-bottom: 14px;
}

.content-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.9rem;
}

.preview-tabs,
.actions,
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.tab-button,
.preview-tab,
button,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 11px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.side-tab {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.tab-button:hover,
.preview-tab:hover,
button:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 32, 23, 0.08);
}

.is-active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  background: transparent;
}

.card {
  background: rgba(244, 248, 245, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--text);
}

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

.card-head h3,
.card-head p {
  margin: 0;
  color: var(--text);
}

.card-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 24px;
  border: 1.5px dashed rgba(15, 118, 110, 0.4);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.6)),
    var(--panel-strong);
  text-align: center;
  padding: 20px;
  cursor: pointer;
  margin-bottom: 18px;
  color: var(--text);
}

.dropzone input {
  display: none;
}

.dropzone strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.file-list,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
}

.file-list {
  min-height: 130px;
  padding: 10px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.06);
  margin-bottom: 10px;
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.primary:hover {
  background: var(--accent-strong);
}

.ghost {
  background: transparent;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  margin-top: 12px;
}

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

.summary-grid article {
  padding: 12px;
  background: rgba(18, 32, 23, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(18, 32, 23, 0.06);
}

.summary-grid span,
.inline-note,
.pill {
  color: var(--text);
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  color: var(--text);
}

.preview-card {
  margin-top: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--text);
  text-align: center;
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

thead th {
  position: sticky;
  top: 0;
  background: #f4f7f2;
  z-index: 1;
}

tbody tr:hover {
  background: rgba(15, 118, 110, 0.05);
}

.toolbar {
  align-items: end;
}

.toolbar label,
input[data-action="edit"] {
  display: grid;
  gap: 8px;
}

select,
input[type="search"],
.form-grid input,
input[data-action="edit"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.form-grid button {
  align-self: end;
}

.checkbox-cell {
  display: flex;
  justify-content: center;
}

.pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  color: var(--text);
}

.prose-card p {
  max-width: 70ch;
}

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

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

}
