#modal.a3-project {
  width: min(1400px, 96vw);
  max-width: 96vw;
}
.a3-project-content {
  display: grid;
  gap: 18px;
}
.a3-project-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.a3-project-tabs button {
  white-space: nowrap;
}
.a3-project-tabs [aria-selected='true'] {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.a3-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.a3-sheet > div {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.a3-sheet-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.a3-sheet-section > h3 {
  margin: 0;
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
  font-size: 13px;
}
.a3-sheet-section > div {
  padding: 14px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.a3-sheet table,
.a3-review-table,
.a3-edit-table,
.a3-action-table {
  width: 100%;
  border-collapse: collapse;
}
.a3-sheet td,
.a3-sheet th,
.a3-review-table td,
.a3-review-table th,
.a3-edit-table td,
.a3-edit-table th,
.a3-action-table td,
.a3-action-table th {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}
.a3-action-table td:nth-child(2) {
  min-width: 220px;
}
.a3-action-table {
  min-width: 900px;
}
.a3-action-table td:nth-child(3) {
  min-width: 120px;
}
.a3-action-table td:nth-child(4),
.a3-action-table td:nth-child(5),
.a3-action-table button {
  white-space: nowrap;
  word-break: normal;
}
.a3-action-preview {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.a3-action-preview li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.a3-action-preview small {
  display: block;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.a3-action-table small {
  display: block;
  color: var(--muted-foreground);
}
.a3-action-done td:nth-child(2) {
  color: var(--muted-foreground);
}
.a3-charter-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.a3-charter-form details {
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 8px;
}
.a3-charter-form summary {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  cursor: pointer;
}
.a3-edit-table input {
  min-width: 110px;
}
.a3-import-upload {
  display: grid;
  gap: 16px;
}
.a3-import-upload label {
  display: grid;
  gap: 8px;
}
.a3-import-upload img,
.a3-import-review img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid var(--border);
}
.a3-import-upload [hidden] {
  display: none;
}
.a3-import-review {
  display: grid;
  gap: 16px;
}
.a3-review-table td:nth-child(3) {
  min-width: 300px;
}
.a3-review-table input:not([type='checkbox']),
.a3-review-table textarea,
.a3-review-table select {
  width: 100%;
  min-width: 110px;
  font-size: 12px;
}
.a3-review-table td:nth-child(2) input {
  min-width: 48px;
  width: 60px;
}
.a3-review-table td:last-child {
  min-width: 180px;
}
.a3-review-table td:last-child small {
  display: block;
  color: var(--amber-soft-fg);
  margin-bottom: 8px;
}
.a3-column-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.a3-column-controls label {
  display: grid;
  gap: 5px;
  width: 130px;
}
.a3-import-review details {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
}
.a3-project .actions {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .a3-sheet {
    grid-template-columns: 1fr;
  }
  .a3-project-tabs {
    max-width: 100%;
  }
}
