/* Nasjicad — AutoLISP (lisp-app.js): APPLOAD and alert */
.lisp-modal-back { position: fixed; inset: 0; z-index: 960; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.lisp-modal { width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--bg-palette); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); font: 12px var(--font-ui); }
.lisp-modal.lisp-appload { width: 560px; }
.lisp-modal-head { display: flex; align-items: center; height: 30px; padding: 0 12px; background: var(--bg-titlebar); color: var(--text-bright); font-weight: 600; border-bottom: 1px solid var(--border); }
.lisp-modal-body { padding: 12px 14px; line-height: 1.6; overflow: auto; white-space: pre-wrap; }
.lisp-appload .lisp-modal-body { white-space: normal; }
.lisp-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); }
.lisp-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #3a3a3a; color: var(--text); font: 12px var(--font-ui); cursor: pointer; white-space: nowrap; }
.lisp-btn:hover:not(:disabled) { background: var(--hover); color: var(--text-bright); }
.lisp-btn:disabled { opacity: .45; cursor: default; }
.lisp-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lisp-btn.primary:hover:not(:disabled) { background: var(--accent-bright); }
.lisp-h { font-weight: 600; color: var(--text-bright); margin: 10px 0 4px; }
.lisp-h:first-child { margin-top: 0; }
.lisp-hint { color: var(--text-dim); font-weight: 400; font-size: 11px; }
.lisp-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.lisp-list { min-height: 44px; max-height: 170px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-input); }
.lisp-list > .lisp-hint { display: block; padding: 8px; }
.lisp-item { display: grid; grid-template-columns: minmax(110px, auto) 1fr; column-gap: 10px; padding: 4px 8px; border-bottom: 1px solid var(--border-soft); }
.lisp-item b { color: var(--text-bright); font-weight: 600; }
.lisp-item span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lisp-item small { grid-column: 1 / -1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.lisp-pick { cursor: pointer; }
.lisp-pick:hover { background: var(--hover); }
.lisp-pick.on { background: var(--accent-soft); }
