/* New deadline — one-screen phone-first create (public/new.html).
 * All colors from ovg.css :root tokens. Zero inline styles. Prefix: nw-. */

.nw-page {
  max-width: 620px;
}

.topbar-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: underline;
}

/* ---------- type chips ---------- */

.nw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nw-chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border-navy-strong);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 44px;
  cursor: pointer;
}

.nw-chip:hover {
  background: #f4f7fc;
}

.nw-chip[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.nw-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- roster multi-select ---------- */

.nw-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nw-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nw-roster {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-button);
  padding: 6px 12px;
}

.nw-roster-empty {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 0;
  margin: 0;
}

.nw-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 1px solid rgba(28, 53, 94, 0.06);
}

.nw-person:last-child {
  border-bottom: 0;
}

.nw-person input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.nw-person-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  word-break: break-word;
}

.nw-person-role {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- follow-up flag toggle ---------- */

.nw-flag-field {
  margin-top: 4px;
}

.nw-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
}

.nw-switch input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

/* ---------- duplicate warning ---------- */

.nw-dup {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-button);
  background: var(--warning-bg);
  border: 1px solid rgba(146, 64, 14, 0.25);
}

.nw-dup-text {
  color: var(--warning-text);
  font-weight: 600;
  margin: 0 0 8px;
}
