/* maintain area styles: submit a project (S7), ask editor (S8), console (S9).
   See public/css/base.css for tokens and shared classes. */

/* ---- Navigation --------------------------------------------------------- */

.maintain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.maintain-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-bottom: 16px;
}
.maintain-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* ---- Status ------------------------------------------------------------- */

/* NF-1: the word carries the status; color repeats it. */
.ask-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.ask-status--live {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.ask-status--paused,
.ask-status--changes_requested {
  background: var(--mustard);
  border-color: var(--mustard);
}
.ask-status--submitted {
  background: var(--grey-fill);
  border-color: var(--grey-fill);
}
.ask-status--closed,
.ask-status--declined,
.ask-status--delisted {
  background: var(--ink);
  color: var(--paper);
}

.pending-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 4px solid var(--mustard);
  background: #fbf1d6;
  font-size: 15px;
}

.pre-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- Project form ------------------------------------------------------- */

.cover-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cover-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--card);
  cursor: pointer;
}
.cover-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.cover-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}
.cover-swatch {
  width: 28px;
  height: 36px;
  border-radius: 4px;
}
.cover-swatch--ember {
  background: var(--ember);
}
.cover-swatch--cobalt {
  background: var(--cobalt);
}
.cover-swatch--pine {
  background: var(--pine);
}
.cover-swatch--mustard {
  background: var(--mustard);
}

/* ---- Layout helpers ----------------------------------------------------- */

.maintain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .maintain-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.tasks-forms {
  margin-top: 40px;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.member-list li:last-child {
  border-bottom: 0;
}

/* ---- Ask editor --------------------------------------------------------- */

.editor-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.editor-fieldset[disabled] {
  opacity: 0.7;
}
.editor-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.brief-checklist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 20px;
}
.brief-checklist ul {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brief-checklist .banner {
  margin: 12px 0 0;
}
.brief-check__state {
  display: inline-block;
  min-width: 76px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brief-check--ok .brief-check__state {
  color: var(--pine);
}
.brief-check--missing .brief-check__state {
  color: var(--ember-text);
}

/* ---- Console ------------------------------------------------------------ */

.console-actions {
  margin-bottom: 24px;
}
.ask-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
}
.count-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.count-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.review-details summary {
  list-style: none;
}
.review-details summary::-webkit-details-marker {
  display: none;
}
.review-details[open] {
  flex-basis: 100%;
}
.review-details[open] > .form {
  margin-top: 12px;
  gap: 12px;
}

/* ---- Audit log ---------------------------------------------------------- */

.audit-when {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
}
.audit-data {
  font-size: 14px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
