/* --------------------------------------------------
   Import modal
-------------------------------------------------- */

.modal--import .modal__dialog {
    width: min(1100px, calc(100% - 24px));
  }
  
  .modal--import .modal__body {
    max-height: 84vh;
  }

.import-modal-wrap {
    display: grid;
    gap: 14px;
  }
  
  .import-tabbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .import-tabbtn {
    border: 1px solid #cfcfcf;
    background: #f6f6f6;
    color: #222;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
  }
  
  .import-tabbtn.is-active {
    background: var(--ui-accent);
    color: #fff;
    border-color: var(--ui-accent);
  }
  
  .import-panel {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
  }
  
  .import-grid {
    display: grid;
    gap: 12px;
  }
  
  .import-check-wrap {
    display: block;
  }
  
  .import-check-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .import-check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
  }
  
  #direct-rdf-input {
    min-height: 320px;
    resize: vertical;
    font-family: Consolas, monospace;
    font-size: 13px;
  }
  
  .import-note {
    color: #666;
    font-size: 13px;
  }
  
  .import-actions-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .import-status-inline {
    font-size: 13px;
    font-weight: 600;
    min-height: 20px;
  }
  
  .import-status-inline.success {
    color: #0a7a2f;
  }
  
  .import-status-inline.error {
    color: #a30d0d;
  }
  
  .import-status-inline.loading {
    color: #555;
  }
  
  .import-run-btn {
    border: 1px solid var(--ui-accent);
    background: var(--ui-accent);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
  }
  
  .import-run-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
  }
  
  .import-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: import-spin 0.8s linear infinite;
    vertical-align: text-bottom;
    margin-right: 8px;
  }
  
  @keyframes import-spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .import-success-flash {
    animation: import-success-flash 0.7s ease;
  }
  
  @keyframes import-success-flash {
    0% {
      box-shadow: 0 0 0 rgba(10, 122, 47, 0);
    }
  
    30% {
      box-shadow: 0 0 0 4px rgba(10, 122, 47, 0.18);
    }
  
    100% {
      box-shadow: 0 0 0 rgba(10, 122, 47, 0);
    }
  }
  
  /* Imported graph preview */
  
  .import-graph-details {
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #fafafa;
  }
  
  .import-graph-details summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .import-graph-details summary::-webkit-details-marker {
    display: none;
  }
  
  .import-graph-meta {
    font-size: 12px;
    color: #666;
    font-weight: 500;
  }
  
  .import-graph-body {
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
  }