/* zuhaben.com — Filament Panel Overrides + Reusable Components
 * Loaded via FilamentView::registerRenderHook(STYLES_AFTER) in
 * AppServiceProvider::boot(). Plain CSS, no Tailwind compilation.
 * Applies to both /app and /admin panels.
 *
 * Aufbau:
 *   1) `.dark .fi-*`  — Filament-Chrome-Overrides (nur Dark-Mode)
 *   2) `.zh-*`        — Wiederverwendbare Page-Komponenten
 *                       (Layout unscoped + Light/Dark-Farb-Splits)
 *
 * Selektoren basieren auf Filament v4
 * (vendor/filament/filament/resources/views/components/sidebar/item.blade.php
 *  + resources/css/components/sidebar.css und
 *  vendor/filament/support/resources/css/components/input/wrapper.css).
 */

/* ---------- Alpine x-cloak guard ----------
 * Filaments compiled CSS in vendor enthält die Standard-Regel
 * `[x-cloak] { display: none !important; }` NICHT. Resultat in der
 * Praxis: Elemente mit `x-cloak` sind beim ersten DOM-Aufbau sichtbar,
 * bis Alpine initialisiert hat — unter Firefox + Vite-Dev sichtbar
 * lang genug, dass der User ein leeres Rechteck sieht.
 *
 * Globale Regel hier sorgt dafür, dass `x-cloak` immer greift,
 * unabhängig von der CSS-Lade-Reihenfolge im Dev-Modus.
 */
[x-cloak] {
    display: none !important;
}

/* ---------- Dropdown-Panel rendering ----------
 * Symptom in Firefox + Vite-Dev: Dropdown öffnet sich nur teilweise
 * sichtbar (oberer Rand), Hover über ein Symbol darin ent-verdeckt
 * den Rest. Das deutet auf zwei Probleme:
 *
 * (a) Stacking-Context: Unser Triangle-BG-Partial setzt
 *     `.fi-layout { position: relative; z-index: 1 }`. Das teleportierte
 *     Dropdown landet zwar in <body>, konkurriert aber mit `.fi-layout`
 *     (z-index: 1). Filament-Default 20 reicht in der konkreten
 *     Stacking-Reihenfolge nicht zuverlässig — daher 9999 + eigener
 *     Stacking-Context via `isolation: isolate`.
 *
 * (b) Transition-Delay: Das vendor-CSS hat das Panel mit
 *     `transition-property: ... display, content-visibility, overlay`
 *     ausgestattet. Während der Open-Transition rendert Firefox das
 *     Element vorübergehend mit Default-Stack-Order, der Inline-Style
 *     greift erst nach Transition-Ende. Wir setzen `transition: none`
 *     auf das Panel, sodass Floating-UIs Position + Sichtbarkeit
 *     instant greifen.
 */
.fi-dropdown-panel {
    z-index: 9999 !important;
    isolation: isolate;
    transition: none !important;
}

/* ---------- Sidebar chrome ---------- */

.dark .fi-sidebar {
    background-color: #0C0C0E;
}

/* Hover (nur auf echten Link-Items, nicht auf Group-Containern) */
.dark .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover,
.dark .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
}

/* Active: 10 % orange Fläche + 2 px Inset-Bar links */
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: rgba(249, 115, 22, 0.10);
    box-shadow: inset 2px 0 0 0 #F97316;
}
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: #F97316;
}

/* ---------- Topbar ---------- */

.dark .fi-topbar {
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #27272A;
}

/* ---------- Inputs (TextInput, Textarea, Select-Wrapper) ----------
 * Filament v4 zeichnet Border + Fokus-Ring per `ring-*` (= box-shadow) auf
 * .fi-input-wrp. Wir ersetzen den Ring-Stack per direkter
 * box-shadow-Deklaration; das überschreibt den Filament-Default sauber. */
.dark .fi-input-wrp {
    background-color: rgba(9, 9, 11, 0.7);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transition: background-color 0.15s, box-shadow 0.15s;
}

.dark .fi-input-wrp:hover:not(.fi-disabled):not(:focus-within) {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dark .fi-input-wrp:not(.fi-disabled):focus-within {
    background-color: rgba(9, 9, 11, 0.85);
    box-shadow:
        inset 0 0 0 1px #F97316,
        0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Invalid hat Vorrang vor Fokus, damit ein fehlerhaftes Feld nicht orange leuchtet */
.dark .fi-input-wrp.fi-invalid:focus-within {
    box-shadow:
        inset 0 0 0 1px #ef4444,
        0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Placeholder-Farbe an Vorlage angleichen */
.dark .fi-input::placeholder,
.dark .fi-fo-textarea::placeholder {
    color: #52525b;
}

/* ---------- Buttons: Press-Mikro-Interaktion ----------
 * Farben kommen bereits aus dem konfigurierten `colors([...])`-Array
 * (primary-500=#F97316, primary-600=#EA6610). Hier nur das taktile
 * `translateY(1px)` ergänzen. */
.dark .fi-btn:active:not(.fi-disabled):not([disabled]) {
    transform: translateY(1px);
}

/* ============================================================
 * Wiederverwendbare Page-Komponenten (.zh-*)
 * Basis: docs/stitch/account.html — Cards, Felder, Inputs,
 * Buttons, Strength-Meter, Status-Pill, Danger-Confirm.
 * Verwendung in beliebigen Filament-Custom-Pages.
 *
 * Konvention: Layout/Geometrie bleibt unscoped (gilt in Dark
 * + Light), Farben sind als Base = Light deklariert und werden
 * durch `.dark`-Selektoren überschrieben.
 * ============================================================ */

/* --- Page-Header --- */
.zh-page-title {
    font-size: 1.875rem; font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: #18181B;
}
.dark .zh-page-title { color: #ffffff; }
.zh-page-sub {
    font-size: 0.95rem;
    color: #71717a;
    margin-bottom: 36px;
}

/* --- Card --- */
.zh-card {
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.dark .zh-card {
    background-color: rgba(20, 20, 23, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}
.zh-card-danger { border-color: rgba(239, 68, 68, 0.30); }
.dark .zh-card-danger { border-color: rgba(239, 68, 68, 0.18); }

.zh-card-header {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 22px;
}
.zh-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background-color: rgba(249, 115, 22, 0.10);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #F97316;
}
.zh-card-icon svg { width: 18px; height: 18px; }
.zh-card-icon-danger {
    background-color: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.zh-card-title {
    font-size: 1.05rem; font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #18181B;
}
.dark .zh-card-title { color: #ffffff; }
.zh-card-title-danger { color: #b91c1c; }
.dark .zh-card-title-danger { color: #fca5a5; }
.zh-card-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-top: 4px;
    color: #52525b;
}
.dark .zh-card-desc { color: #71717a; }

/* --- Form layout --- */
.zh-form { display: flex; flex-direction: column; gap: 18px; }
.zh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) {
    .zh-form-row { grid-template-columns: 1fr; }
}
.zh-field { display: flex; flex-direction: column; gap: 7px; }
.zh-field-label {
    font-size: 0.8rem; font-weight: 500;
    color: #3f3f46;
}
.dark .zh-field-label { color: #d4d4d8; }
.zh-field-hint { font-size: 0.75rem; color: #71717a; }
.zh-field-error {
    font-size: 0.78rem;
    margin-top: 2px;
    color: #b91c1c;
}
.dark .zh-field-error { color: #fca5a5; }

/* --- Input wrap (für native <input>; Filament-TextInput nutzt .fi-input-wrp) --- */
.zh-input-wrap { position: relative; }
.zh-input-wrap .zh-input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a1a1aa;
}
.dark .zh-input-wrap .zh-input-icon { color: #52525b; }
.zh-input-wrap .zh-input-icon svg { width: 16px; height: 16px; display: block; }
.zh-input-wrap.zh-with-icon .zh-input { padding-left: 42px; }

/* --- Native input --- */
.zh-input {
    width: 100%;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: #18181B;
}
.dark .zh-input {
    background-color: rgba(9, 9, 11, 0.7);
    border-color: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}
.zh-input:hover { border-color: rgba(0, 0, 0, 0.20); }
.dark .zh-input:hover { border-color: rgba(255, 255, 255, 0.12); }
.zh-input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.dark .zh-input:focus { background-color: rgba(9, 9, 11, 0.85); }
.zh-input::placeholder { color: #a1a1aa; }
.dark .zh-input::placeholder { color: #52525b; }
.zh-input-danger:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Textarea-Variante von .zh-input — passt Padding für Multi-Line an
 * und erlaubt vertikales Resize (Default-Browser-Resize sieht ramponiert
 * aus, aber wir lassen's, weil User es brauchen können). */
textarea.zh-input {
    padding: 12px 14px;
    min-height: 6.5rem;
    resize: vertical;
    line-height: 1.5;
}

/* --- Password reveal-Button --- */
.zh-pwd-toggle {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #71717a;
}
.dark .zh-pwd-toggle { color: #71717a; }
.zh-pwd-toggle:hover {
    color: #18181B;
    background-color: rgba(0, 0, 0, 0.04);
}
.dark .zh-pwd-toggle:hover {
    color: #d4d4d8;
    background-color: rgba(255, 255, 255, 0.05);
}
.zh-pwd-toggle svg { width: 16px; height: 16px; }

/* --- Strength meter --- */
.zh-strength { display: flex; gap: 4px; margin-top: 6px; }
.zh-strength-bar {
    height: 3px; flex: 1;
    border-radius: 2px;
    transition: background-color 0.2s;
    background-color: rgba(0, 0, 0, 0.08);
}
.dark .zh-strength-bar { background-color: rgba(255, 255, 255, 0.06); }
.zh-strength-bar.zh-strength-1 { background-color: #ef4444; }
.zh-strength-bar.zh-strength-2 { background-color: #f59e0b; }
.zh-strength-bar.zh-strength-3 { background-color: #eab308; }
.zh-strength-bar.zh-strength-4 { background-color: #22c55e; }
.zh-strength-label {
    font-size: 0.72rem;
    margin-top: 4px;
    min-height: 1em;
    color: #71717a;
}

/* --- Buttons (.zh-btn) — Press-Animation gilt für alle Varianten --- */
.zh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}
.zh-btn:active:not(:disabled) { transform: translateY(1px); }
.zh-btn svg { width: 15px; height: 15px; }
.zh-btn-primary {
    background-color: #F97316; color: #ffffff;
    box-shadow: 0 8px 24px -8px rgba(249, 115, 22, 0.5);
}
.zh-btn-primary:hover { background-color: #EA6610; }
.zh-btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.10);
    color: #18181B;
}
.dark .zh-btn-secondary {
    background-color: rgba(39, 39, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
}
.zh-btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.16);
}
.dark .zh-btn-secondary:hover {
    background-color: rgba(63, 63, 70, 0.7);
    border-color: rgba(255, 255, 255, 0.14);
}
.zh-btn-outline {
    background: transparent;
    border-color: rgba(249, 115, 22, 0.50);
    color: #F97316;
}
.zh-btn-outline:hover {
    background-color: rgba(249, 115, 22, 0.10);
    border-color: #F97316;
}
.zh-btn-danger { background-color: #dc2626; color: #ffffff; }
.zh-btn-danger:hover:not(:disabled) { background-color: #b91c1c; }
.zh-btn-danger:disabled {
    background-color: rgba(220, 38, 38, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* --- Action-Reihe (Buttons unter Form) --- */
.zh-actions {
    display: flex; gap: 10px; align-items: center;
    margin-top: 6px; flex-wrap: wrap;
}

/* --- Status-Pill (z.B. „Aktuell: …") --- */
.zh-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.78rem; font-weight: 500;
    margin-bottom: 14px;
    background-color: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.30);
    color: #15803d;
}
.dark .zh-pill {
    border-color: rgba(34, 197, 94, 0.20);
    color: #4ade80;
}
.zh-pill .zh-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
}
.zh-pill-warn {
    background-color: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.30);
    color: #b45309;
}
.dark .zh-pill-warn {
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}
.zh-pill-warn .zh-dot { background-color: #f59e0b; }

/* --- Danger-Zone Confirm-Box --- */
.zh-danger-confirm {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin: 18px 0;
    background-color: rgba(239, 68, 68, 0.06);
    border: 1px dashed rgba(239, 68, 68, 0.30);
    color: #b91c1c;
}
.dark .zh-danger-confirm {
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.zh-danger-confirm strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: rgba(239, 68, 68, 0.40);
}
.dark .zh-danger-confirm strong { background-color: rgba(239, 68, 68, 0.20); }

/* --- Mobile --- */
@media (max-width: 900px) {
    .zh-card { padding: 22px 20px; }
}

/* ============================================================
 * T-Shirt-Mockup-Page-Komponenten (eingeführt mit
 * docs/stitch/tshirt.html). Klassen mit allgemeinem Charakter
 * (Code-Pill, Breadcrumbs, Icon-Btn, Section-Label, Specs,
 * Hints, Disclaimer) sind global wiederverwendbar; der Rest
 * (Mockup-Stage, Color-Picker, QR-Row, T-Shirt-Layout) ist
 * Page-spezifisch, aber ohne eigenen Namespace.
 * ============================================================ */

/* --- Code-Pill (Mono, letter-spaced, orange-on-orange-tint) --- */
.zh-code-pill {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.18em;
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: rgba(249, 115, 22, 0.10);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #F97316;
}

/* --- Breadcrumbs --- */
.zh-breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #71717a;
}
.zh-breadcrumbs a { color: inherit; text-decoration: none; }
.zh-breadcrumbs a:hover { color: #18181B; }
.dark .zh-breadcrumbs a:hover { color: #ffffff; }
.zh-breadcrumbs svg { width: 14px; height: 14px; color: #a1a1aa; }
.dark .zh-breadcrumbs svg { color: #3f3f46; }
.zh-breadcrumbs-current { color: #3f3f46; }
.dark .zh-breadcrumbs-current { color: #a1a1aa; }

/* --- Square 36x36 Icon-Button --- */
.zh-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background-color: rgba(0, 0, 0, 0.04);
    color: #52525b;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.dark .zh-icon-btn {
    background-color: rgba(39, 39, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
}
.zh-icon-btn:hover {
    color: #18181B;
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.16);
}
.dark .zh-icon-btn:hover {
    color: #ffffff;
    background-color: rgba(63, 63, 70, 0.7);
    border-color: rgba(255, 255, 255, 0.14);
}
.zh-icon-btn:active { transform: translateY(1px); }
.zh-icon-btn svg { width: 16px; height: 16px; }
.zh-icon-btn.zh-icon-btn-ok { color: #16a34a; border-color: rgba(34, 197, 94, 0.40); }
.dark .zh-icon-btn.zh-icon-btn-ok { color: #22c55e; border-color: rgba(34, 197, 94, 0.40); }

/* --- Section-Eyebrow (Small-caps Card-Label) --- */
.zh-section-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    color: #71717a;
}
.zh-section-label svg { width: 14px; height: 14px; color: #F97316; }

/* --- Spec-Tile-Grid (2x2) --- */
.zh-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 600px) {
    .zh-specs { grid-template-columns: 1fr; }
}
.zh-spec {
    padding: 12px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.dark .zh-spec {
    background-color: rgba(39, 39, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.05);
}
.zh-spec-label {
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.10em;
    margin-bottom: 4px;
    color: #71717a;
}
.zh-spec-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.02em;
    color: #18181B;
}
.dark .zh-spec-value { color: #ffffff; }

/* --- Numbered Hints-Liste mit Amber-Header --- */
.zh-hints { padding: 0 !important; }
.zh-hint-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
}
.zh-hint-header svg { width: 18px; height: 18px; color: #d97706; }
.dark .zh-hint-header svg { color: #f59e0b; }
.zh-hint-header span {
    font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.01em;
    color: #92400e;
}
.dark .zh-hint-header span { color: #fcd34d; }

.zh-hint-list { list-style: none; margin: 0; padding: 0; }
.zh-hint-list li {
    display: flex; gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem; line-height: 1.55;
    color: #3f3f46;
}
.dark .zh-hint-list li {
    border-bottom-color: rgba(255, 255, 255, 0.04);
    color: #d4d4d8;
}
.zh-hint-list li:last-child { border-bottom: none; }
.zh-hint-list li strong {
    color: #18181B;
    font-weight: 700;
}
.dark .zh-hint-list li strong { color: #ffffff; }
.zh-hint-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem; font-weight: 700;
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.30);
    color: #92400e;
}
.dark .zh-hint-num {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.30);
    color: #fcd34d;
}

/* --- Disclaimer (gestrichelt, neutral) --- */
.zh-disclaimer {
    display: flex; gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    font-size: 0.75rem; line-height: 1.55;
    color: #52525b;
}
.dark .zh-disclaimer {
    background-color: rgba(24, 24, 27, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    color: #71717a;
}
.zh-disclaimer svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: #a1a1aa; }
.dark .zh-disclaimer svg { color: #52525b; }

/* --- Mockup-Stage (chequered Frame mit Light-Variante) --- */
.zh-mockup-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 14px),
        #f4f4f5;
}
.dark .zh-mockup-stage {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
        #0a0a0d;
}
.zh-mockup-stage.zh-mockup-stage-light {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0)),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 14px),
        #fafafa;
}
.dark .zh-mockup-stage.zh-mockup-stage-light {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px),
        #1f1f24;
}
.zh-mockup-stage > img {
    width: 100%; height: 100%; object-fit: contain; display: block;
}

/* --- Mockup-Toolbar --- */
.zh-mockup-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 12px 8px 4px;
}
.zh-mockup-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.78rem;
    color: #71717a;
}
.dark .zh-mockup-meta { color: #a1a1aa; }
.zh-mockup-meta-live {
    display: inline-flex; align-items: center; gap: 6px;
}
.zh-mockup-meta-live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* --- Color-Picker --- */
.zh-color-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 600px) {
    .zh-color-options { grid-template-columns: 1fr; }
}
.zh-color-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s;
}
.dark .zh-color-opt {
    background-color: rgba(39, 39, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
}
.zh-color-opt:hover { border-color: rgba(0, 0, 0, 0.16); }
.dark .zh-color-opt:hover { border-color: rgba(255, 255, 255, 0.14); }
.zh-color-opt.zh-color-opt-active {
    background-color: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.50);
}
.zh-color-opt:disabled { opacity: 0.6; cursor: not-allowed; }
.zh-color-swatch {
    width: 28px; height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.dark .zh-color-swatch { border-color: rgba(255, 255, 255, 0.10); }
.zh-color-swatch-black { background-color: #0a0a0a; }
.zh-color-swatch-white { background-color: #f5f5f5; }
.zh-color-text { display: flex; flex-direction: column; }
.zh-color-name { font-size: 0.85rem; font-weight: 600; color: #18181B; }
.dark .zh-color-name { color: #e4e4e7; }
.zh-color-sub { font-size: 0.7rem; color: #71717a; margin-top: 2px; }

/* --- Panel-Note (Info-Block in einer Card) --- */
.zh-panel-note {
    display: flex; gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
    line-height: 1.55;
    color: #52525b;
}
.dark .zh-panel-note {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    color: #a1a1aa;
}
.zh-panel-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: #71717a; }

/* --- QR-Row (Icon + Label/URL + Copy-Btn) --- */
.zh-qr-row { display: flex; align-items: center; gap: 12px; }
.zh-qr-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: #F97316;
}
.zh-qr-icon svg { width: 20px; height: 20px; }
.zh-qr-info { flex: 1; min-width: 0; }
.zh-qr-label {
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 4px;
    color: #71717a;
}
.zh-qr-url {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem; font-weight: 500;
    line-height: 1.45;
    word-break: break-all;
    color: #18181B;
}
.dark .zh-qr-url { color: #ffffff; }

/* --- T-Shirt-Page Layout --- */
.zh-tshirt-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 32px;
}
.zh-tshirt-header-title { display: flex; align-items: center; gap: 12px; }
.zh-tshirt-header-title h1 {
    font-size: 1.75rem; font-weight: 700;
    letter-spacing: -0.02em;
    color: #18181B;
}
.dark .zh-tshirt-header-title h1 { color: #ffffff; }
.zh-tshirt-header-actions { display: flex; gap: 10px; }
@media (max-width: 600px) {
    .zh-tshirt-header { flex-direction: column; align-items: stretch; }
    .zh-tshirt-header-actions { width: 100%; }
    .zh-tshirt-header-actions .zh-btn { flex: 1; justify-content: center; }
}

.zh-tshirt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 1024px) {
    .zh-tshirt-grid { grid-template-columns: 1fr; }
}
.zh-panel-stack { display: flex; flex-direction: column; gap: 20px; }
.zh-panel-stack > .zh-card { margin-bottom: 0; }

/* Topbar: Code-Lookup mittig zwischen Brand und User-Menu.
   .fi-topbar ist display:flex; .fi-topbar-end nutzt margin-left:auto, was
   alles vor sich nach links und alles nach sich nach rechts zieht. Wir hooken
   den Code-Lookup via TOPBAR_START (rendert als erstes flex-Kind), geben
   ihm flex:1 + order:1, und zwingen .fi-topbar-end auf order:2 — so landet
   das User-Menu rechts vom zentrierten Code-Lookup. */
.zh-topbar-lookup {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    min-width: 0;
}
.fi-topbar > .fi-topbar-end {
    order: 2;
}

/* ---------- Help-Card (Info-Block für Form-Sections) ----------
 * Kompakte Orange-getönte Info-Card mit Bullet-Liste — wiederverwendbar
 * über alle Filament-Forms, in beiden Color-Schemes. Greift in Placeholder-
 * Components via new HtmlString('<div class="zh-help-card">…</div>').
 */
.zh-help-card {
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #d4d4d8;
    font-size: 0.875rem;
    line-height: 1.5;
}
.zh-help-card strong.zh-help-title {
    display: block;
    color: #fafafa;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.zh-help-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.zh-help-card li {
    margin-bottom: 0.2rem;
}
.zh-help-card li:last-child {
    margin-bottom: 0;
}
.zh-help-card li code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0 0.3em;
    border-radius: 0.2rem;
    font-size: 0.8em;
}
/* Light-Mode (nicht-`.dark`-Scope): dezenter Hintergrund, dunklerer Text */
:root:not(.dark) .zh-help-card {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.20);
    color: #3f3f46;
}
:root:not(.dark) .zh-help-card strong.zh-help-title {
    color: #18181b;
}

/* ---------- Filter-Tabs (ListRecords-Tabs above tables) ----------
 * Standard: dezenter transparenter Border (verhindert Layout-Sprünge beim
 * Wechsel auf orangen Border).
 * Hover (inaktiv) + Active: 1 px Brand-Orange-Border. Active zusätzlich mit
 * leichtem Orange-Tint im Hintergrund, damit der Default-Zustand visuell
 * vom Hover-Zustand unterscheidbar bleibt.
 *
 * Selektor `.fi-tabs-item` greift in beiden Panels (App + Admin) und beiden
 * Color-Schemes (Light + Dark), weil die Tab-Komponente identische Markup-
 * Klassen rendert (vendor/filament/support/.../tabs/item.blade.php).
 */
.fi-tabs-item {
    border: 1px solid transparent;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.fi-tabs-item:hover,
.fi-tabs-item:focus-visible {
    border-color: #F97316;
    outline: none;
}
.fi-tabs-item.fi-active {
    border-color: #F97316;
    background-color: rgba(249, 115, 22, 0.10);
}
