/* ── PORTAL STYLES (ClipFlow) ── */
/* Extends theme.css design tokens */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--border);
}

.page-header-inner { max-width: 720px; }

.page-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 12px;
  margin-bottom: 16px;
}

.page-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

/* ── EYEBROW (reused) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ── PORTAL MAIN ── */
.portal-main {
  padding: 48px;
  max-width: 960px;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  max-width: 560px;
}

/* ── ALERTS ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 24px;
}

.alert svg { flex-shrink: 0; margin-top: 1px; }

.alert--success {
  background: #f0faf4;
  color: #1a6b38;
  border: 1px solid #b7e9c9;
}

.alert--error {
  background: #fef2f0;
  color: #c0392b;
  border: 1px solid #f5c6bc;
}

/* ── FORM ── */
.intake-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.required { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; font-size: 12px; }

.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.15s;
  outline: none;
}

.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--muted); opacity: 0.7; }

.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ── BUTTON ── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.btn-primary:hover { background: #e04c2e; }

.form-back {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.form-back a { color: var(--muted); text-decoration: none; }
.form-back a:hover { color: var(--fg); text-decoration: underline; }

/* ── STATUS BAR ── */
.status-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.status-chip--pending  { border-color: #fbbf24; background: #fffbeb; }
.status-chip--in-progress { border-color: #60a5fa; background: #eff6ff; }
.status-chip--completed { border-color: #34d399; background: #f0faf4; }

.status-label { font-size: 13px; font-weight: 500; color: var(--muted); }

.status-count {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.status-chip--pending  .status-count { color: #d97706; }
.status-chip--in-progress .status-count { color: #2563eb; }
.status-chip--completed .status-count { color: #059669; }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.requests-table th {
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.requests-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.requests-table tr:last-child td { border-bottom: none; }

.requests-table tr:hover td { background: var(--surface); }

.td-notes {
  max-width: 180px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Row accent by status */
.row-status-pending td:first-child::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  margin-right: 8px;
}

.row-status-in-progress td:first-child::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  margin-right: 8px;
}

.row-status-completed td:first-child::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 8px;
}

/* ── STATUS SELECT ── */
.status-form { display: flex; }

.status-select {
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
}

.status-select--pending   { color: #d97706; border-color: #fbbf24; }
.status-select--in-progress { color: #2563eb; border-color: #60a5fa; }
.status-select--completed  { color: #059669; border-color: #34d399; }

/* ── EMPTY STATE ── */
.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.empty-state a { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .page-header { padding: 40px 24px 32px; }
  .portal-main { padding: 32px 24px; }
  .form-card { padding: 28px 24px; }
  .status-bar { flex-wrap: wrap; }
}