/* ==========================================================================
   User-Panel – Design wie das Adminpanel (dunkel, blaue Akzente, Sidebar)
   Überschreibt die Tokens aus /assets/ls-design.css, damit auch die bestehenden
   Seiten (Charakter, Fahrzeuge, Finanzen, Inventar) automatisch passen.
   ========================================================================== */
:root {
    --bg: #0b0d12; --surface: #12141c; --surface-2: #171a24; --surface-3: #1e2230;
    --ink: #ffffff; --ink-2: rgba(255,255,255,.72); --ink-3: rgba(255,255,255,.45);
    --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
    --red: #4169ff; --red-soft: rgba(248,113,113,.12);
    --blue: #4169ff; --blue-soft: rgba(65,105,255,.14);
    --online: #4ade80; --warn: #fbbf24; --warn-soft: rgba(251,191,36,.12);
    --font-display: 'DM Sans', system-ui, sans-serif; --font-body: 'DM Sans', system-ui, sans-serif;
    --r-sm: 9px; --r-md: 14px;
    /* Akzente wie User-Admin-Dashboard (admin-up-theme / admin-community) */
    --up-accent: #4169ff; --up-accent-2: #8ea6ff;
    --up-accent-hover: #3558e6;
    --up-side: #12141c;
    --up-content-max: 1200px;
    --up-ticket-max: 1760px;
    --up-topbar-pad: 16px;
}
html, body.up-body { background: var(--bg); }
body.up-body { font-family: var(--font-body); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; margin: 0; }
body.up-body h1, body.up-body h2, body.up-body h3 { font-family: var(--font-body); letter-spacing: -.01em; }
body.up-body a { text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.up-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.up-app:has(.dc-ticket) { height: 100vh; max-height: 100vh; overflow: hidden; }
@media (max-width: 700px) {
    .up-app:has(.dc-ticket) { height: 100dvh; max-height: 100dvh; }
}
.up-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--up-side); border-right: 1px solid var(--line); overflow: hidden; }
.up-brand {
  display: flex; align-items: center; gap: 11px;
  height: 60px; min-height: 60px; max-height: 60px;
  padding: 0 20px; box-sizing: border-box;
  border-bottom: 1px solid var(--line); color: #fff; flex-shrink: 0;
}
.up-brand img {
  display: block; width: 40px; height: 40px; border-radius: 0;
  object-fit: contain; background: transparent; flex-shrink: 0;
  border: none; box-shadow: none;
}
.up-brand b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.up-brand span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.up-nav { flex: 1; min-height: 0; padding: 6px 12px 12px; overflow-y: auto; }
.up-nav-label { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.up-nav-link { position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.up-nav-link i { width: 18px; text-align: center; font-size: 14px; color: var(--ink-3); transition: color .15s; }
.up-nav-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-nav-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.up-nav-link.is-active { background: var(--blue-soft); color: #fff; }
.up-nav-link.is-active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--up-accent); }
.up-nav-link.is-active i { color: var(--up-accent-2); }
.up-nav-link em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--ink-2); font-style: normal; font-size: 11px; font-weight: 700; }
.up-nav-link em.is-alert { background: rgba(248,113,113,.16); color: #fca5a5; }
.up-nav-link em.is-accent { background: var(--up-accent); color: #fff; }
.up-nav-link em.is-lock {
    min-width: 22px; height: 22px; padding: 0;
    background: rgba(251,191,36,.12); color: #fbbf24; font-size: 10px;
}
.up-nav-link.is-locked { color: var(--ink-3); }
.up-nav-link.is-locked i { color: var(--ink-3); opacity: .85; }
.up-nav-link.is-locked:hover { color: var(--ink-2); background: rgba(255,255,255,.03); }
.up-nav-link.is-locked.is-active { color: #fff; }
.up-nav-link.is-locked.is-active i { color: #fbbf24; }
.up-charsel { display: grid; gap: 2px; padding: 0 12px; flex-shrink: 0; }
.up-charsel a { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--ink-2); font-size: 13px; }
.up-charsel a i { font-size: 11px; color: var(--ink-3); }
.up-charsel a:hover { background: rgba(255,255,255,.04); color: #fff; }
.up-charsel a[aria-current="true"] { background: rgba(74,222,128,.08); color: #fff; }
.up-charsel a[aria-current="true"] i { color: var(--online); }
.up-me-wrap { position: relative; margin: 12px; margin-top: auto; flex-shrink: 0; }
.up-me { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; box-sizing: border-box; }
.up-me:hover, .up-me-wrap.is-open .up-me { background: #171a24; border-color: rgba(255,255,255,.12); }
.up-me:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(65,105,255,.35); }
.up-me img, .up-me-av { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.up-me-av.is-lg { width: 52px; height: 52px; font-size: 18px; }
.up-me-txt { flex: 1; min-width: 0; }
.up-me-txt b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-me-txt span { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-me-caret { flex-shrink: 0; font-size: 11px; color: var(--ink-3); transition: transform .22s ease, color .18s ease; }
.up-me-wrap.is-open .up-me-caret { transform: rotate(180deg); color: #fff; }
.up-me-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 80; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #171a24; box-shadow: 0 18px 40px rgba(0,0,0,.55); display: grid; gap: 2px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.98); transform-origin: bottom center; transition: opacity .18s ease, transform .2s cubic-bezier(.2,.8,.2,1), visibility .18s; }
.up-me-wrap.is-open .up-me-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.up-me-menu a, .up-me-menu button.is-logout { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-radius: 8px; background: transparent; color: var(--ink-2); font: 500 13.5px var(--font-body); text-decoration: none; cursor: pointer; text-align: left; transition: background .15s, color .15s; box-sizing: border-box; }
.up-me-menu a i, .up-me-menu button.is-logout i { width: 16px; text-align: center; color: var(--ink-3); transition: color .15s; }
.up-me-menu a:hover, .up-me-menu a[aria-current="page"] { background: rgba(255,255,255,.06); color: #fff; }
.up-me-menu a:hover i, .up-me-menu a[aria-current="page"] i { color: var(--up-accent-2); }
.up-me-menu a[aria-current="page"] { background: var(--blue-soft); }
.up-me-menu hr { height: 1px; margin: 4px 8px; border: none; background: rgba(255,255,255,.08); }
.up-me-menu form { margin: 0; }
.up-me-menu button.is-logout { color: rgba(248,113,113,.9); }
.up-me-menu button.is-logout i { color: inherit; }
.up-me-menu button.is-logout:hover { background: rgba(248,113,113,.1); color: #f87171; }

.up-mainwrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.up-topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    height: 60px; min-height: 60px; padding: 0 var(--up-topbar-pad);
    /* deckend in derselben Farbe wie die Sidebar – kein Durchscheinen des Hintergrunds */
    background: var(--up-side);
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}
.up-topbar-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-topbar-title i { color: var(--up-accent-2); margin-right: 6px; }
.up-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.up-page { flex: 1; width: 100%; max-width: min(var(--up-content-max), 100%); margin: 0 auto; padding: 24px clamp(16px, 3vw, 28px) 40px; display: grid; gap: 18px; align-content: start; box-sizing: border-box; }
.up-page-head h1 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; letter-spacing: -.02em; }
.up-page-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; max-width: 62ch; }
.up-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px var(--up-topbar-pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.up-footer nav { display: flex; gap: 18px; }
.up-footer a { color: var(--ink-2); }
.up-footer a:hover { color: #fff; }
.up-overlay { display: none; }

/* ── Bausteine ────────────────────────────────────────────────────────────── */
.up-card { padding: 20px 22px; border-radius: 14px; }
.up-card h2 { font: 700 16px/1.3 var(--font-body); margin: 0 0 14px; }
.up-card h2 i.up-h-ic { color: var(--up-accent-2); margin-right: 2px; font-size: 14px; }
.up-card h2 a { font-size: 13px; color: var(--up-accent-2); }
.up-stat { border-radius: 14px; padding: 16px 18px; }
.up-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--ink-3); }
.up-stat-value { font: 800 21px/1.25 var(--font-body); }
.up-stat-ic { float: right; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); font-size: 14px; }
.up-stat-ic.is-green { background: rgba(74,222,128,.12); color: var(--online); }
.up-stat-ic.is-amber { background: var(--warn-soft); color: var(--warn); }
.up-stat-ic.is-red { background: rgba(248,113,113,.12); color: #f87171; }
.up-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; }
.up-pill.bad { background: rgba(248,113,113,.12); color: #fca5a5; }
.up-plate { font-family: 'DM Sans', system-ui, sans-serif; letter-spacing: .06em; }

.up-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--ink-2); }
.up-badge.is-ok { background: rgba(74,222,128,.1); color: var(--online); }
.up-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.up-badge.is-muted i { color: var(--ink-3); }

.up-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.up-alert i { margin-top: 3px; }
.up-alert.is-ok { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); color: #86efac; }
.up-alert.is-error { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); color: #fca5a5; }
.up-alert.is-info { background: rgba(65,105,255,.08); border: 1px solid rgba(65,105,255,.25); color: #dbe3ff; }
.up-alert.is-warn { background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.25); color: #fde68a; }
.up-member-softgate { margin-bottom: 16px; }
.up-member-softgate-body { flex: 1; min-width: 0; }
.up-member-softgate-body > p { margin: 0; }
.up-member-softgate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Hard-Gate: eine zentrierte Komposition (Brand → Headline → CTA) */
.up-auth.is-hardgate {
    justify-content: center;
    padding: clamp(28px, 6vh, 56px) 20px;
}
.up-hardgate {
    width: min(440px, 100%);
    display: grid;
    gap: 22px;
    justify-items: start;
    animation: upHardgateIn .35s ease both;
}
.up-hardgate > .up-auth-logo {
    margin-bottom: 4px;
    font-size: 20px;
    letter-spacing: .05em;
}
.up-hardgate > .up-auth-logo img { width: 44px; height: 44px; }
.up-hardgate-hero { display: grid; gap: 10px; }
.up-hardgate-hero h1 {
    margin: 0;
    font-size: clamp(26px, 4.5vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
}
.up-hardgate-hero p {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
    max-width: 38ch;
}
.up-hardgate-user {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 0 4px;
}
.up-hardgate-user img,
.up-hardgate-user .up-me-av {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(65,105,255,.35);
}
.up-hardgate-user-meta { min-width: 0; display: grid; gap: 2px; }
.up-hardgate-user-meta b {
    font-size: 15px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-hardgate-user-meta span {
    font-size: 13px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-hardgate-actions {
    display: grid;
    gap: 10px;
    width: 100%;
}
.up-hardgate-actions .up-btn.is-primary {
    box-shadow: 0 10px 28px rgba(65,105,255,.28);
}
.up-hardgate-logout { margin: 2px 0 0; text-align: center; width: 100%; }
.up-hardgate-logout button {
    border: 0; background: none; padding: 8px;
    color: var(--ink-3); font: 500 13.5px var(--font-body);
    cursor: pointer; transition: color .15s;
}
.up-hardgate-logout button:hover { color: #fff; }
.up-hardgate-delete {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.up-hardgate-delete summary {
    cursor: pointer; color: var(--ink-3); font-size: 13px; list-style: none;
    transition: color .15s;
}
.up-hardgate-delete summary::-webkit-details-marker { display: none; }
.up-hardgate-delete summary:hover { color: #fca5a5; }
.up-hardgate-delete[open] summary { margin-bottom: 10px; color: #f87171; }
.up-hardgate-delete .up-form { margin-top: 8px; }
.up-hardgate-delete a { color: var(--up-accent-2); font-weight: 600; }
.up-hardgate-delete a:hover { text-decoration: underline; }
.up-hardgate > .up-auth-legal {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding-top: 2px;
}
@keyframes upHardgateIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .up-hardgate { animation: none; }
}
@media (max-width: 520px) {
    .up-hardgate { gap: 18px; }
    .up-hardgate-hero h1 { font-size: 26px; }
    .up-hardgate-hero p { font-size: 14.5px; max-width: none; }
}

.up-locked-card .up-empty-ic.is-lock {
    background: rgba(251,191,36,.12); color: #fbbf24;
}
.up-locked-actions {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 14px;
}

/* Custom Feld-Validierung (kein Browser-Bubble) */
.up-field-err {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 8px; padding: 9px 12px;
    border-radius: 10px;
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.35);
    color: #fca5a5;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    animation: upFade .15s ease;
}
.up-field-err i { margin-top: 2px; color: #f87171; }
.up-input.is-invalid,
.up-field textarea.is-invalid,
.up-field select.is-invalid,
.up-dd-btn.is-invalid,
.up-rating.is-invalid,
textarea.is-invalid {
    border-color: rgba(248,113,113,.65) !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,.18) !important;
}
.up-check:has(.is-invalid) { outline: 1px solid rgba(248,113,113,.45); outline-offset: 2px; border-radius: 10px; }

.up-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font: 600 14px var(--font-body); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.up-btn.is-primary { background: var(--up-accent); color: #fff; }
.up-btn.is-primary:hover { background: var(--up-accent-hover); }
.up-btn.is-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--ink-2); }
.up-btn.is-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.up-btn.is-danger { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); color: #fca5a5; }
.up-btn.is-danger:hover { background: rgba(248,113,113,.2); color: #fff; }
.up-btn.is-discord { background: #5865F2; color: #fff; }
.up-btn.is-discord:hover { background: #4752c4; }
.up-btn.is-accent { background: var(--up-accent); color: #fff; }
.up-btn.is-accent:hover { background: var(--up-accent-hover); }
.up-btn.is-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.up-btn.is-sm.is-icon, .up-btn.is-icon { width: 34px; min-width: 34px; height: 34px; padding: 0; gap: 0; }
.up-btn.is-lg { height: 48px; font-size: 15px; border-radius: 12px; }
.up-btn.is-block { width: 100%; }
.up-btn:disabled { opacity: .45; cursor: not-allowed; }

.up-form { display: grid; gap: 14px; }
.up-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.up-field { display: grid; gap: 6px; min-width: 0; }
.up-field[hidden], .up-check[hidden] { display: none !important; }
.up-fieldgrid .up-field.is-wide { grid-column: 1 / -1; }
.up-fieldgrid textarea.up-input {
    min-height: 96px; resize: vertical; padding: 12px 14px;
    font: 500 14px/1.5 var(--font-body); border-radius: 10px;
}
.up-field > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.up-input, .up-field select, .up-field textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 14px; outline: none; transition: border-color .15s; }
.up-field select { height: 42px; color-scheme: dark; }
.up-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.up-input:focus, .up-field select:focus, .up-field textarea:focus { border-color: rgba(65,105,255,.6); }
.up-form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.up-hint { font-size: 12.5px; color: var(--ink-3); }

.up-empty-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 22px; }
.up-empty-card h2 { margin: 6px 0 0; }
.up-empty-card p { margin: 0; max-width: 520px; color: var(--ink-3); line-height: 1.6; font-size: 14px; }
.up-empty-ic { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); font-size: 20px; }
.up-empty-inline { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-3); font-size: 14px; }
.up-empty-inline i { font-size: 18px; color: var(--up-accent-2); }

.up-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.up-section-head h2 { margin: 0; }
.up-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.up-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255,255,255,.03); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.up-chip:hover { color: #fff; border-color: rgba(65,105,255,.5); }
.up-chip.is-on { background: rgba(65,105,255,.16); border-color: rgba(65,105,255,.55); color: #fff; }
.up-chip em { font-style: normal; font-size: 11px; color: var(--ink-3); }

/* Listen-Einträge (Tickets, Vorschläge, Feedback, Akte) */
.up-rows { display: grid; gap: 8px; }
.up-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: inherit; transition: border-color .15s; }
a.up-row:hover { border-color: rgba(65,105,255,.45); }
.up-row-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); }
.up-row-ic.is-red { background: rgba(248,113,113,.12); color: #f87171; }
.up-row-ic.is-amber { background: var(--warn-soft); color: var(--warn); }
.up-row-ic.is-green { background: rgba(74,222,128,.12); color: var(--online); }
.up-row-main { flex: 1; min-width: 0; }
.up-row-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-row-main span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.up-row-main p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.up-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; font-size: 12px; color: var(--ink-3); }
.up-row.is-top { align-items: flex-start; }
.up-row.is-top .up-row-main b { white-space: normal; overflow-wrap: anywhere; }
.up-grid.is-split-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; }
.up-grid.is-split-side { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: start; }
.up-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--up-accent); border-radius: 0 10px 10px 0; background: rgba(65,105,255,.07); font-size: 13.5px; line-height: 1.55; color: #dbe3ff; white-space: pre-line; overflow-wrap: anywhere; }
.up-reply b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--up-accent-2); margin-bottom: 3px; }

/* Ticket-Verlauf */
.up-thread { display: grid; gap: 12px; }
.up-msg { display: flex; gap: 10px; max-width: 86%; }
.up-msg.is-team { margin-left: auto; flex-direction: row-reverse; }
.up-msg-av { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--ink-3); font-size: 13px; }
.up-msg.is-team .up-msg-av { background: var(--blue-soft); color: var(--up-accent-2); }
.up-msg-body { min-width: 0; padding: 10px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.up-msg.is-team .up-msg-body { background: rgba(65,105,255,.1); border-color: rgba(65,105,255,.25); }
.up-msg-body header { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.up-msg-body header b { color: #fff; font-size: 13px; }
.up-msg-body p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

/* Übersicht: nächste Schritte */
.up-steps { display: grid; gap: 8px; }
.up-step { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.up-step > i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(255,255,255,.06); color: var(--ink-3); }
.up-step.is-done > i { background: rgba(74,222,128,.14); color: var(--online); }
.up-step div { flex: 1; min-width: 0; }
.up-step b { display: block; font-size: 13.5px; }
.up-step span { display: block; font-size: 12.5px; color: var(--ink-3); }

/* Offene Bewertungen (Spieler) */
.up-rate-open { border-color: rgba(251, 191, 36, .28); background: linear-gradient(180deg, rgba(251,191,36,.07), transparent 56%), var(--surface); }
.up-rate-open-lead { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.up-rate-open-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; font: 700 12px/1 var(--font-body); background: var(--warn-soft); color: var(--warn); vertical-align: middle; font-style: normal; }
.up-rate-open-row { gap: 14px; }
.up-rate-open-row .up-btn { flex-shrink: 0; }
@media (max-width: 640px) {
    .up-rate-open-row { flex-wrap: wrap; }
    .up-rate-open-row .up-btn { width: 100%; }
}
.up-step.is-done b { color: var(--ink-2); }
.up-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(65,105,255,.18), transparent 55%), var(--surface); }
.up-hero img, .up-hero .up-me-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 22px; }
.up-hero h2 { margin: 0; font-size: 22px; font-weight: 800; }
.up-hero p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.up-hero-side { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }


/* Einstellungen */
.up-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.up-kv { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 10px 18px; font-size: 14px; }
.up-kv dt { color: var(--ink-3); }
.up-kv dd { margin: 0; overflow-wrap: anywhere; }
.up-kv dd a { color: var(--up-accent-2); }
.up-kv dd a:hover { text-decoration: underline; }
.up-kv code { font-family: ui-monospace, monospace; font-size: 13px; color: #dbe3ff; }

/* ── Einstellungen (Abschnitts-Navigation) ────────────────────────────────── */
.up-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.up-settings-nav { position: sticky; top: 78px; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.up-settings-link { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.up-settings-link i { width: 16px; text-align: center; color: var(--ink-3); transition: color .15s; }
.up-settings-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.up-settings-link:hover i { color: var(--up-accent-2); }
.up-settings-link.is-active { background: rgba(65,105,255,.14); color: #fff; }
.up-settings-link.is-active i { color: var(--up-accent-2); }
.up-settings-link.is-danger { color: #fca5a5; }
.up-settings-link.is-danger i { color: #f87171; }
.up-settings-link.is-danger:hover, .up-settings-link.is-danger.is-active { background: rgba(248,113,113,.1); color: #fecaca; }
.up-settings-panels { display: grid; gap: 18px; min-width: 0; }
.up-settings-panel { scroll-margin-top: 78px; }
.up-settings-panel.is-danger { border-color: rgba(248,113,113,.25); }
.up-settings-panel.is-danger .up-h-ic { color: #f87171; }
.up-settings-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.up-settings-profile b { display: block; font-size: 16px; }
.up-settings-actions { margin-top: 16px; }
.up-settings-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); font: 700 14px/1.3 var(--font-body); color: #fff; }
.up-settings-sub i { color: var(--up-accent-2); font-size: 13px; }
.up-settings-sub small { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.up-settings-note { margin: 12px 0 0; }
.up-settings-lead { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.up-settings-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); line-height: 1.8; font-size: 14px; }
.up-settings-list + .up-hint a, .up-settings-note a { color: var(--up-accent-2); }
.up-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.up-rating input { display: none; }
.up-rating label { font-size: 26px; color: rgba(255,255,255,.14); cursor: pointer; line-height: 1; }
.up-rating label:hover, .up-rating label:hover ~ label, .up-rating input:checked ~ label { color: var(--warn); }

/* ── Feedback-Seite ──────────────────────────────────────────────────────── */
.up-fb-compose { margin-bottom: 16px; }
.up-fb-case { margin-bottom: 16px; }
.up-fb-case-head {
    display: flex; gap: 12px; align-items: flex-start;
}
.up-fb-case-head > i {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
    display: grid; place-items: center; font-size: 15px;
    background: rgba(65,105,255,.14); color: #8ea6ff;
}
.up-fb-case.is-ok .up-fb-case-head > i { background: rgba(74,222,128,.12); color: #4ade80; }
.up-fb-case.is-warn .up-fb-case-head > i { background: rgba(251,191,36,.12); color: #fbbf24; }
.up-fb-case-head b { display: block; font-size: 15px; margin-bottom: 2px; }
.up-fb-case-head span { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.up-fb-case-head code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; padding: 1px 6px; border-radius: 6px;
    background: rgba(255,255,255,.06); color: #e2e8f0;
}
.up-fb-case-note {
    margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,.03); border: 1px solid var(--line);
    color: var(--ink-2); font-size: 13px; line-height: 1.5;
}
.up-fb-case-info {
    margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
    background: rgba(65,105,255,.08); border: 1px solid rgba(65,105,255,.22);
}
.up-fb-case-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.up-fb-case-grid .is-wide { grid-column: 1 / -1; }
.up-fb-case-grid span {
    display: block; font-size: 11px; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px;
}
.up-fb-case-grid b { font-size: 14px; font-weight: 600; color: #fff; word-break: break-word; }
@media (max-width: 560px) {
    .up-fb-case-grid { grid-template-columns: 1fr; }
    .up-fb-case-grid .is-wide { grid-column: auto; }
}
.up-fb-form { gap: 16px; }
.up-fb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.up-fb-cat { position: relative; cursor: pointer; }
.up-fb-cat input { position: absolute; opacity: 0; pointer-events: none; }
.up-fb-cat > span {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px 0 12px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    background: rgba(255,255,255,.03); color: var(--ink-2);
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.up-fb-cat > span i { color: var(--ink-3); font-size: 13px; }
.up-fb-cat:hover > span { border-color: rgba(65,105,255,.45); color: #fff; }
.up-fb-cat:hover > span i { color: var(--up-accent-2); }
.up-fb-cat:has(input:checked) > span {
    border-color: rgba(65,105,255,.55); background: rgba(65,105,255,.16); color: #fff;
}
.up-fb-cat:has(input:checked) > span i { color: #8ea6ff; }
.up-fb-cat:has(input:focus-visible) > span { box-shadow: 0 0 0 3px rgba(65,105,255,.3); }
.up-fb-meta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; }
.up-fb-meta .up-rating label { font-size: 28px; }
.up-fb-form textarea { min-height: 110px; }
.up-fb-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding-top: 4px;
}
.up-fb-vis { border: 0; margin: 0; padding: 0; min-width: 0; }
.up-fb-vis legend {
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    margin: 0 0 8px; padding: 0;
}
.up-fb-vis-opts { display: grid; gap: 10px; }
@media (min-width: 720px) {
    .up-fb-vis-opts { grid-template-columns: 1fr 1fr; }
}
.up-fb-vis-opt { position: relative; cursor: pointer; display: block; }
.up-fb-vis-opt input { position: absolute; opacity: 0; pointer-events: none; }
.up-fb-vis-opt > span {
    display: grid; gap: 6px; align-content: start;
    min-height: 100%; padding: 14px 14px 14px 42px;
    border: 1px solid var(--line-strong); border-radius: 12px;
    background: rgba(255,255,255,.03); position: relative;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.up-fb-vis-opt > span > i {
    position: absolute; left: 14px; top: 16px;
    color: var(--ink-3); font-size: 15px;
}
.up-fb-vis-opt b { display: block; font-size: 14px; color: #fff; line-height: 1.3; }
.up-fb-vis-opt em {
    display: block; font-style: normal; font-size: 12.5px;
    line-height: 1.45; color: var(--ink-3);
}
.up-fb-vis-opt:hover > span { border-color: rgba(65,105,255,.45); }
.up-fb-vis-opt:has(input:checked) > span {
    border-color: rgba(65,105,255,.55);
    background: rgba(65,105,255,.12);
    box-shadow: 0 0 0 1px rgba(65,105,255,.18);
}
.up-fb-vis-opt:has(input:checked) > span > i { color: #8ea6ff; }
.up-fb-vis-opt:has(input:focus-visible) > span { box-shadow: 0 0 0 3px rgba(65,105,255,.3); }
.up-fb-item .up-row-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.up-fb-item .up-row-side .up-pill i { margin-right: 4px; font-size: 11px; }
.up-fb-item .up-row-main p {
    margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2);
    white-space: pre-line; overflow-wrap: anywhere;
}
.up-stars { color: var(--warn); letter-spacing: 1px; }
.up-stars em { color: rgba(255,255,255,.15); font-style: normal; }
details.up-details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
details.up-details > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
details.up-details > summary::-webkit-details-marker { display: none; }
details.up-details > summary::after { content: '\f078'; font: 900 11px 'Font Awesome 6 Free'; margin-left: auto; color: var(--ink-3); transition: transform .15s; }
details.up-details[open] > summary::after { transform: rotate(180deg); }
details.up-details > div { padding: 0 14px 14px; }

/* ── Anmeldung / Zustimmung (Split-Login + Website Hex-BG) ───────────────── */
.up-auth {
    position: relative; isolation: isolate;
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; padding: 32px 16px; box-sizing: border-box;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(65,105,255,.18), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: auto, 56px 100px;
    background-repeat: no-repeat, repeat;
}
.up-auth.is-split { align-items: stretch; justify-content: center; padding: clamp(28px, 5vh, 64px) clamp(20px, 4vw, 56px); }
.up-auth-split { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); gap: clamp(36px, 6vw, 80px); align-items: center; flex: 1; }
.up-auth-hero { display: grid; gap: 18px; align-content: start; max-width: 520px; }
.up-auth-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em; width: fit-content; }
.up-auth-logo img { display: block; width: 40px; height: 40px; border-radius: 0; object-fit: contain; background: transparent; }
.up-auth-logo .is-grad { background: linear-gradient(90deg, #4169ff, #8ea6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.up-auth-hero > h1 { margin: 8px 0 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.up-auth-hero-lead { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 42ch; }
.up-auth-feats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.up-auth-feats li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.up-auth-feats i { flex-shrink: 0; width: 20px; margin-top: 2px; text-align: center; color: var(--up-accent); font-size: 15px; }
.up-auth-feats b { color: #fff; font-weight: 600; }
.up-auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.up-auth-brand img { display: block; width: 40px; height: 40px; border-radius: 0; object-fit: contain; background: transparent; }
.up-auth-card { width: min(460px, 100%); box-sizing: border-box; padding: 30px 28px; border: 1px solid var(--line); border-top: 3px solid var(--up-accent); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.55); display: grid; gap: 14px; }
.up-auth-card.is-wide { width: min(560px, 100%); }
.up-auth-card.is-login { width: 100%; border-top: 1px solid var(--line); border-radius: 18px; padding: 32px 28px 22px; gap: 16px; background: #12141c; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.up-auth-card h1 { margin: 0; font-size: 22px; font-weight: 800; text-align: center; }
.up-auth-card.is-login h1 { text-align: left; font-size: 24px; }
.up-auth-ic { justify-self: center; width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); font-size: 21px; }
.up-auth-lead { margin: 0; text-align: center; color: var(--ink-2); line-height: 1.6; font-size: 14px; }
.up-auth-lead.is-left { text-align: left; color: var(--ink-3); margin-top: -6px; }
.up-auth-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.up-auth-facts i { color: var(--online); margin-right: 6px; }
.up-auth-alt { text-align: center; }
.up-auth-alt button { border: none; background: none; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; }
.up-auth-alt button:hover { color: #fff; }
.up-auth-legal { display: flex; gap: 18px; font-size: 13px; }
.up-auth-legal.is-card { justify-content: center; gap: 16px; margin-top: 4px; padding-top: 6px; }
.up-auth-legal a { color: var(--ink-3); }
.up-auth-legal a:hover { color: #fff; }
.up-consent { display: grid; gap: 10px; }
.up-consent.is-login { gap: 12px; margin-top: 4px; }
.up-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; }
.up-check.is-plain { padding: 2px 0; border: none; border-radius: 0; background: transparent; gap: 10px; }
.up-check input { position: absolute; opacity: 0; pointer-events: none; }
.up-check > span { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.up-check.is-plain > span { width: 18px; height: 18px; border-radius: 4px; margin-top: 3px; }
.up-check input:checked + span { background: var(--up-accent); border-color: var(--up-accent); }
.up-check input:checked + span::after { content: '\f00c'; font: 900 11px 'Font Awesome 6 Free'; color: #fff; }
.up-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(65,105,255,.35); }
.up-check b { font-weight: 600; font-size: inherit; line-height: inherit; color: #fff; }
.up-check div { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.up-check em { color: #f87171; font-style: normal; font-weight: 700; }
.up-check a { color: var(--up-accent-2); font-weight: 600; }
.up-check a:hover { text-decoration: underline; }
.up-consent.is-login .up-btn { margin-top: 6px; }
.up-auth-switch { margin: 2px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.up-auth-switch a { color: var(--up-accent-2); font-weight: 600; }
.up-auth-switch a:hover { text-decoration: underline; }
.up-auth-infobox {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, .22);
    background: linear-gradient(165deg, rgba(59, 130, 246, .1), rgba(255, 255, 255, .02));
}
.up-auth-infobox > i {
    flex-shrink: 0; width: 18px; margin-top: 2px; text-align: center;
    color: var(--up-accent-2); font-size: 15px;
}
.up-auth-infobox > p {
    margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.up-auth-actions { display: grid; gap: 10px; }
@media (max-width: 900px) {
    .up-auth.is-split { padding: 28px 18px 36px; }
    .up-auth-split { grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }
    .up-auth-hero { max-width: none; }
    .up-auth-hero > h1 { font-size: 28px; }
}

/* ── Responsiv ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .up-set-grid, .up-grid.is-split-main, .up-grid.is-split-side { grid-template-columns: minmax(0,1fr); }
    .up-settings { grid-template-columns: minmax(0, 1fr); }
    .up-settings-nav {
        position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; overflow-x: auto;
        padding: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .up-settings-nav::-webkit-scrollbar { display: none; }
    .up-settings-link { flex: 0 0 auto; height: 36px; white-space: nowrap; }
}
@media (max-width: 900px) {
    .up-app { grid-template-columns: minmax(0,1fr); }
    .up-sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 280px; transform: translateX(-100%); transition: transform .22s ease; }
    body.up-nav-open .up-sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
    body.up-nav-open .up-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
    .up-burger { display: inline-flex; align-items: center; justify-content: center; }
    .up-topbar .up-badge { display: none; }
    .up-hero { flex-wrap: wrap; }
    .up-hero-side { margin-left: 0; justify-content: flex-start; }
}
@media (max-width: 600px) {
    .up-form-row { grid-template-columns: minmax(0,1fr); }
    .up-page { padding-top: 20px; }
    .up-row { flex-wrap: wrap; }
    .up-row-main { flex: 1 1 0; }
    .up-row-side { flex-direction: row; align-items: center; margin-left: 48px; }
    .up-msg { max-width: 100%; }
    .up-kv { grid-template-columns: minmax(0,1fr); gap: 2px 0; }
    .up-kv dd { margin-bottom: 8px; }
    .up-footer { justify-content: center; text-align: center; }
}

/* ── Bestätigungsdialog ───────────────────────────────────────────────────── */
.up-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,6,10,.7); backdrop-filter: blur(4px); animation: upFade .15s ease; }
.up-modal[hidden] { display: none; }
.up-modal-card { width: min(420px, 100%); box-sizing: border-box; padding: 26px 24px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; animation: upPop .18s ease; }
.up-modal-ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); font-size: 20px; }
.up-modal-ic.is-danger { background: rgba(248,113,113,.14); color: #f87171; }
.up-modal-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.up-modal-card p { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.up-modal-actions { display: flex; gap: 8px; }
.up-modal-actions .up-btn { flex: 1; }
.up-btn.is-danger-solid { background: #dc2626; color: #fff; }
.up-btn.is-danger-solid:hover { background: #ef4444; }
body.up-modal-open { overflow: hidden; }
@keyframes upFade { from { opacity: 0; } }
@keyframes upPop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.up-auth-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.up-auth-or::before, .up-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.up-auth-link { color: var(--ink-3); font-size: 13px; }
.up-auth-link:hover { color: #fff; }

/* ══ Community: Support-Tickets (Discord-Stil) ═══════════════════════════════ */
.up-muted { color: var(--ink-3); }
.up-head-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.up-search { height: 40px; width: min(260px, 100%); padding: 0 12px; }
.up-searchf { margin: 0; }
.up-row.is-unread { border-color: rgba(74,222,128,.35); background: linear-gradient(90deg, rgba(74,222,128,.06), transparent 60%), var(--surface-2); }
.up-row.is-unread .up-row-main b { color: #fff; }
.up-row[hidden] { display: none; }
.up-pill.warn { background: var(--warn-soft); color: var(--warn); }

.up-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.up-stack { display: grid; gap: 18px; min-width: 0; }
.up-tside { display: grid; gap: 18px; position: sticky; top: 78px; }
.up-dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 12px; margin: 0; font-size: 13.5px; }
.up-dl dt { color: var(--ink-3); }
.up-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.up-dl dd i { color: var(--up-accent-2); font-size: 12px; }

.up-chat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.up-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.up-chat-head > div { flex: 1; min-width: 0; }
.up-chat-head h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.up-chat-head > div > span { font-size: 12.5px; color: var(--ink-3); }
.up-chat { display: flex; flex-direction: column; gap: 2px; max-height: min(62vh, 680px); min-height: 280px; overflow-y: auto; padding: 18px 12px 14px; scroll-behavior: auto; }
.up-chat-start { display: grid; justify-items: start; gap: 4px; padding: 6px 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.up-chat-start b { font-size: 18px; margin-top: 8px; }
.up-chat-start > span:last-child { font-size: 13.5px; color: var(--ink-3); }

.up-tmsg { display: flex; gap: 12px; padding: 6px 10px; border-radius: 10px; }
.up-tmsg:not(.is-grouped) { margin-top: 10px; }
.up-tmsg:hover { background: rgba(255,255,255,.025); }
.up-tmsg-av { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--ink-3); font-size: 14px; }
.up-tmsg-av.is-team { background: linear-gradient(135deg, #4169ff, #8ea6ff); color: #fff; }
.up-tmsg-gutter { flex-shrink: 0; width: 38px; display: flex; justify-content: center; padding-top: 3px; }
.up-tmsg-gutter time { font-size: 10.5px; color: transparent; }
.up-tmsg:hover .up-tmsg-gutter time { color: var(--ink-3); }
.up-tmsg-body { flex: 1; min-width: 0; }
.up-tmsg-body header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.up-tmsg-body header b { font-size: 14.5px; }
.up-tmsg.is-team .up-tmsg-body header b { color: #8ea6ff; }
.up-tmsg-body header time { font-size: 11.5px; color: var(--ink-3); }
.up-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 4px; background: #4169ff; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; align-self: center; }
.up-tag.is-op { background: rgba(255,255,255,.12); color: var(--ink-2); }
.up-tmsg-body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.9); white-space: pre-line; overflow-wrap: anywhere; }
.up-tmsg-body a, .up-sugg-body a, .up-cmt-body a, .up-decision a { color: #8ea6ff; text-decoration: underline; }
.up-tmsg.is-system { align-items: center; justify-content: center; gap: 8px; margin: 12px 0 4px; padding: 6px 10px; font-size: 12.5px; color: var(--ink-3); text-align: center; flex-wrap: wrap; }
.up-tmsg.is-system:hover { background: none; }
.up-tmsg.is-system i { color: var(--up-accent-2); }
.up-tmsg.is-system time { font-size: 11px; opacity: .8; }
.up-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.up-att { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: #fff; }
.up-att i { font-size: 22px; color: var(--up-accent-2); }
.up-att b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.up-att em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.up-att.is-img { padding: 0; overflow: hidden; }
.up-att.is-img img { display: block; max-width: min(340px, 100%); max-height: 240px; object-fit: cover; }

.up-closereq { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 16px 12px; padding: 12px 14px; border: 1px solid rgba(65,105,255,.35); border-radius: 12px; background: rgba(65,105,255,.08); }
.up-closereq > i { font-size: 20px; color: var(--up-accent-2); }
.up-closereq > div { flex: 1; min-width: 200px; }
.up-closereq b { display: block; font-size: 14px; }
.up-closereq span { font-size: 13px; color: var(--ink-2); }
.up-closereq form { margin: 0; }

.up-composer { display: flex; align-items: flex-end; gap: 6px; margin: 0 16px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); transition: border-color .15s; }
.up-composer:focus-within { border-color: rgba(65,105,255,.55); }
.up-composer.is-plain { margin: 0; }
.up-composer-main { flex: 1; min-width: 0; }
.up-composer textarea { box-sizing: border-box; display: block; width: 100%; min-height: 40px; max-height: 240px; padding: 10px 6px; border: none; background: transparent; color: #fff; font: inherit; font-size: 14.5px; line-height: 1.45; resize: none; outline: none; }
.up-composer-att { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink-3); font-size: 19px; cursor: pointer; }
.up-composer-att:hover { color: #fff; background: rgba(255,255,255,.06); }
.up-composer-att input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up-composer-send { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 9px; background: var(--up-accent); color: #fff; font-size: 14px; cursor: pointer; }
.up-composer-send:hover { background: #3558e6; }
.up-composer-send:disabled { opacity: .5; }
.up-composer-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 0; }
.up-composer-files span, .up-drop-list span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 13px; background: rgba(65,105,255,.14); color: #dbe3ff; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-composer-files .is-err, .up-drop-list .is-err { background: rgba(248,113,113,.14); color: #fca5a5; }
.up-composer-hint { margin: 6px 18px 16px; font-size: 11.5px; color: var(--ink-3); }
.up-card > .up-composer-hint { margin: 6px 2px 0; }
.up-ratebox { display: grid; gap: 10px; justify-items: start; margin: 4px 16px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.up-ratebox textarea { min-height: 60px; resize: vertical; }
.up-ratebox.is-done p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* Neues Ticket */
.up-step-h { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.up-step-h em { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--up-accent); color: #fff; font-style: normal; font-size: 12px; }
.up-catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.up-catcard { position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.up-catcard:hover { border-color: rgba(65,105,255,.45); }
.up-catcard input { position: absolute; opacity: 0; pointer-events: none; }
.up-catcard-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); }
.up-catcard b { font-size: 14px; }
.up-catcard > span:last-child { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.up-catcard:has(input:checked) { border-color: var(--up-accent); background: rgba(65,105,255,.12); box-shadow: 0 0 0 1px var(--up-accent) inset; }
.up-catcard:has(input:checked) .up-catcard-ic { background: var(--up-accent); color: #fff; }
.up-catcard:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(65,105,255,.35); }
.up-catfields[hidden] { display: none; }
.up-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.up-drop:hover, .up-drop.is-over { border-color: rgba(65,105,255,.6); background: rgba(65,105,255,.05); }
.up-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-drop > i { font-size: 22px; color: var(--up-accent-2); }
.up-drop b { font-size: 14px; }
.up-drop > span { font-size: 12.5px; color: var(--ink-3); }
.up-drop-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-style: normal; }
.up-drop-list:empty { display: none; }

/* ══ Community: Vorschlags-Board ════════════════════════════════════════════ */
.up-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.up-selchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255,255,255,.03); color: var(--ink-3); font-size: 12px; }
.up-selchip select { height: 30px; border: none; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; outline: none; cursor: pointer; color-scheme: dark; }
.up-sugglist { display: grid; gap: 10px; }
.up-sugg { --st: rgba(255,255,255,.14); position: relative; padding: 14px 16px 12px; border: 1px solid var(--line); border-left: 3px solid var(--st); border-radius: 12px; background: var(--surface-2); }
.up-sugg.is-detail { padding: 20px 22px; background: var(--surface); }
.up-sugg.is-blue { --st: #4169ff; } .up-sugg.is-green { --st: #4ade80; } .up-sugg.is-violet { --st: #38bdf8; } .up-sugg.is-red { --st: #f87171; } .up-sugg.is-muted { --st: rgba(255,255,255,.1); }
.up-sugg-head { display: flex; align-items: flex-start; gap: 12px; }
.up-sugg-head > div { flex: 1; min-width: 0; }
.up-sugg-head h2, .up-sugg-head h3 { margin: 0; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.up-sugg.is-detail .up-sugg-head h2 { font-size: 19px; }
.up-sugg-head h3 a { color: #fff; }
.up-sugg-head h3 a:hover { color: var(--up-accent-2); }
.up-sugg-head > div > span { font-size: 12.5px; color: var(--ink-3); }
.up-mine { color: var(--up-accent-2); font-weight: 600; }
.up-spill { flex-shrink: 0; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.07); color: var(--ink-2); }
.up-spill.is-blue { background: rgba(65,105,255,.16); color: #8ea6ff; } .up-spill.is-green { background: rgba(74,222,128,.12); color: #86efac; }
.up-spill.is-violet { background: rgba(56,189,248,.15); color: #7dd3fc; } .up-spill.is-red { background: rgba(248,113,113,.13); color: #fca5a5; } .up-spill.is-muted { color: var(--ink-3); }
.up-sugg-body { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.up-sugg-body.is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.up-sugg footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.up-sugg footer .up-votebar { flex: 1; min-width: 260px; margin: 0; }
.up-sugg-cmt { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.up-sugg-cmt:hover { background: rgba(255,255,255,.05); color: #fff; }
.up-votebar { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.up-vote-f { margin: 0; }
.up-vbtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255,255,255,.03); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; font-variant-numeric: tabular-nums; }
.up-vbtn:hover:not(:disabled) { color: #fff; }
.up-vbtn:active:not(:disabled) { transform: scale(.95); }
.up-vbtn.is-up:hover:not(:disabled), .up-vbtn.is-up.is-on { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.12); color: #86efac; }
.up-vbtn.is-down:hover:not(:disabled), .up-vbtn.is-down.is-on { border-color: rgba(248,113,113,.55); background: rgba(248,113,113,.12); color: #fca5a5; }
.up-vbtn:disabled { opacity: .55; cursor: default; }
.up-approval { flex: 1; min-width: 90px; display: grid; gap: 4px; }
.up-approval span { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #4ade80 var(--p), rgba(248,113,113,.55) var(--p)); transition: background .3s; }
.up-approval span.is-empty { background: rgba(255,255,255,.08); }
.up-approval em { font-style: normal; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.up-decision { --st: var(--up-accent); margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--st); background: rgba(255,255,255,.03); }
.up-decision.is-green { --st: #4ade80; } .up-decision.is-red { --st: #f87171; } .up-decision.is-violet { --st: #38bdf8; } .up-decision.is-muted { --st: rgba(255,255,255,.2); }
.up-decision b { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.up-decision b i { color: var(--up-accent-2); }
.up-decision p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.up-decision > span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.up-decision.is-mini { margin-top: 10px; padding: 8px 12px; }
.up-decision.is-mini p { font-size: 13px; color: var(--ink-2); }
.up-card h2 small { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.up-comments { display: grid; gap: 4px; }
.up-cmt { display: flex; gap: 12px; padding: 8px; border-radius: 10px; }
.up-cmt:hover { background: rgba(255,255,255,.025); }
.up-cmt-body { flex: 1; min-width: 0; }
.up-cmt-body header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.up-cmt-body header b { font-size: 14px; }
.up-cmt.is-team header b { color: #8ea6ff; }
.up-cmt-body header time { font-size: 11.5px; color: var(--ink-3); }
.up-cmt-body p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); white-space: pre-line; overflow-wrap: anywhere; }
.up-cmt-del { margin: 0 0 0 auto; }
.up-cmt-del button { width: 28px; height: 28px; border: none; border-radius: 7px; background: none; color: var(--ink-3); cursor: pointer; opacity: 0; }
.up-cmt:hover .up-cmt-del button, .up-cmt-del button:focus-visible { opacity: 1; }
.up-cmt-del button:hover { background: rgba(248,113,113,.12); color: #f87171; }
.up-sugg-steps { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.up-sugg-steps span { display: flex; align-items: center; gap: 8px; }
.up-sugg-steps .is-on { color: var(--ink-2); }
.up-sugg-steps .is-on i { color: var(--online); }
.up-sugg-steps .is-cur { color: #fff; font-weight: 700; }
.up-similar { padding: 12px 14px; border: 1px solid rgba(251,191,36,.3); border-radius: 12px; background: rgba(251,191,36,.06); }
.up-similar[hidden] { display: none; }
.up-similar b { display: block; font-size: 13px; color: #fde68a; margin-bottom: 6px; }
.up-similar div { display: grid; gap: 4px; }
.up-similar a { font-size: 13.5px; color: #fff; }
.up-similar a i { font-size: 11px; color: var(--ink-3); margin-right: 4px; }
.up-similar a:hover { color: var(--up-accent-2); }
.up-howto { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.up-howto li { counter-increment: s; position: relative; padding-left: 38px; }
.up-howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--up-accent-2); font-size: 12px; font-weight: 800; }
.up-howto b { display: block; font-size: 14px; }
.up-howto span { font-size: 13px; color: var(--ink-3); }

@media (max-width: 1100px) {
    .up-ticket-layout { grid-template-columns: minmax(0, 1fr); }
    .up-tside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 600px) {
    .up-chat { max-height: 60vh; padding: 12px 4px; }
    .up-chat-head { padding: 14px; flex-wrap: wrap; }
    .up-composer { margin: 0 10px; }
    .up-closereq { margin: 0 10px 10px; }
    .up-ratebox { margin: 4px 10px 14px; }
    .up-composer-hint { margin: 6px 12px 12px; }
    .up-catpick { grid-template-columns: minmax(0, 1fr); }
    .up-head-tools, .up-searchf, .up-search { width: 100%; }
    .up-head-tools .up-btn { flex: 1; }
    .up-sugg footer .up-votebar { min-width: 0; }
    .up-att.is-img img { max-width: 100%; }
    .up-cmt-del button { opacity: 1; }
}

/* ══ Community / Support – Spreewald Desk (kein Discord-Look) ═══════════════ */
.dc-card {
    --dc-accent: var(--up-accent);
    --dc-green: #22c55e; --dc-red: #f87171; --dc-grey: #64748b;
    --dc-text: rgba(255,255,255,.88); --dc-muted: rgba(255,255,255,.45);
    --dc-line: rgba(255,255,255,.08); --dc-embed: #151822;
    padding: 0 0 12px; overflow: visible;
}
.dc-up { color: #4ade80; } .dc-down { color: #f87171; }
.dc-channel {
    display: flex; align-items: center; gap: 10px; min-height: 56px;
    padding: 10px 18px; border-bottom: 1px solid var(--dc-line);
    font-weight: 700; font-size: 15px; color: #fff; flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(65,105,255,.06), transparent);
}
.dc-channel > i { color: var(--up-accent-2); font-size: 15px; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(65,105,255,.14); }
.dc-chan-label { font-weight: 700; letter-spacing: -.01em; color: #fff; }
.dc-channel > span { color: var(--dc-muted); font-weight: 400; }
.dc-channel > em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--dc-muted); background: rgba(255,255,255,.06); padding: 2px 9px; border-radius: 999px; }
.dc-channel .up-btn { margin-left: 0; }
.dc-channel .dc-details-wrap { margin-left: auto; }
.dc-channel .dc-search { margin-left: auto; }
.dc-channel .dc-search + .up-btn { margin-left: 0; }
.dc-channel > a.up-btn:last-child { margin-left: auto; }
.dc-channel.is-sub { min-height: 48px; font-size: 14px; background: none; }
.dc-tkt-no {
    display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
    border-radius: 8px; background: rgba(65,105,255,.18); color: #8ea6ff;
    font-size: 13px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.dc-search { position: relative; margin-left: auto; }
.dc-search .up-search { height: 34px; width: 200px; padding: 0 30px 0 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13px; }
.dc-search i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--dc-muted); font-size: 12px; pointer-events: none; }
.dc-card .up-filterbar { margin: 12px 16px 4px; }
.dc-feed { display: grid; gap: 2px; padding: 4px 0; }
.dc-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--dc-muted); }
.dc-empty i { font-size: 28px; color: var(--up-accent-2); margin-bottom: 4px; opacity: .7; }
.dc-empty b { color: #fff; font-size: 16px; }

.dc-msg { position: relative; display: flex; gap: 14px; padding: 12px 18px; transition: background .15s; }
.dc-msg:hover { background: rgba(255,255,255,.025); }
.dc-post { padding-top: 16px; padding-bottom: 16px; margin: 6px 10px; border-radius: 14px; border: 1px solid transparent; }
.dc-post:hover { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.05); }
.dc-feed .dc-post + .dc-post { border-top: none; }
.dc-av {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    background: rgba(65,105,255,.22); color: #8ea6ff; font-size: 15px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.dc-av.is-anon { background: rgba(255,255,255,.08); color: #94a3b8; }
.dc-av.is-team { background: linear-gradient(145deg, #3558e6, #4169ff); color: #fff; box-shadow: none; }
.dc-main { flex: 1; min-width: 0; }
.dc-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; line-height: 1.35; margin-bottom: 2px; }
.dc-name { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.dc-name.is-anon { color: #94a3b8; }
.dc-name.is-team { color: #8ea6ff; }
.dc-head time { font-size: 12px; color: var(--dc-muted); margin-left: 2px; }
.dc-anon-id { font-size: 12px; color: var(--dc-muted); font-variant-numeric: tabular-nums; }
.dc-badge {
    display: inline-flex; align-items: center; gap: 4px; align-self: center;
    height: 18px; padding: 0 7px; border-radius: 6px;
    background: rgba(255,255,255,.08); color: #cbd5e1;
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.dc-badge.is-team { background: rgba(65,105,255,.22); color: #8ea6ff; }
.dc-badge.is-me { background: rgba(74,222,128,.14); color: #4ade80; }
.dc-badge.is-bot { background: rgba(65,105,255,.22); color: #8ea6ff; }
.dc-text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--dc-text); white-space: pre-line; overflow-wrap: anywhere; }
.dc-text a { color: #8ea6ff; }
.dc-text.is-deleted { font-style: italic; color: var(--dc-muted); font-size: 14px; }

.dc-embed, .dc-panel {
    --c: var(--up-accent);
    max-width: 680px; margin-top: 8px; padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-top: 3px solid var(--c);
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(65,105,255,.07), var(--dc-embed) 40%);
    display: grid; gap: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.dc-panel { margin: 12px 18px; max-width: none; animation: upFade .2s ease; }
.dc-panel.is-blue, .dc-embed.is-blue { --c: #4169ff; }
.dc-panel.is-green, .dc-embed.is-green { --c: #22c55e; background: linear-gradient(165deg, rgba(34,197,94,.08), var(--dc-embed) 40%); }
.dc-panel.is-red, .dc-embed.is-red { --c: #f87171; background: linear-gradient(165deg, rgba(248,113,113,.08), var(--dc-embed) 40%); }
.dc-panel.is-violet, .dc-embed.is-violet { --c: #38bdf8; }
.dc-panel.is-amber, .dc-embed.is-amber { --c: #fbbf24; background: linear-gradient(165deg, rgba(251,191,36,.08), var(--dc-embed) 40%); }
.dc-panel.is-grey, .dc-embed.is-grey { --c: #64748b; background: linear-gradient(165deg, rgba(100,116,139,.1), var(--dc-embed) 40%); }
.dc-post.is-detail .dc-embed { max-width: none; }
.dc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-panel-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #fff; }
.dc-panel-cat i { color: var(--up-accent-2); }
.dc-panel-head time, .dc-panel-time { font-size: 12px; color: var(--dc-muted); }
.dc-embed-author { font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 7px; }
.dc-embed-author i { color: var(--up-accent-2); }
.dc-embed-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: #8ea6ff; overflow-wrap: anywhere; }
a.dc-embed-title:hover { color: #dbe3ff; text-decoration: underline; text-underline-offset: 2px; }
h2.dc-embed-title { color: #fff; font-size: 19px; letter-spacing: -.02em; }
.dc-embed-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--dc-text); white-space: pre-line; overflow-wrap: anywhere; }
.dc-embed-desc a { color: #8ea6ff; }
.dc-embed-desc.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 10px 28px; padding-top: 4px; }
.dc-fields b, .dc-field-wide b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dc-muted); margin-bottom: 3px; }
.dc-fields span { font-size: 13.5px; color: #fff; white-space: nowrap; font-weight: 600; }
.dc-status i { font-size: 12px; }
.dc-status.is-green i { color: #4ade80; } .dc-status.is-red i { color: #f87171; } .dc-status.is-blue i { color: #8ea6ff; } .dc-status.is-violet i { color: #38bdf8; } .dc-status.is-grey i { color: var(--dc-muted); }
.dc-field-wide { padding: 10px 12px; border-radius: 10px; background: rgba(65,105,255,.08); border: 1px solid rgba(65,105,255,.15); }
.dc-field-wide p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dc-text); white-space: pre-line; overflow-wrap: anywhere; }
.dc-field-wide b i { color: #8ea6ff; font-size: 12px; }
.dc-embed-foot { font-size: 12px; color: var(--dc-muted); border-top: 1px solid rgba(255,255,255,.05); margin-top: 2px; padding-top: 8px; }

.dc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; max-width: 680px; }
.dc-post.is-detail .dc-actions { max-width: none; }
.dc-actions .up-votebar { display: contents; }
.dc-actions .up-vbtn {
    height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
    background: rgba(255,255,255,.04); color: #fff; font-size: 13.5px; font-weight: 600;
}
.dc-actions .up-vbtn:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.dc-actions .up-vbtn.is-up.is-on, .dc-actions .up-vbtn.is-up.is-on:hover { background: rgba(34,197,94,.2); color: #4ade80; border-color: rgba(34,197,94,.4); }
.dc-actions .up-vbtn.is-down.is-on, .dc-actions .up-vbtn.is-down.is-on:hover { background: rgba(248,113,113,.18); color: #fca5a5; border-color: rgba(248,113,113,.35); }
.dc-actions .up-vbtn.is-up:hover:not(:disabled):not(.is-on), .dc-actions .up-vbtn.is-down:hover:not(:disabled):not(.is-on) { background: rgba(255,255,255,.08); color: #fff; }
.dc-actions .up-approval { flex: 1 1 140px; max-width: 260px; order: 5; }
.dc-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05); color: #fff; font-size: 13.5px; font-weight: 600;
}
.dc-btn:hover { background: rgba(255,255,255,.1); }
.dc-btn em { font-style: normal; font-size: 11.5px; background: rgba(0,0,0,.25); padding: 1px 7px; border-radius: 8px; }

.dc-comments { padding: 8px 0 4px; }
.dc-thread { position: relative; }
.dc-cmt .dc-av { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.dc-cmt:target, .dc-cmt.is-replying { background: rgba(251,191,36,.08); box-shadow: inset 3px 0 0 #fbbf24; border-radius: 10px; }
.dc-replies { margin-left: 33px; }
.dc-replies > .dc-thread { padding-left: 22px; }
.dc-replies > .dc-thread::before { content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 26px; border-left: 2px solid rgba(65,105,255,.25); border-bottom: 2px solid rgba(65,105,255,.25); border-bottom-left-radius: 10px; }
.dc-replies > .dc-thread:not(:last-child)::after { content: ''; position: absolute; left: 0; top: 24px; bottom: 0; border-left: 2px solid rgba(65,105,255,.2); }
.dc-replies > .dc-thread > .dc-msg { padding-left: 6px; }
.dc-thread[data-depth="4"] > .dc-replies { margin-left: 0; }
.dc-thread[data-depth="4"] > .dc-replies > .dc-thread { padding-left: 0; }
.dc-thread[data-depth="4"] > .dc-replies > .dc-thread::before, .dc-thread[data-depth="4"] > .dc-replies > .dc-thread::after { display: none; }
.dc-replyref { position: absolute; left: 60px; right: 16px; top: 2px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dc-muted); overflow: hidden; white-space: nowrap; }
.dc-replyref b { color: #cbd5e1; font-weight: 600; }
.dc-replyref span { overflow: hidden; text-overflow: ellipsis; }
.dc-cmt:has(.dc-replyref) { padding-top: 24px; }
.dc-hover { position: absolute; top: -14px; right: 16px; display: flex; gap: 2px; padding: 2px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #1a1e2c; box-shadow: 0 8px 20px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.dc-msg:hover > .dc-main > .dc-hover, .dc-hover:focus-within { opacity: 1; pointer-events: auto; }
.dc-hover form { margin: 0; }
.dc-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: none; border-radius: 8px; background: none; color: #94a3b8; font: inherit; font-size: 13px; cursor: pointer; }
.dc-hbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.dc-hbtn.is-danger:hover { color: #f87171; }
.dc-edited { font-size: 11.5px; color: var(--dc-muted); font-weight: 500; margin-left: 2px; }
.dc-editf { margin: 8px 16px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(65,105,255,.25); background: rgba(65,105,255,.06); }
.dc-editf[hidden] { display: none !important; }
.dc-editf .up-field { margin: 0 0 10px; }
.dc-editf textarea, .dc-editf .up-input {
    width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); color: #e2e8f0;
    font: inherit; font-size: 14px; line-height: 1.5; resize: vertical;
}
.dc-editf textarea:focus, .dc-editf .up-input:focus { outline: none; border-color: rgba(65,105,255,.55); box-shadow: 0 0 0 3px rgba(65,105,255,.2); }
.dc-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dc-cmt.is-editing .dc-hover { display: none; }
.dc-cmt .dc-editf { margin: 6px 0 0; }
.dc-composer { margin: 12px 16px 0; }
.dc-replying { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 12px 12px 0 0; background: rgba(65,105,255,.1); border: 1px solid rgba(65,105,255,.2); border-bottom: none; font-size: 13px; color: var(--dc-muted); }
.dc-replying[hidden] { display: none; }
.dc-replying b { color: #fff; }
.dc-replying button { border: none; background: none; color: var(--dc-muted); cursor: pointer; font-size: 15px; }
.dc-replying button:hover { color: #fff; }
.dc-replying:not([hidden]) + .up-composer { border-top-left-radius: 0; border-top-right-radius: 0; }
.dc-namechk { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 12.5px; color: var(--dc-muted); cursor: pointer; }
.dc-namechk input { position: absolute; opacity: 0; pointer-events: none; }
.dc-namechk > span { flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.dc-namechk input:checked + span { background: var(--up-accent); border-color: var(--up-accent); }
.dc-namechk input:checked + span::after { content: '\f00c'; font: 900 9px 'Font Awesome 6 Free'; color: #fff; }
.dc-namechk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(65,105,255,.35); }
.dc-namechk b { color: #e2e8f0; font-weight: 600; }
.up-sugg-steps.is-first { margin-top: 0; padding-top: 0; border-top: none; }

.dc-namepick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dc-namepick label { cursor: pointer; }
.dc-namepick input { position: absolute; opacity: 0; pointer-events: none; }
.dc-namepick-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dc-namepick-card .dc-av { width: 36px; height: 36px; font-size: 14px; }
.dc-namepick-card b { display: block; font-size: 14px; }
.dc-namepick-card em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.dc-namepick label:hover .dc-namepick-card { border-color: rgba(65,105,255,.5); }
.dc-namepick input:checked + .dc-namepick-card { border-color: var(--up-accent); background: rgba(65,105,255,.12); box-shadow: 0 0 0 1px var(--up-accent) inset; }
.dc-namepick input:focus-visible + .dc-namepick-card { box-shadow: 0 0 0 3px rgba(65,105,255,.35); }
.up-field select:invalid { color: var(--ink-3); }

@media (hover: none) { .dc-hover { position: static; opacity: 1; pointer-events: auto; margin-top: 4px; border: none; background: none; box-shadow: none; padding: 0; } .dc-hbtn { height: 26px; padding: 0 6px; font-size: 12px; color: var(--dc-muted); } }
@media (max-width: 600px) {
    .dc-msg { gap: 10px; padding: 10px 12px; }
    .dc-post { margin: 4px 6px; }
    .dc-av { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
    .dc-cmt .dc-av { width: 30px; height: 30px; }
    .dc-replies { margin-left: 22px; }
    .dc-replies > .dc-thread { padding-left: 14px; }
    .dc-replies > .dc-thread::before { width: 12px; }
    .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
    .dc-embed, .dc-panel { padding: 12px; margin-left: 10px; margin-right: 10px; }
    .dc-namepick { grid-template-columns: minmax(0, 1fr); }
    .dc-search, .dc-search .up-search { width: 100%; margin-left: 0; order: 3; }
    .dc-channel .up-btn { margin-left: auto; }
    .dc-composer { margin: 10px 10px 0; }
    .dc-replyref { left: 50px; }
}
.dc-namechk em { font-style: normal; }

/* ── Auswahlfelder: lesbare Einträge im aufgeklappten Menü (alle Browser) ── */
.up-body select option { background: #171a24; color: #fff; }
.up-body select option:disabled { color: rgba(255,255,255,.45); }
.up-field select:invalid { color: var(--ink-3); }
.up-field select:invalid option:not(:disabled) { color: #fff; }

/* ── Eigenes Dropdown (ersetzt select.up-dd-src) ── */
.up-dd { position: relative; }
.up-dd-src.is-enhanced { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; bottom: 0; left: 50%; }
.up-dd-btn { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.up-dd-btn:hover { border-color: rgba(65,105,255,.5); }
.up-dd.is-open .up-dd-btn, .up-dd-btn:focus-visible { outline: none; border-color: var(--up-accent); box-shadow: 0 0 0 3px rgba(65,105,255,.25); }
.up-dd-btn .up-dd-ic { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(65,105,255,.16); color: #8ea6ff; font-size: 13px; }
.up-dd-btn.is-empty { color: var(--ink-3); }
.up-dd-btn.is-empty .up-dd-ic { background: rgba(255,255,255,.06); color: var(--ink-3); }
.up-dd-btn > span:not(.up-dd-ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-dd-btn > i.up-dd-arrow { color: var(--ink-3); font-size: 12px; transition: transform .15s; }
.up-dd.is-open .up-dd-arrow { transform: rotate(180deg); }
.up-dd-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #1b1e2a; box-shadow: 0 18px 40px rgba(0,0,0,.5); animation: upFade .12s ease; }
.up-dd-list[hidden] { display: none; }
.up-dd.is-up .up-dd-list { top: auto; bottom: calc(100% + 6px); }
.up-dd-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #dbdee1; font-size: 14px; cursor: pointer; }
.up-dd-opt .up-dd-ic { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: #b5bac1; font-size: 13px; }
.up-dd-opt.is-active { background: rgba(65,105,255,.16); color: #fff; }
.up-dd-opt.is-active .up-dd-ic { background: rgba(65,105,255,.3); color: #fff; }
.up-dd-opt[aria-selected="true"] { color: #fff; font-weight: 600; }
.up-dd-opt[aria-selected="true"]::after { content: '\f00c'; font: 900 12px 'Font Awesome 6 Free'; margin-left: auto; color: #8ea6ff; }

/* ── Suchleiste im Board-Kopf ── */
.dc-channel .dc-search { display: flex; align-items: center; position: relative; height: 34px; margin: 0 0 0 auto; }
.dc-channel .dc-search .up-search { display: block; box-sizing: border-box; height: 34px; min-height: 0; width: 220px; margin: 0; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 13.5px; font-weight: 500; line-height: 32px; -webkit-appearance: none; appearance: none; outline: none; transition: width .2s, border-color .15s, background .15s; }
.dc-channel .dc-search .up-search::placeholder { color: var(--dc-muted); font-weight: 500; }
.dc-channel .dc-search .up-search:hover { background: rgba(255,255,255,.06); }
.dc-channel .dc-search .up-search:focus { width: 280px; border-color: rgba(65,105,255,.55); background: rgba(65,105,255,.08); }
.dc-channel .dc-search .up-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.dc-channel .dc-search > i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 13px; line-height: 1; color: var(--dc-muted); pointer-events: none; }
.dc-channel .dc-search:focus-within > i { color: #fff; }
.dc-channel .dc-search + .up-btn { margin-left: 0; }
@media (max-width: 600px) {
    .dc-channel .dc-search { order: 3; flex: 1 1 100%; width: 100%; margin: 4px 0 2px; }
    .dc-channel .dc-search .up-search, .dc-channel .dc-search .up-search:focus { width: 100%; }
}
@media (max-width: 600px) { .dc-channel .dc-search + .up-btn { margin-left: auto; } }

/* ── Neues Ticket: Kategorie-Beschreibung & Zusatzfelder ── */
.up-newticket .up-dd-btn { height: 52px; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.up-newticket .up-dd-btn .up-dd-ic { width: 34px; height: 34px; font-size: 15px; }
.up-dd-txt { display: grid; min-width: 0; }
.up-dd-txt small { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-dd-opt.is-active .up-dd-txt small { color: #dbe3ff; }
.up-dd-list { max-height: 380px; }
.up-dd-btn:disabled { opacity: .5; cursor: not-allowed; }
.up-catdesc { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(65,105,255,.3); border-left: 4px solid var(--up-accent); border-radius: 10px; background: rgba(65,105,255,.08); animation: upFade .15s ease; }
.up-catdesc[hidden] { display: none; }
.up-catdesc.is-private { border-color: rgba(250,168,26,.35); border-left-color: #f0b232; background: rgba(250,168,26,.06); }
.up-catdesc-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--up-accent); color: #fff; font-size: 16px; }
.up-catdesc.is-private .up-catdesc-ic { background: #f0b232; color: #1a1300; }
.up-catdesc b { display: block; font-size: 15px; }
.up-catdesc b em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.up-catdesc p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.up-catdesc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: #8ea6ff; }
.up-cat-eta {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 10px 0 0; padding: 9px 11px;
    border-radius: 8px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.up-cat-eta i { margin-top: 2px; color: var(--up-accent-2); }
.up-cat-eta strong { color: #fff; font-weight: 700; }
.up-cat-eta em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.up-fieldgrid { align-items: start; }
.up-fieldgrid[hidden] { display: none; }
.up-fieldgrid .up-check.is-wide { grid-column: 1 / -1; }
.up-field > span i { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .75; }
.up-field input[type=date] { color-scheme: dark; height: 44px; }
.up-step-2[hidden] { display: none; }
.up-newticket .up-field .up-dd-btn { height: 44px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.up-newticket .up-field .up-dd-btn .up-dd-ic { width: 28px; height: 28px; font-size: 13px; }

/* ══ Support-Ticket Desk ═══════════════════════════════════════════════════ */
.dc-ticket { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.dc-ticket .dc-channel { min-height: 58px; flex-wrap: nowrap; }
.dc-chan-sep { flex-shrink: 0; width: 1px; height: 20px; background: var(--dc-line); margin: 0 4px; }
.dc-chan-topic { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-chan-pill { flex-shrink: 0; }
.dc-chat { display: flex; flex-direction: column; max-height: min(66vh, 720px); min-height: 360px; overflow-y: auto; padding: 8px 0 16px; background: radial-gradient(1200px 400px at 10% -10%, rgba(65,105,255,.07), transparent 55%); }
.dc-chan-start { padding: 22px 20px 18px; margin: 8px 18px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: rgba(255,255,255,.02); }
.dc-chan-start-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #3558e6, #4169ff); color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.dc-chan-start h2 { margin: 14px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dc-chan-start p { margin: 0; font-size: 14.5px; color: var(--dc-muted); line-height: 1.5; max-width: 52ch; }
.dc-tmsg { margin-top: 10px; padding-top: 4px; padding-bottom: 4px; }
.dc-tmsg.is-grouped { margin-top: 0; }
.dc-gutter { flex-shrink: 0; width: 40px; display: flex; justify-content: center; padding-top: 4px; }
.dc-gutter time { font-size: 11px; color: transparent; }
.dc-tmsg:hover .dc-gutter time { color: var(--dc-muted); }
.dc-tmsg .up-atts { margin-top: 6px; }
.dc-botmsg { margin-top: 14px; }
.dc-av.is-bot { background: #fff; overflow: hidden; border-radius: 12px; }
.dc-av.is-bot img { width: 100%; height: 100%; object-fit: cover; }
.dc-sys { display: flex; align-items: center; gap: 12px; margin: 10px 18px; padding: 8px 14px; font-size: 13.5px; color: var(--dc-muted); flex-wrap: wrap; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.08); }
.dc-sys > i { width: 16px; text-align: center; color: #4ade80; }
.dc-sys > i.fa-lock { color: #f87171; } .dc-sys > i.fa-share { color: #8ea6ff; }
.dc-sys span { color: #cbd5e1; }
.dc-sys time { font-size: 12px; }
.dc-sys:hover { background: rgba(255,255,255,.05); }
.dc-embed-title.is-plain { color: #fff; font-size: 17px; margin: 0; letter-spacing: -.015em; }
.dc-embed-title.is-plain i { margin-right: 6px; color: var(--up-accent-2); }
.dc-fields.is-4 { grid-template-columns: repeat(4, minmax(0, max-content)); }
.dc-fields.is-form {
    grid-template-columns: 1fr;
    gap: 8px 0;
    margin: 4px 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.06);
}
.dc-fields.is-form > div { min-width: 0; }
.dc-fields.is-form b { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 2px; }
.dc-fields.is-form span { white-space: normal; overflow-wrap: anywhere; color: #e8eaed; font-weight: 600; }
.dc-btn { border: none; font: inherit; cursor: pointer; }
.dc-btn.is-green { background: rgba(34,197,94,.2); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.dc-btn.is-green:hover { background: rgba(34,197,94,.3); }
.dc-btn.is-accent, .dc-btn.is-blurple { background: var(--up-accent); color: #fff; border-color: transparent; }
.dc-btn.is-accent:hover, .dc-btn.is-blurple:hover { background: #3558e6; }
.dc-actions form { margin: 0; }
.dc-rate { gap: 10px; }
.dc-rate textarea { min-height: 56px; resize: vertical; background: rgba(0,0,0,.25); }
.dc-rate .up-rating label { font-size: 28px; }
.dc-input { margin: 0 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.dc-ticket .up-composer-hint { margin: 6px 18px 14px; }
.dc-members .dc-member-h { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dc-member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.dc-member:hover { background: rgba(255,255,255,.04); }
.dc-member .dc-av { width: 34px; height: 34px; font-size: 13px; }
.dc-member b { display: block; font-size: 14px; }
.dc-member b.is-team { color: #8ea6ff; }
.dc-member em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.dc-members .up-dl dd i { color: #8ea6ff; }
@media (max-width: 600px) {
    .dc-chat { max-height: 64vh; min-height: 300px; }
    .dc-chan-topic, .dc-chan-sep { display: none; }
    .dc-chan-start { margin: 8px 10px; padding: 16px; }
    .dc-chan-start h2 { font-size: 19px; }
    .dc-chan-start-ic { width: 44px; height: 44px; font-size: 18px; }
    .dc-sys { margin: 8px 10px; padding-left: 12px; gap: 10px; font-size: 13px; }
    .dc-fields.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-input { margin: 0 10px; }
    .dc-panel { margin-left: 10px; margin-right: 10px; }
}

/* ══ Kompaktes Menü „Worum geht es?“ ═══════════════════════════════════════ */
.up-newticket > .up-dd .up-dd-btn { height: 44px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.up-newticket > .up-dd .up-dd-btn .up-dd-ic { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.up-newticket > .up-dd .up-dd-list { padding: 6px; max-height: min(420px, 58vh); border-radius: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.up-newticket > .up-dd .up-dd-list[hidden] { display: none; }
.up-newticket > .up-dd .up-dd-opt { gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.up-newticket > .up-dd .up-dd-opt .up-dd-ic { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.up-newticket > .up-dd .up-dd-txt { font-size: 13px; font-weight: 700; letter-spacing: .01em; gap: 1px; }
.up-newticket > .up-dd .up-dd-txt small { font-size: 11.5px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.up-newticket > .up-dd .up-dd-opt.is-active { border-color: rgba(65,105,255,.45); }
.up-newticket > .up-dd .up-dd-opt[aria-selected="true"]::after { align-self: center; margin-top: 0; }
@media (max-width: 800px) { .up-newticket > .up-dd .up-dd-list { grid-template-columns: minmax(0, 1fr); } }
.dc-sys > i.fa-circle-question, .dc-sys > i.fa-rotate-left { color: #8ea6ff; }
.dc-sys { flex-wrap: nowrap; align-items: baseline; }
.dc-sys > i { align-self: center; flex-shrink: 0; }
.dc-sys span { flex: 0 1 auto; min-width: 0; }
.dc-sys time { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) { .dc-sys { flex-wrap: wrap; row-gap: 0; } .dc-sys span { flex: 1 1 calc(100% - 40px); } .dc-sys time { margin-left: 26px; } }
/* Rang von Teammitgliedern */
.dc-rank { display: inline-flex; align-items: center; gap: 5px; align-self: center; height: 18px; padding: 0 7px; border-radius: 9px; background: rgba(142,166,255,.12); color: #b9c6ff; font-size: 11px; font-weight: 600; }
.dc-rank::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8ea6ff; }
.dc-av.is-staff { background: #1e2130; box-shadow: 0 0 0 2px rgba(65,105,255,.55); }
.dc-member b.is-team .dc-tip {
    display: inline-flex; align-items: center; margin-left: 3px;
    color: #8ea6ff; font-size: 11px; vertical-align: middle;
}
.dc-member b.is-team .dc-tip i { font-size: inherit; margin: 0; color: inherit; }

/* Custom Hover am Team-Schild (Wrapper, damit FA ::before nicht überschrieben wird) */
.dc-tip {
    position: relative; cursor: help;
}
.dc-tip::after {
    content: attr(data-tip);
    position: absolute; z-index: 50;
    left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    width: max-content; max-width: 220px;
    padding: 7px 10px; border-radius: 8px;
    background: #0f121a; color: #e8eaef;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
    font: 600 12px/1.35 var(--font-body);
    letter-spacing: 0; text-transform: none;
    white-space: normal; text-align: center;
    pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.dc-tip::before {
    content: '';
    position: absolute; z-index: 51;
    left: 50%; bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #0f121a;
    pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity .15s ease, visibility .15s;
}
.dc-tip:hover::after, .dc-tip:focus-visible::after,
.dc-tip:hover::before, .dc-tip:focus-visible::before {
    opacity: 1; visibility: visible;
}
.dc-tip:hover::after, .dc-tip:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

/* Eingabeleiste */
.up-composer { padding: 3px 4px; align-items: center; }
.up-composer textarea { min-height: 36px; padding: 8px 4px; line-height: 1.4; }
.up-composer-att, .up-composer-send { width: 36px; height: 36px; border-radius: 8px; }
.up-composer-att { font-size: 18px; }
.up-composer-send { font-size: 13px; }
.up-composer:has(.up-composer-files:not([hidden])) { align-items: flex-end; }

/* ── Keine sichtbaren Browser-Scrollleisten im User-Panel (Scrollen funktioniert weiter) ── */
html:has(body.up-body), body.up-body,
.up-body .up-sidebar, .up-body .dc-chat, .up-body .up-chat, .up-body .up-dd-list, .up-body .up-composer textarea, .up-body textarea {
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* alter Edge */
}
html:has(body.up-body)::-webkit-scrollbar, body.up-body::-webkit-scrollbar,
.up-body .up-sidebar::-webkit-scrollbar, .up-body .dc-chat::-webkit-scrollbar, .up-body .up-chat::-webkit-scrollbar,
.up-body .up-dd-list::-webkit-scrollbar, .up-body textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Fallback ohne :has() (ältere Browser) */
html.up-html { scrollbar-width: none; -ms-overflow-style: none; }
html.up-html::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Discord-Ticket-Transcript Detail: volle Content-Breite nutzen */
.up-page:has(.tt-layout) {
    max-width: min(var(--up-ticket-max), 100%);
    padding-left: clamp(14px, 2vw, 22px);
    padding-right: clamp(14px, 2vw, 22px);
}
.up-page:has(.tt-layout) .tt-layout {
    margin-top: 0;
}
/* Support-Embed-.dc-* Styles dürfen das Transcript nicht kaputt machen */
.up-page .tt-layout .dc-panel,
.up-page .tt-layout .dc-panel.is-blue,
.up-page .tt-layout .dc-panel.is-green,
.up-page .tt-layout .dc-panel.is-red,
.up-page .tt-layout .dc-panel.is-violet,
.up-page .tt-layout .dc-panel.is-amber,
.up-page .tt-layout .dc-panel.is-grey {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: var(--r-lg, 16px);
    background: #1a1d26;
    box-shadow: none;
    animation: none;
}
.up-page .tt-layout .dc-msg {
    position: static;
    gap: 0;
    padding: 2px 14px 2px 16px;
}
.up-page .tt-layout .dc-btn {
    cursor: default;
    opacity: .9;
}
.up-page .tt-layout .dc-btn:hover { filter: none; }
.up-page .tt-layout .dc-btn-primary:hover { background: var(--accent, #3b82f6); color: #fff; }
.up-page .tt-layout .dc-btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.up-page .tt-layout .dc-btn-success:hover { background: #248046; color: #fff; }
.up-page .tt-layout .dc-btn-danger:hover { background: #da373c; color: #fff; }
.up-page .tt-layout .dc-btn-link:hover { background: transparent; color: var(--up-accent-2, var(--accent-2)); }

/* ══ Ticket-Vollseite – Layout wie User-Admin (cm-tkpage / dca-chat) ═══════ */
.up-page:has(.dc-ticket) {
    max-width: min(var(--up-ticket-max), 100%);
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    flex: 1;
}
.up-page:has(.dc-ticket) > .up-page-head { display: none; }
.up-mainwrap:has(.dc-ticket) {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}
.up-mainwrap:has(.dc-ticket) .up-page {
    overflow: hidden;
}
.up-mainwrap:has(.dc-ticket) .up-footer { display: none; }

.up-ticket-layout.is-desk,
.up-ticket-layout:has(.dc-ticket) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0;
    grid-template-columns: none;
}
.dc-ticket {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.dc-ticket .dc-channel {
    min-height: 56px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.dc-ticket .dc-channel > .up-btn.is-icon { margin: 0; flex-shrink: 0; }
.dc-chan-ic {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-soft); color: var(--up-accent-2); font-size: 14px;
}
.dc-chan-title { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dc-chan-title > b {
    font-size: 18.5px; font-weight: 700; letter-spacing: -.02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff;
}
.dc-chan-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    font-size: 12.5px; color: var(--ink-3); font-weight: 500;
}
.dc-chan-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.dc-chan-meta i { color: var(--up-accent-2); font-size: 11px; }
.dc-chan-assign { color: #dbe3ff; font-weight: 600; }
.dc-chan-assign.is-free { color: rgba(255,255,255,.45); font-weight: 550; }
.dc-chan-assign.is-free i { color: rgba(255,255,255,.35); }

/* Details-Popover (wie Admin cm-tk-details-menu) */
.dc-details-wrap { position: relative; flex-shrink: 0; margin-left: auto; }
.dc-details-btn {
    height: 34px !important; gap: 7px;
    border-color: rgba(65,105,255,.35) !important; color: #dbe3ff !important;
}
.dc-details-btn:hover, .dc-details-btn.is-on {
    border-color: rgba(65,105,255,.55) !important;
    background: rgba(65,105,255,.12) !important; color: #fff !important;
}
.dc-details-btn.is-on {
    background: rgba(65,105,255,.2) !important; border-color: #4169ff !important;
    box-shadow: 0 0 0 1px rgba(65,105,255,.35);
}
.dc-details-menu {
    position: fixed; z-index: 80;
    width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 560px);
    overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
    padding: 12px; box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    background: #171a24; box-shadow: 0 16px 40px rgba(0,0,0,.5);
    display: flex; flex-direction: column; gap: 12px;
}
.dc-details-menu[hidden] { display: none !important; }
.dc-details-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.dc-details-head strong { font-size: 13.5px; color: #fff; font-weight: 700; }
.dc-details-x {
    width: 28px; height: 28px; border: none; border-radius: 8px;
    background: transparent; color: var(--ink-3); cursor: pointer; font-size: 14px;
}
.dc-details-x:hover { background: rgba(255,255,255,.07); color: #fff; }
.dc-details-menu .up-dl { font-size: 12.5px; gap: 6px 10px; }
.dc-details-menu .dc-member-h {
    margin: 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.dc-details-acts {
    display: flex; flex-direction: column; gap: 8px;
    margin: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
}

/* Chat füllt Restfläche; Nachrichten unten (kein toter Mittelspalt) */
.dc-ticket .dc-chat {
    flex: 1 1 auto; min-height: 160px; height: auto; max-height: none;
    overflow-y: auto; padding: 6px 0 12px;
    display: flex; flex-direction: column;
    background: radial-gradient(1100px 380px at 8% -8%, rgba(65,105,255,.08), transparent 55%);
}
.dc-ticket .dc-chat::before { content: ''; flex: 1 0 0; min-height: 0; pointer-events: none; }
.dc-ticket .dc-msg { padding: 6px 14px; gap: 12px; margin-top: 4px; }
.dc-ticket .dc-msg.is-grouped { margin-top: 0; }
.dc-ticket .dc-av, .dc-ticket .dc-gutter { width: 36px; height: 36px; }
.dc-ticket .dc-gutter { height: auto; }
.dc-ticket .dc-name { font-size: 14px; }
.dc-ticket .dc-text { font-size: 14.5px; margin-top: 2px; line-height: 1.5; }
.dc-ticket .dc-sys {
    display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
    margin: 2px 14px; padding: 3px 8px;
    font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.5);
    border-radius: 6px; background: transparent; border: none;
    border-left: 2px solid rgba(255,255,255,.08);
}
.dc-ticket .dc-sys > i { width: 14px; flex-shrink: 0; text-align: center; font-size: 11px; color: rgba(74,222,128,.75); }
.dc-ticket .dc-sys span { flex: 1; min-width: 0; color: rgba(203,213,225,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ticket .dc-sys time { flex-shrink: 0; font-size: 11px; color: rgba(255,255,255,.32); }
.dc-ticket .dc-panel {
    margin: 6px 14px 8px; padding: 8px 12px; gap: 5px;
    border-radius: 10px; border-top-width: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.dc-ticket .dc-panel-cat { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; }
.dc-ticket .dc-embed-title.is-plain { font-size: 17px; }
.dc-ticket .dc-embed-desc { font-size: 14px; }
.dc-ticket .dc-fields { gap: 4px 12px; }
.dc-ticket .dc-fields.is-form { gap: 6px; padding: 8px 10px; border-radius: 8px; }
.dc-ticket .dc-chan-start { display: none; }

/* Composer am unteren Kartentrand (wie Admin) */
.dc-ticket .dc-input {
    flex-shrink: 0; margin: 0; border-radius: 0;
    border: none; border-top: 1px solid rgba(255,255,255,.1);
    background: #151822; box-shadow: none;
}
.dc-ticket .up-composer-hint {
    flex-shrink: 0; margin: 0; padding: 6px 14px 12px;
    border-top: none; background: #151822;
}
.dc-ticket .up-composer-hint.is-locked {
    margin: 0; padding: 10px 14px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.dc-ticket .dc-input textarea { font-size: 14.5px; }

@media (max-width: 1100px) {
    .up-ticket-layout:has(.dc-ticket),
    .up-ticket-layout.is-desk { grid-template-columns: none; }
    .dc-ticket .dc-chat { min-height: 140px; }
}
@media (max-width: 700px) {
    .dc-chan-ic { display: none; }
    .dc-chan-title > b { font-size: 16.5px; }
    .dc-details-btn span { display: none; }
    .dc-ticket .dc-msg { padding: 5px 10px; gap: 8px; }
    .dc-ticket .dc-av { width: 32px; height: 32px; }
    .dc-ticket .dc-gutter { width: 32px; }
    .dc-ticket .dc-panel { margin-left: 8px; margin-right: 8px; }
    .dc-ticket .dc-sys { margin-left: 8px; margin-right: 8px; flex-wrap: wrap; }
    .dc-ticket .dc-sys span { white-space: normal; }
    .dc-ticket .dc-chat { min-height: 120px; }
    .dc-ticket .dc-input, .dc-ticket .up-composer-hint { margin: 0; }
    .up-mainwrap:has(.dc-ticket) { height: 100dvh; max-height: 100dvh; }
}

/* ══ Streamer-Bereich ═══════════════════════════════════════════════════════ */
.up-btn.is-ok { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); color: #4ade80; }
.up-btn.is-ok:hover { background: rgba(74,222,128,.2); }
.up-btn.is-cyan { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.3); color: #22d3ee; }
.up-btn.is-cyan:hover { background: rgba(34,211,238,.2); }
.up-label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.up-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.up-card-head h2 { margin: 0; }
.up-st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.up-st-full { grid-column: 1 / -1; }
@media (max-width: 800px) { .up-st-grid { grid-template-columns: 1fr; } }
.up-st-steps { display: grid; gap: 8px; text-align: left; margin: 12px auto 0; max-width: 420px; width: 100%; }
.up-st-step { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.up-st-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: rgba(255,255,255,.04); flex-shrink: 0; }
.up-st-step.is-done { color: var(--ink-2); }
.up-st-step.is-done span { background: rgba(74,222,128,.15); color: #4ade80; border-color: rgba(74,222,128,.3); }
.up-st-step.is-active { color: var(--warn); }
.up-st-step.is-active span { background: var(--warn-soft); color: var(--warn); border-color: rgba(251,191,36,.3); }
.up-st-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.up-st-plat { position: relative; display: grid; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.up-st-plat input { position: absolute; opacity: 0; width: 0; height: 0; }
.up-st-plat i.fab { font-size: 22px; }
.up-st-plat b { font-size: 13px; }
.up-st-plat.is-on { border-color: var(--up-accent); background: rgba(65,105,255,.12); }
.up-st-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--up-accent); color: #fff; display: none; place-items: center; font-size: 9px; }
.up-st-plat.is-on .up-st-check { display: grid; }
.up-st-url { margin-bottom: 12px; }
.up-st-url label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.up-st-form .up-btn { margin-top: 8px; }
.up-st-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.up-st-row:last-child { border-bottom: none; }
.up-st-row.is-boxed { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.up-st-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.up-st-ico.is-sm { width: 32px; height: 32px; font-size: 13px; }
.up-st-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.up-st-info b { font-size: 13.5px; }
.up-st-info a, .up-st-info span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-st-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; background: rgba(65,105,255,.14); border: 1px solid rgba(65,105,255,.28); }
.up-st-code code { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: var(--up-accent-2); }
.up-st-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.up-st-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.up-st-stats span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.up-st-stats b { display: block; margin-top: 4px; font-size: 22px; color: var(--up-accent-2); }
.up-st-reward { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22); }
.up-st-reward b { display: block; font-size: 20px; color: #22d3ee; }
.up-st-reward span { font-size: 12px; color: var(--ink-3); }
.up-st-support { padding: 14px; border-radius: 12px; margin-bottom: 14px; background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.18); }
.up-st-support h3 { margin: 0 0 6px; font-size: 13.5px; color: #f87171; display: flex; align-items: center; gap: 8px; }
.up-st-support p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.up-st-flex { display: flex; gap: 8px; align-items: center; }
.up-st-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #f87171; box-shadow: 0 0 6px #f87171; animation: upStPulse 1.4s ease-in-out infinite; display: inline-block; }
@keyframes upStPulse { 50% { transform: scale(1.4); opacity: .45; } }
.up-st-toast { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.up-st-toast[hidden] { display: none !important; }
.up-st-toast.is-ok { color: #4ade80; border-color: rgba(74,222,128,.25); }
.up-st-toast.is-error { color: #f87171; border-color: rgba(248,113,113,.25); }
.up-st-toast.is-warn { color: #fbbf24; border-color: rgba(251,191,36,.25); }

.up-check small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3, var(--ink-2)); }
.up-check b i { margin-right: 6px; color: var(--up-accent-2); }
.up-settings-panel .up-form > .up-check + .up-check { margin-top: 0; }
.up-settings-panel .up-form { gap: 10px; }

.dc-edited { margin-left: 6px; font-size: 11px; color: var(--ink-3, #8b93a7); cursor: default; }

/* ── Eigene Ticket-Nachrichten bearbeiten / löschen ── */
.dc-tmsg { position: relative; }
.dc-acts { position: absolute; top: 2px; right: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.dc-tmsg:hover .dc-acts, .dc-acts:focus-within { opacity: 1; }
@media (hover: none) { .dc-acts { opacity: 1; } }
.dc-actf { margin: 0; display: inline-flex; }
.dc-act { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: rgba(20,24,36,.9); color: #c7cbd8; font-size: 11px; cursor: pointer; }
.dc-act:hover { background: rgba(65,105,255,.2); color: #fff; }
.dc-act.is-danger:hover { background: rgba(248,113,113,.2); color: #f87171; }
.dc-editf { margin-top: 4px; }
.dc-editf[hidden], .dc-text[hidden], .dc-acts[hidden] { display: none !important; }
.dc-editf textarea { width: 100%; resize: vertical; }
.dc-editbtn { display: flex; gap: 8px; margin-top: 6px; }

/* Beim Bearbeiten: Platz am Chat-Ende + Composer abdunkeln, damit Edit-UI nicht kollidiert */
.dc-chat.is-msg-editing {
    scroll-padding-bottom: 48px;
    padding-bottom: 36px;
}
.dc-ticket.is-msg-editing .dc-input,
.dc-ticket.is-msg-editing > .up-composer-hint {
    opacity: .38;
    pointer-events: none;
    transition: opacity .15s;
}

.up-composer-hint.is-locked { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(65,105,255,.35); border-radius: 12px; background: rgba(65,105,255,.08); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
