/* ═══ Wiederverwendbare Komponenten ═══════════════════════════════════════ */
.glass { background: color-mix(in srgb, var(--surface-1) calc(100% - var(--glass) * 22%), transparent); backdrop-filter: blur(calc(var(--glass) * 22px)) saturate(1.2); -webkit-backdrop-filter: blur(calc(var(--glass) * 22px)) saturate(1.2); }
.no-glass { --glass: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 38px; padding: 0 1rem;
  border-radius: var(--radius-sm); font-weight: 550; font-size: .875rem; white-space: nowrap; user-select: none;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border);
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast), opacity var(--t-fast), box-shadow var(--t);
}
.btn:hover { background: var(--surface-4); border-color: var(--border-strong); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.solid-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { min-height: 30px; padding: 0 .7rem; font-size: .8125rem; }
.btn.lg { min-height: 46px; padding: 0 1.4rem; font-size: .95rem; }
.btn.block { width: 100%; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); color: var(--text-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.active { background: var(--accent-soft); color: var(--accent-strong); }
.icon-btn.danger:hover { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.icon { flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* Formulare */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field > label, .label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: .6rem .85rem; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface-1); }
.select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--surface-2); color: var(--text); }
.row { display: flex; align-items: center; gap: .75rem; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.stack { display: grid; gap: .75rem; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 1.1rem 0; border: 0; }
.error-text { color: var(--danger); font-size: .85rem; min-height: 1.2em; }

/* Schalter */
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-4); border: 1px solid var(--border-strong); transition: background var(--t); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--t) var(--ease); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .5; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.setting-row + .setting-row { border-top: 1px solid var(--border); }
.setting-row .t { font-weight: 550; }
.setting-row .d { font-size: .8125rem; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: var(--surface-4); width: 100%; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; }
input[type="color"] { -webkit-appearance: none; appearance: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 11px; }

/* Avatar */
.avatar { position: relative; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; background: var(--surface-4); display: grid; place-items: center; font-weight: 650; font-size: calc(var(--s, 40px) * .38); color: #fff; user-select: none; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar.square { border-radius: calc(var(--s, 40px) * .3); }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: calc(var(--s, 40px) * .32); height: calc(var(--s, 40px) * .32); min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--muted); border: 3px solid var(--dot-bg, var(--surface-1)); }
.dot.online { background: var(--success) !important; }
.dot.idle { background: var(--warning) !important; }
.dot.dnd { background: var(--danger) !important; }
.dot.offline { background: var(--muted) !important; }

/* Badges / Chips */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 650; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-strong); }
.badge.owner { background: color-mix(in srgb, #ffb454 18%, transparent); color: #ffb454; }
.badge.admin { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.badge.mod { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge.gray { background: var(--surface-4); color: var(--text-2); }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.role-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 99px; font-size: .75rem; background: var(--surface-3); border: 1px solid var(--border); }
.role-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }

/* Karten, Panels */
.card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.card + .card { margin-top: .75rem; }
.card-title { font-size: .95rem; font-weight: 650; margin-bottom: .6rem; }
.empty { display: grid; place-items: center; text-align: center; gap: .6rem; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; opacity: .6; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-4); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.center { margin: 2rem auto; }

/* Modal */
#overlay-root { position: relative; z-index: 100; }
.scrim { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1rem; animation: fade-in var(--t) ease; z-index: 100; }
.modal { width: min(480px, 100%); max-height: min(88dvh, 860px); display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: pop-in var(--t) var(--ease); overflow: hidden; }
.modal.wide { width: min(640px, 100%); }
.modal-head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .6rem; }
.modal-head h2 { font-size: 1.15rem; flex: 1; }
.modal-body { padding: .5rem 1.25rem 1.1rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); }

/* Vollbild-Seiten (Einstellungen) */
.fullpage { position: fixed; inset: 0; z-index: 90; display: flex; background: var(--bg); animation: fade-in var(--t) ease; }
.fullpage-nav { width: clamp(220px, 28vw, 300px); padding: 2.5rem 1rem 1rem; background: var(--surface-1); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; flex: none; }
.fullpage-nav .heading { font-size: .72rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: .9rem .75rem .35rem; }
.fullpage-body { flex: 1; overflow-y: auto; padding: 2.5rem 1.5rem 4rem; }
.fullpage-inner { max-width: 680px; margin: 0 auto; animation: slide-up var(--t) var(--ease); }
.fullpage-inner > h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.fullpage-close { position: fixed; top: calc(1rem + var(--safe-top)); right: 1.25rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.fullpage-close:hover { color: var(--text); background: var(--surface-3); }
.nav-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; width: 100%; text-align: left; transition: background var(--t-fast), color var(--t-fast); }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); }
.nav-item.danger { color: var(--danger); }
.nav-item .icon { width: 18px; height: 18px; }

/* Menüs & Popover */
.menu { position: fixed; z-index: 200; min-width: 200px; max-width: 280px; padding: .35rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); animation: pop-in 140ms var(--ease); }
.menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .65rem; border-radius: calc(var(--radius) * .55); text-align: left; font-size: .875rem; color: var(--text); }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item .icon { width: 16px; height: 16px; color: var(--text-2); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon { color: var(--danger); }
.menu-item[disabled] { opacity: .45; pointer-events: none; }
.menu-sep { height: 1px; background: var(--border); margin: .3rem .2rem; }
.menu-label { padding: .35rem .65rem .2rem; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-slider { padding: .5rem .65rem .6rem; }
.popover { position: fixed; z-index: 200; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); animation: pop-in 140ms var(--ease); }

/* Toasts */
#toast-root { position: fixed; z-index: 400; right: 1rem; bottom: calc(1rem + var(--safe-bottom)); display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; background: var(--surface-3); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); animation: slide-up var(--t) var(--ease); font-size: .875rem; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }
.toast .t { font-weight: 600; }
.toast .m { color: var(--text-2); }
.toast .btn { margin-top: .4rem; }
.toast.leaving { opacity: 0; transform: translateX(20px); transition: all var(--t); }

/* Tooltip (leichtgewichtig über data-tip) */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:hover::after { content: attr(data-tip); position: absolute; z-index: 300; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: .3rem .55rem; border-radius: 8px; background: #0b0c10; color: #eceef5; border: 1px solid rgba(255, 255, 255, .12); font-size: .75rem; font-weight: 500; white-space: nowrap; pointer-events: none; animation: fade-in 120ms ease; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
  [data-tip].tip-right:hover::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
  [data-tip].tip-bottom:hover::after, [data-tip][data-tip-pos=bottom]:hover::after, .topbar [data-tip]:hover::after, .sidebar-head [data-tip]:hover::after { bottom: auto; top: calc(100% + 8px); }
  .topbar .actions > [data-tip]:last-child:hover::after { left: auto; right: 0; transform: none; }
}

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
table.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th { text-align: left; padding: .65rem .9rem; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); }

/* Fortschritt */
.progress { height: 8px; border-radius: 8px; background: var(--surface-4); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #4cc9f0)); border-radius: inherit; transition: width .5s var(--ease); }
.progress.warn > i { background: linear-gradient(90deg, var(--warning), #ff7a45); }
.progress.crit > i { background: linear-gradient(90deg, var(--danger), #ff3d5a); }

/* Tabs */
.tabs { display: flex; gap: .25rem; padding: .25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: calc(var(--radius) * .8); overflow-x: auto; }
.tab { padding: .4rem .85rem; border-radius: calc(var(--radius) * .6); font-size: .85rem; font-weight: 550; color: var(--text-2); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-4); color: var(--text); }

/* Segmentierte Auswahl für Themes etc. */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: .6rem; }
.swatch { position: relative; padding: .55rem; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface-2); text-align: left; transition: border-color var(--t-fast), transform var(--t-fast); }
.swatch:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.swatch.active { border-color: var(--accent); }
.swatch .prev { height: 52px; border-radius: calc(var(--radius) * .6); margin-bottom: .45rem; border: 1px solid var(--border); background: var(--p-bg); position: relative; overflow: hidden; }
.swatch .prev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 28%; background: var(--p-s); }
.swatch .prev::after { content: ""; position: absolute; left: 36%; top: 12px; width: 44%; height: 8px; border-radius: 4px; background: var(--p-t); opacity: .7; box-shadow: 0 14px 0 -1px var(--p-t); }
.swatch span { font-size: .8rem; font-weight: 550; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; background: var(--c); outline: 1px solid var(--border-strong); transition: transform var(--t-fast); }
.color-dot:hover { transform: scale(1.12); }
.color-dot.active { border-color: var(--surface-1); outline: 2px solid var(--c); }

/* Verbindungsstatus-Banner */
.conn-banner { position: fixed; top: calc(.6rem + var(--safe-top)); left: 50%; transform: translateX(-50%); z-index: 250; display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: .82rem; animation: slide-up var(--t) var(--ease); }
.conn-banner .spinner { width: 14px; height: 14px; border-width: 2px; }
.conn-banner.warn { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }

/* Auth-Seiten */
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 1.5rem; overflow-y: auto; }
.auth-card { width: min(430px, 100%); padding: 2.2rem 2rem 1.8rem; border-radius: calc(var(--radius) * 1.7); background: color-mix(in srgb, var(--surface-1) 86%, transparent); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: slide-up 380ms var(--ease); }
.brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
.brand svg { filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent) 55%, transparent)); }
.brand .word { font-size: 1.7rem; font-weight: 700; letter-spacing: -.04em; }
.brand .word i { font-style: normal; color: var(--accent-strong); }
.auth-card h1 { font-size: 1.35rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.4rem; }
.auth-foot { margin-top: 1.2rem; text-align: center; color: var(--muted); font-size: .875rem; }
.notice { display: flex; gap: .6rem; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--accent-softer); border: 1px solid var(--accent-soft); font-size: .84rem; color: var(--text-2); margin-bottom: 1.1rem; }
.notice.warn { background: color-mix(in srgb, var(--warning) 9%, transparent); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.notice.crit { background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.notice .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-strong); }
.notice.warn .icon { color: var(--warning); }
.notice.crit .icon { color: var(--danger); }

/* 404 */
.notfound { min-height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound .big { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(135deg, var(--accent-strong), #5b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Drag & Drop – Ablage-Markierungen */
.dragging { opacity: .45; }
.drop-before, .drop-after, .drop-into { position: relative; }
.drop-before::before, .drop-after::after { content: ''; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px; background: var(--accent); z-index: 5; pointer-events: none; }
.drop-before::before { top: -2px; }
.drop-after::after { bottom: -2px; }
.drop-into { outline: 2px dashed var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
[draggable="true"] { -webkit-user-drag: element; }

/* ── Rechtstexte ── */
.legal-links { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--text); }
.legal-public { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); }
.legal-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.legal-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; margin-right: auto; }
.legal-top nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.legal-top nav a { padding: .35rem .7rem; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .9rem; }
.legal-top nav a.active, .legal-top nav a:hover { background: var(--surface-3); color: var(--text); }
.legal-main { max-width: 760px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; }
.legal-doc h2 { margin: 1.6rem 0 .5rem; font-size: 1.25rem; }
.legal-doc h3 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
.legal-doc p { margin: .5rem 0; line-height: 1.65; overflow-wrap: anywhere; }
.legal-doc ul { margin: .4rem 0 .6rem 1.2rem; line-height: 1.6; }
.legal-edit { font-family: var(--font-mono, ui-monospace, monospace); font-size: .85rem; width: 100%; }

/* ── Schnellsuche ── */
.qs { display: grid; gap: .6rem; }
.qs-input { font-size: 1.05rem; padding: .75rem .9rem; }
.qs-list { display: grid; gap: .1rem; max-height: min(55vh, 460px); overflow-y: auto; }
.qs-item { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 8px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.qs-item.sel { background: var(--surface-4); }
.qs-icon { display: inline-flex; width: 26px; justify-content: center; color: var(--text-2); flex: 0 0 auto; }
.qs-ico { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; display: inline-grid; place-items: center; }
.qs-ico.txt { background: var(--surface-4); font-size: .62rem; font-weight: 700; }
.qs-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-sub { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.qs-empty { padding: 1rem; text-align: center; }
.qs-hint kbd { display: inline-block; padding: 0 .3rem; border: 1px solid var(--border-strong); border-radius: 4px; font-size: .72rem; margin: 0 .1rem; }
.qs-open { display: flex; align-items: center; gap: .5rem; width: calc(100% - 1rem); margin: .5rem .5rem .2rem; padding: .45rem .6rem; border-radius: 8px; border: 0; background: var(--surface-3); color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.qs-open:hover { color: var(--text); }
.qs-open kbd { margin-left: auto; font-size: .7rem; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 .3rem; }

/* ── Eigener Status ── */
.status-form { display: grid; gap: .8rem; }
.status-row { display: flex; gap: .5rem; align-items: center; }
.status-row .input { flex: 1; min-width: 0; }
.status-emoji-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: 0 0 auto; }
.status-emoji-btn .e { font-size: 1.4rem; line-height: 1; }
