/* API-Schlüssel (ak-) und Excel-Import der Bibliothek (li-). Farben und Maße aus den Variablen in app.css. */

/* ---------- API-Schlüssel ---------- */
.ak-modal { width: min(1080px, 100%); }
.ak-modal .modal-head code { font-family: var(--mono); font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.ak-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ak-empty { padding: 18px 0; }
.ak-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ak-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ak-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ak-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ak-table tr:last-child td { border-bottom: 0; }
.ak-table td small { display: block; margin-top: 2px; font-size: 11.5px; }
.ak-table tr.ak-inactive td { color: var(--faint); }
.ak-table tr.ak-inactive strong { text-decoration: line-through; }
.ak-prefix { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.ak-projects { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; background: var(--panel); }
.ak-form h4, .ak-token h4 { margin: 0; font-size: 15px; }
.ak-form small { font-weight: 400; }
.ak-fieldset { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ak-fieldset legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.ak-projects-select { border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 13px; background: var(--panel); }
.ak-token { border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.ak-token p { margin: 0; font-size: 13px; }
.ak-copy { display: flex; gap: 8px; align-items: flex-start; }
.ak-copy code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; user-select: all; }
.ak-secret { font-weight: 600; color: var(--ink); }

/* ---------- Excel-Import ---------- */
.li-modal { width: min(980px, 100%); }
.li-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.li-template { margin-left: auto; }
.li-preview { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.li-file, .li-columns { margin: 0; font-size: 13px; }
.li-columns .tag { margin: 2px 0; }
.li-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.li-tab { border: 0; background: none; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.li-tab b { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 11.5px; text-align: center; }
.li-tab.on { color: var(--ink); border-bottom-color: var(--brand); }
.li-tab.li-new.on b { background: #ecfdf5; color: #047857; }
.li-tab.li-upd.on b { background: #fffbeb; color: #b45309; }
.li-tab.li-err.on b { background: #fff1f2; color: #be123c; }
.li-table-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.li-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.li-table th { position: sticky; top: 0; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 7px 10px; border-bottom: 1px solid var(--line); }
.li-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.li-line { color: var(--faint); font-variant-numeric: tabular-nums; width: 48px; }
.li-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.li-field { font-weight: 600; color: var(--ink-2); }
.li-changes del { color: var(--bad); text-decoration: line-through; }
.li-changes ins { color: #047857; text-decoration: none; font-weight: 500; }
.li-error { color: #be123c; }

@media (max-width: 640px) {
  .ak-copy { flex-direction: column; align-items: stretch; }
  .li-template { margin-left: 0; }
}
