/* Projekteigene Ergänzungen zum Design-Kit (app.css) – nur Tokens aus app.css verwenden */

.tab-count { font-size: 12px; opacity: 0.75; }
.table tr.archived td { opacity: 0.6; }
.pre { white-space: pre-wrap; margin: 0; }
.plain { list-style: none; padding: 0; margin: 6px 0 0; }
.plain li { padding: 2px 0; }
.stat .small-value { font-size: 20px; word-break: break-all; }
.grid-3 + .alert { margin-top: 20px; }

/* Upload (Pakete, Releases) */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; }
.dropzone.drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; cursor: pointer; text-align: center; }
.dropzone-label input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dropzone-label .ico-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.upload-progress { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); transition: width 0.2s; }

.model-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-input); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }

/* Installationscode */
.code-box { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--border-strong); flex-wrap: wrap; }
.code-box .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 38px; font-weight: 700; letter-spacing: 0.08em; color: var(--heading); }

/* Deployment-Detail */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.profile { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.profile .dl { margin-top: 10px; grid-template-columns: minmax(70px, max-content) minmax(0, 1fr); gap: 6px 14px; }
.report-frame { width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.modal.wide:has(.report-frame) { max-width: 1180px; }

/* Downloads */
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.download-card .sha { word-break: break-all; margin: 0; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Verwaltung */
.roles-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
.perm-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.perm-list .check { align-items: flex-start; }
.perm-list .check input { margin-top: 3px; }
.table.audit td { vertical-align: top; }
.table.audit .change { word-break: break-word; }
.table.audit del { color: var(--danger-ink); text-decoration: line-through; opacity: 0.8; }

@media (max-width: 860px) {
    .roles-grid { grid-template-columns: minmax(0, 1fr); }
    .code-box .code { font-size: 28px; }
}
