/* Shared modal chrome for settings, forms, project teams and confirmations. */
.modal {
  border-color: var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 32px 100px #24203e30, 0 6px 24px #24203e12;
}

.modal::backdrop {
  background: #24203e55;
  backdrop-filter: blur(7px);
}

.modal-header>div {
  min-width: 0;
}

.modal-header h2,.modal-header p {
  overflow-wrap: anywhere;
}

.modal-header .eyebrow {
  color: var(--accent-text);
}

.modal-header h2 {
  color: var(--ink);
}

.modal-header p {
  color: var(--muted);
}

.modal-footer {
  background: var(--surface-subtle);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.confirmation-message {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.confirmation-message strong {
  color: var(--ink);
}

.planning-scopes {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}

.modal .planning-scope {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.modal .planning-scope:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.modal .planning-scope:has(input:disabled) {
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: default;
}

.modal .planning-scope input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.planning-scope>span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.planning-scope strong {
  font-size: 14px;
}

.planning-scope span>span,.planning-scope small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.planning-scope b {
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
}

.planning-scope-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.button.danger {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.button.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.gantt-preview {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 72px #24203e24, 0 4px 16px #24203e0d;
}

.gantt-preview-header {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft)) var(--surface);
}

.gantt-preview-header .eyebrow {
  color: var(--accent-text);
}

.gantt-preview-header h3 {
  color: var(--ink);
}

.gantt-preview-header p {
  color: var(--muted);
}

.gantt-preview-footer {
  background: var(--surface-subtle);
  border-color: var(--line);
}

@media(max-width:760px) {
  .modal,.gantt-preview {
    border-radius: 12px;
  }

  .confirmation-modal .modal-footer {
    flex-wrap: nowrap;
  }

  .confirmation-modal .modal-footer .spacer {
    display: block;
  }

  .confirmation-modal .modal-footer .button {
    white-space: normal;
  }

  .gantt-preview-header h3 {
    font-size: 18px;
  }
}

.modal-header {
  background: radial-gradient(ellipse at 100% 0, var(--accent-soft), transparent 72%), var(--surface);
}

.modal-header h2 {
  letter-spacing: -.7px;
}
