/* jellyqda drift & play · css/03-bausteine.css
   Wiederkehrende Bausteine: Panels, Knöpfe, Chips, Tabellen, Toast.
   Die CSS-Dateien werden in Nummern-Reihenfolge geladen: spätere Regeln gewinnen. */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.stack > *, .labsplit > *, .grid2 > *, .grid3 > *, .layout-skill > * { min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); font-size: 13px; text-decoration: none; color: var(--ink2); cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.mono { font-family: var(--f-mono); font-size: 12.5px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; letter-spacing: .02em; }
.pill.exp { background: var(--good-soft); color: var(--good); }
.pill.int { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.pill.js { background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.lock { background: var(--surface2); color: var(--muted); }
input[type=search], input[type=text], input[type=number], textarea, select { background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 11px; width: 100%; }
textarea { font-family: var(--f-mono); font-size: 13.5px; line-height: 1.5; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
mark, .hl { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
