/* ── PORTAL SHARED ──────────────────────────────── */
.portal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.portal-brand {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  transition: color 0.2s;
}
.portal-brand:hover { color: var(--fg); }

.portal-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg);
  font-style: italic;
}

.portal-main {
  min-height: calc(100vh - 65px);
  padding: 3rem 2.5rem;
  background: var(--bg);
}

/* ── FORM ───────────────────────────────────────── */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.form-error {
  background: rgba(200, 30, 30, 0.08);
  border: 1px solid rgba(200, 30, 30, 0.2);
  color: #b91c1c;
  padding: 0.875rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.intake-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field-row { display: flex; flex-direction: column; }
.field-row--2 { flex-direction: row; gap: 1.25rem; }
.field-row--2 .field { flex: 1; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--fg);
  appearance: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--fg-inv);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent); color: var(--fg); }

.btn-secondary {
  display: inline-block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--fg); }

/* ── PIPELINE ────────────────────────────────────── */
.pipeline-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.pipeline-col { min-width: 0; }

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 4px 4px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.col-header--pending   { background: rgba(122,110,99,0.12); color: var(--muted); }
.col-header--progress { background: rgba(201,136,10,0.12); color: var(--accent); }
.col-header--completed{ background: rgba(45,106,79,0.1);   color: #2D6A4F; }

.col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(24,20,15,0.06);
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 4px 4px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border-top: none;
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: 0 2px 8px rgba(24,20,15,0.08); }

.project-client {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.project-lang {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.project-deadline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}

.status-select-wrap {
  position: relative;
}

.status-select {
  font-size: 0.75rem;
  font-family: var(--sans);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  background: transparent;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A6E63'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
}
.status-select:focus { outline: none; border-color: var(--accent); }

.col-empty {
  border: 1px dashed var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .pipeline-board { grid-template-columns: 1fr; }
  .field-row--2 { flex-direction: column; }
  .form-actions { flex-direction: column; align-items: flex-start; }
}