/* ============================================
   ThinkLab — Branding & Base Styles
   Navy #1a2b4a, Orange #f5a623
   ============================================ */

:root {
    --tl-navy: #1a2b4a;
    --tl-navy-light: #243656;
    --tl-navy-dark: #111d33;
    --tl-orange: #f5a623;
    --tl-orange-hover: #e6951a;
    --tl-orange-light: #ffd080;
    --tl-white: #ffffff;
    --tl-gray-100: #f8f9fa;
    --tl-gray-200: #e9ecef;
    --tl-transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--tl-navy);
    color: var(--tl-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   STATION PAGE — Tablet Input UI
   ============================================ */

.tl-station {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--tl-navy-dark) 0%, var(--tl-navy) 50%, var(--tl-navy-light) 100%);
}

.tl-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}
.tl-header-logo {
    display: block;
    width: 140px;
    max-width: 50vw;
    height: auto;
    margin: 0 auto 0.5rem;
    opacity: 0.95;
}
.tl-header-text-fallback { margin: 0 auto; }

.tl-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.tl-header h1 span {
    color: var(--tl-orange);
}

.tl-header p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 0.5rem 0 0;
}

.tl-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.tl-steps .tl-step-panel { text-align: center; }
.tl-steps .tl-card-grid {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.tl-steps .tl-step-actions { justify-content: center; }
.tl-steps .tl-keyword-input,
.tl-steps .tl-final-fields,
.tl-steps .tl-result-image-wrap,
.tl-steps .tl-result-qr-row { margin-left: auto; margin-right: auto; }

/* ============================================
   BREADCRUMB (Auswahluebersicht)
   ============================================ */

.tl-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 auto 1rem;
    max-width: 1100px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.tl-bc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--tl-transition);
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-bc-item.filled {
    background: rgba(245, 166, 35, 0.2);
    color: var(--tl-orange);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.tl-bc-icon {
    font-size: 1.1rem;
}

.tl-bc-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .tl-breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .tl-bc-item {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
        max-width: 140px;
    }
}

/* ============================================
   RESULT SCREEN (Station)
   ============================================ */

.tl-result-panel {
    text-align: center;
}

.tl-result-breadcrumb {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tl-orange);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    word-break: break-word;
}

.tl-result-image-wrap {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(245, 166, 35, 0.15);
}

.tl-result-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.tl-result-prompt {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.tl-result-prompt summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--tl-orange);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.tl-result-prompt summary::-webkit-details-marker { display: none; }

.tl-result-prompt[open] summary {
    margin-bottom: 0.75rem;
}

.tl-result-prompt-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.tl-result-prompt-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tl-result-prompt-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tl-result-prompt-text {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}

/* Textarea variant */
.tl-keyword-textarea {
    min-height: 120px;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    resize: vertical;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.tl-char-counter {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* Step indicator */
.tl-step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tl-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: var(--tl-transition);
}

.tl-step-dot.active {
    background: var(--tl-orange);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.tl-step-dot.done {
    background: var(--tl-orange-light);
}

/* Step panels */
.tl-step-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tl-step-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tl-step-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Selection cards — mobile first: 2 columns, tablet+ override below */
.tl-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .tl-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.tl-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--tl-transition);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 600px) {
    .tl-card {
        padding: 1.5rem;
    }
}

/* Hover effect only on devices that actually have hover — on touch it sticks
   to the last tapped card and falsely looks like a pre-selection. */
@media (hover: hover) {
    .tl-card:hover {
        border-color: var(--tl-orange);
        background: rgba(245, 166, 35, 0.1);
        transform: translateY(-2px);
    }
}

.tl-card.selected {
    border-color: var(--tl-orange);
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* Auto-advance pulse */
.tl-card.pulse {
    animation: cardPulse 0.8s ease-out;
    pointer-events: none;
}

@keyframes cardPulse {
    0%   { transform: scale(1); box-shadow: 0 0 20px rgba(245, 166, 35, 0.2); }
    40%  { transform: scale(1.06); box-shadow: 0 0 40px rgba(245, 166, 35, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 166, 35, 0.2); }
}

.tl-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tl-card-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.tl-card-desc {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* Focus chips — Step 4 inspiration row. Horizontally scrollable on mobile so
   long chip rows don't wrap below the textarea. */
.tl-focus-chips-label {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: left;
    margin: 0.25rem 0 0.4rem;
}
.tl-focus-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.tl-focus-chips::-webkit-scrollbar { height: 4px; }
.tl-focus-chips::-webkit-scrollbar-thumb {
    background: rgba(245, 166, 35, 0.3);
    border-radius: 2px;
}
.tl-focus-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--tl-transition);
}
@media (hover: hover) {
    .tl-focus-chip:hover {
        border-color: rgba(245, 166, 35, 0.5);
        color: var(--tl-orange);
    }
}
.tl-focus-chip.active {
    background: rgba(245, 166, 35, 0.18);
    border-color: var(--tl-orange);
    color: var(--tl-orange);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}
.tl-focus-chip-icon { font-size: 1rem; }

/* Keyword input */
.tl-keyword-input {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    color: var(--tl-white);
    width: 100%;
    text-align: center;
    transition: var(--tl-transition);
}

.tl-keyword-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.tl-keyword-input:focus {
    outline: none;
    border-color: var(--tl-orange);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
}

/* Buttons */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--tl-transition);
    text-decoration: none;
}

.tl-btn-primary {
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
}

.tl-btn-primary:hover {
    background: var(--tl-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}

.tl-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tl-btn-secondary {
    background: transparent;
    color: var(--tl-white);
    border: 2px solid rgba(255,255,255,0.2);
}

.tl-btn-secondary:hover {
    border-color: rgba(255,255,255,0.4);
}

.tl-step-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Loading overlay */
.tl-loading {
    position: fixed;
    inset: 0;
    background: rgba(17, 29, 51, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tl-loading.active {
    display: flex;
}

.tl-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--tl-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tl-loading-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.8;
}

.tl-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tl-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-success-emoji {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: bounceEmoji 0.8s ease-in-out;
}

.tl-success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tl-orange);
    margin-bottom: 0.5rem;
}

.tl-success-sub {
    font-size: 1.2rem;
    opacity: 0.75;
}

@keyframes successPop {
    0%   { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-20px) rotate(-10deg); }
    60%      { transform: translateY(-10px) rotate(10deg); }
}

/* ============================================
   DISPLAY PAGE — Fullscreen Output
   ============================================ */

.tl-display {
    min-height: 100vh;
    background: linear-gradient(180deg, #000 0%, var(--tl-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tl-display-waiting {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.tl-display-waiting i {
    font-size: 4rem;
    color: var(--tl-orange);
    display: block;
    margin-bottom: 1rem;
}

.tl-display-waiting p {
    font-size: 1.5rem;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

.tl-display-generating {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.tl-display-generating.active {
    display: flex;
}

.tl-display-generating .tl-spinner {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.tl-display-generating p {
    font-size: 1.8rem;
    color: var(--tl-orange);
    font-weight: 700;
}

/* === Result: image + info layout === */

.tl-display-result {
    display: none;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tl-display-result.active {
    display: flex;
    opacity: 1;
}

.tl-display-image {
    flex: 1 1 60%;
    max-width: 65vw;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(245, 166, 35, 0.15);
}

/* === Info box === */

.tl-info-box {
    flex: 1 1 35%;
    max-width: 35vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 43, 74, 0.85);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.tl-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tl-info-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--tl-orange);
    border-radius: 8px;
}

.tl-info-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tl-orange);
    margin-bottom: 0.35rem;
}

.tl-info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tl-white);
    word-break: break-word;
    line-height: 1.3;
}

.tl-info-prompt {
    padding: 1.25rem 1.5rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 12px;
}

.tl-info-prompt + .tl-info-prompt-optimized {
    margin-top: 0.75rem;
}

.tl-info-prompt .tl-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.tl-info-prompt-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Segoe UI', system-ui, sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   FRIENDLY ERROR TOAST (Station)
   ============================================ */

.tl-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 3000;
    max-width: 500px;
    width: calc(100% - 2rem);
    padding: 1.1rem 2.5rem 1.1rem 1.25rem;
    border-radius: 14px;
    background: var(--tl-navy);
    border: 1px solid rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* transform sliding pairs with visibility: a short empty toast only shifts
       by 150% of its own (tiny) height — not enough to leave the viewport —
       so an additional visibility flip is required to keep it hidden when
       no error is active. visibility flips instantly when opening and is
       delayed by the transform-duration when closing so the slide-out
       animation plays out fully before the element disappears. */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s 0.4s,
                pointer-events 0s 0.4s;
    color: var(--tl-white);
}

.tl-toast.open {
    transform: translate(-50%, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s 0s,
                pointer-events 0s 0s;
}

.tl-toast.kind-warning {
    border-color: rgba(245, 166, 35, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(122, 82, 17, 0.4) 100%);
}
.tl-toast.kind-info {
    border-color: rgba(95, 165, 245, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(17, 65, 122, 0.4) 100%);
}
.tl-toast.kind-error {
    border-color: rgba(220, 53, 69, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(122, 17, 27, 0.4) 100%);
}

.tl-toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--tl-orange);
}

.tl-toast-body {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

.tl-toast-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--tl-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.tl-toast-close:hover { opacity: 1; }

/* Slideshow badge */
.tl-slideshow-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 50px;
    color: var(--tl-orange);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 20;
    pointer-events: none;
}

.tl-slideshow-badge.visible {
    opacity: 1;
}

/* ============================================
   AUTH (Login)
   ============================================ */

.tl-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--tl-navy-dark) 0%, var(--tl-navy) 100%);
}

.tl-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tl-auth-logo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tl-auth-logo span {
    color: var(--tl-orange);
}

.tl-auth-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.tl-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tl-auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tl-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-auth-field input {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--tl-white);
    font-size: 1rem;
    transition: var(--tl-transition);
}

.tl-auth-field input:focus {
    outline: none;
    border-color: var(--tl-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.tl-auth-submit {
    margin-top: 0.5rem;
    width: 100%;
}

.tl-auth-error {
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    color: #ff8a95;
    font-size: 0.9rem;
}

/* Onboarding extras (registration, password-reset, confirmation pages). */
.tl-auth-text {
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

/* Checkbox rows (privacy / newsletter) override the stacked field layout. */
.tl-auth-check label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--tl-white);
    opacity: 0.85;
    cursor: pointer;
}

.tl-auth-check input {
    width: auto;
    margin-top: 0.15rem;
    padding: 0;
    accent-color: var(--tl-orange);
}

.tl-auth-check a {
    color: var(--tl-orange);
    text-decoration: underline;
}

.tl-auth-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tl-auth-foot a {
    color: var(--tl-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Mein Bereich (personal area) sections. */
.tl-mb-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-mb-h {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin: 0 0 0.75rem;
}

.tl-mb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
}

.tl-mb-link {
    color: var(--tl-orange);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   ADMIN
   ============================================ */

.tl-admin {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--tl-navy-dark);
}

.tl-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-admin-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.tl-admin-header h1 span {
    color: var(--tl-orange);
}

.tl-admin-sub {
    opacity: 0.6;
    margin: 0.25rem 0 0;
}

.tl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-stat-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--tl-orange);
    border-radius: 12px;
}

.tl-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-bottom: 0.5rem;
}

.tl-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.tl-stat-value-sm {
    font-size: 1.3rem;
    font-weight: 700;
}

.tl-stat-count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    background: rgba(245, 166, 35, 0.25);
    color: var(--tl-orange);
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Table */
.tl-table-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: auto;
    max-height: 70vh;
}

.tl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.tl-table thead th {
    position: sticky;
    top: 0;
    background: var(--tl-navy);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    border-bottom: 2px solid rgba(245, 166, 35, 0.3);
    z-index: 2;
}

.tl-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.tl-table tbody tr:hover {
    background: rgba(245, 166, 35, 0.05);
}

.tl-col-time {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.85rem;
}

.tl-col-keyword,
.tl-col-prompt {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.tl-col-actions {
    text-align: center;
    width: 60px;
}

.tl-tag {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    background: rgba(245, 166, 35, 0.15);
    color: var(--tl-orange);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tl-btn-icon {
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--tl-orange);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--tl-transition);
}

.tl-btn-icon:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--tl-orange);
}

.tl-empty {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SHOWROOM
   ============================================ */

.tl-showroom {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--tl-navy-dark);
}

.tl-showroom-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tl-showroom-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.tl-showroom-header h1 span {
    color: var(--tl-orange);
}

.tl-showroom-header p {
    opacity: 0.6;
    margin: 0.5rem 0 0;
}

.tl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.tl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
}

.tl-filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
}

.tl-filter-group select {
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--tl-white);
    font-size: 0.95rem;
}

.tl-showroom-meta {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.tl-showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-showroom-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--tl-transition);
}

.tl-showroom-card:hover {
    transform: translateY(-3px);
    border-color: var(--tl-orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tl-showroom-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.tl-showroom-card-meta {
    padding: 0.75rem 1rem;
}

.tl-showroom-topic {
    font-weight: 700;
    color: var(--tl-orange);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.tl-showroom-idea {
    font-size: 0.85rem;
    opacity: 0.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-showroom-empty {
    text-align: center;
    padding: 4rem;
    opacity: 0.5;
}

/* === Bild des Abends === */
.tl-showroom-topimage {
    position: relative;
    max-width: 720px;
    margin: 0 auto 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(245, 166, 35, 0.5);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.25), 0 20px 60px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.tl-showroom-topimage:hover { transform: translateY(-2px); }
.tl-showroom-topimage img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}
.tl-showroom-topimage-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(245, 166, 35, 0.95);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.tl-showroom-topimage-meta {
    padding: 1rem 1.25rem;
    text-align: center;
}
.tl-showroom-topimage-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tl-orange);
    margin-bottom: 0.25rem;
}
.tl-showroom-topimage-votes {
    font-size: 1rem;
    opacity: 0.85;
}

/* === Vote button on card === */
.tl-showroom-card { position: relative; }
.tl-vote-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tl-white);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.tl-vote-btn:hover:not(:disabled) {
    transform: scale(1.05);
    border-color: rgba(245, 166, 35, 0.6);
}
.tl-vote-btn:disabled { cursor: default; }
.tl-vote-btn.voted {
    background: rgba(245, 166, 35, 0.2);
    border-color: rgba(245, 166, 35, 0.6);
    color: var(--tl-orange);
}
.tl-vote-heart { font-size: 1.05rem; }
.tl-vote-count { font-variant-numeric: tabular-nums; }

/* Share button — same visual family as the vote pill, sits just beside it. */
.tl-share-btn {
    position: absolute;
    top: 0.6rem;
    right: 4.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--tl-white);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.tl-share-btn:hover {
    transform: scale(1.05);
    border-color: rgba(245, 166, 35, 0.6);
    color: var(--tl-orange);
}
.tl-share-btn-top {
    top: 1rem;
    right: 1rem;
}

/* Share toast — bottom-centered, dark theme, auto-hides. */
.tl-share-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 1rem);
    background: rgba(15, 15, 30, 0.95);
    color: var(--tl-white);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}
.tl-share-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* === Admin sort pills + votes column === */
.tl-table-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    flex-wrap: wrap;
}
.tl-table-sort-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-right: 0.25rem;
}
.tl-col-votes {
    text-align: center;
    font-weight: 700;
    color: var(--tl-orange);
    font-variant-numeric: tabular-nums;
}

.tl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.tl-pagination-info {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */

.tl-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.tl-modal.open {
    display: flex;
}

.tl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.tl-modal-content {
    position: relative;
    z-index: 1;
    background: var(--tl-navy);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-modal-content-lg {
    width: 900px;
}

.tl-modal-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    align-self: center;
}

.tl-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--tl-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--tl-transition);
}

.tl-modal-close:hover {
    opacity: 1;
    color: var(--tl-orange);
}

.tl-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.tl-modal-info strong {
    color: var(--tl-orange);
    font-weight: 700;
    margin-right: 0.5rem;
}

.tl-modal-prompt {
    grid-column: 1 / -1;
    padding: 1rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    /* Long prompts must wrap — no truncation, allow internal scroll if huge. */
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 40vh;
    overflow-y: auto;
    min-width: 0;
}

/* The inline <span> children carrying the prompt text must also wrap as block. */
.tl-modal-prompt span {
    display: inline-block;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tl-modal-prompt-raw {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.tl-modal-prompt-raw strong {
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive: stack vertically on portrait or narrow screens */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .tl-display-result {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        height: auto;
        min-height: 100vh;
    }

    .tl-display-image {
        max-width: 100%;
        max-height: 55vh;
        flex: 0 0 auto;
    }

    .tl-info-box {
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        padding: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .tl-header h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .tl-header h1 {
        font-size: 2rem;
    }

    .tl-card-icon {
        font-size: 2rem;
    }
}

/* ============================================
   LANDING PAGE
   ============================================ */

.tl-landing {
    background: var(--tl-navy-dark);
    color: var(--tl-white);
    min-height: 100vh;
}

/* Hero */
.tl-hero {
    position: relative;
    min-height: min(72vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(245, 166, 35, 0.06), transparent 70%);
}

.tl-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--tl-navy-dark);
    transform: scale(1.05);
}

.tl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 29, 51, 0.55) 0%,
        rgba(26, 43, 74, 0.80) 60%,
        rgba(17, 29, 51, 0.95) 100%
    );
}

.tl-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    max-width: 900px;
}

.tl-hero-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tl-hero-logo span {
    color: var(--tl-orange);
}

.tl-hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.tl-hero-subline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.tl-hero-cta {
    font-size: 1.2rem;
    padding: 1.1rem 2.8rem;
    box-shadow: 0 10px 40px rgba(245, 166, 35, 0.35);
}

.tl-hero-event {
    margin-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Sections */
.tl-section {
    padding: 5rem 2rem;
}

.tl-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tl-section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* How it works */
.tl-how {
    background: var(--tl-navy);
}

.tl-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tl-how-step {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--tl-orange);
    border-radius: 16px;
    text-align: center;
    transition: var(--tl-transition);
}

.tl-how-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tl-how-step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.tl-how-step-icon {
    font-size: 2.5rem;
    color: var(--tl-orange);
    margin-bottom: 1rem;
}

.tl-how-step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tl-how-step p {
    opacity: 0.75;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Links section */
.tl-links {
    background: var(--tl-navy-dark);
}

.tl-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tl-link-card {
    display: block;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--tl-white);
    transition: var(--tl-transition);
}

.tl-link-card:hover {
    border-color: var(--tl-orange);
    background: rgba(245, 166, 35, 0.08);
    transform: translateY(-3px);
    color: var(--tl-white);
}

.tl-link-card i {
    font-size: 3rem;
    color: var(--tl-orange);
    display: block;
    margin-bottom: 1rem;
}

.tl-link-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tl-link-card p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin: 0;
}

/* Footer */
.tl-footer {
    background: #0a1020;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tl-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.tl-footer-brand {
    font-weight: 700;
    color: var(--tl-orange);
    letter-spacing: 0.05em;
}

.tl-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tl-footer-partners a,
.tl-footer-partners .tl-footer-sep {
    white-space: nowrap;
}

.tl-footer-sep {
    opacity: 0.4;
}

/* Referenz-Events (Landing only) */
.tl-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tl-ref-card {
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.tl-ref-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.tl-ref-card-place {
    font-size: 0.9rem;
    opacity: 0.65;
}

@media (max-width: 640px) {
    .tl-section { padding: 3rem 1rem; }
    .tl-section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .tl-hero-content { padding: 3rem 1.25rem; }
    .tl-footer-inner { justify-content: center; text-align: center; }
}

/* ============================================
   PHASE-G ADDITIONS
   ============================================ */

.tl-session-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}
.tl-session-info strong { color: var(--tl-orange); }
.tl-session-admin {
    color: var(--tl-orange);
    font-weight: 600;
    opacity: 0.85 !important;
}
.tl-session-admin i { margin-right: 0.3rem; }

.tl-subtle { opacity: 0.5; font-size: 0.8rem; }

/* PIN input */
.tl-pin-input {
    text-align: center;
    font-size: 2rem !important;
    letter-spacing: 1rem !important;
    padding: 1rem 0 !important;
    font-family: 'Consolas', monospace !important;
}

/* Station particles canvas */
.tl-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.tl-loading-content,
.tl-success-content { position: relative; z-index: 1; }

/* Result: salute + title + story */
.tl-result-salute {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.tl-result-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--tl-orange);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}
.tl-result-story {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Result QR + actions */
.tl-result-qr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.tl-result-qr {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.tl-result-qr img { display: block; width: 140px; height: 140px; margin: 0 auto; }
.tl-result-qr-label {
    color: var(--tl-navy-dark);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tl-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

/* Admin: PIN config */
.tl-pin-config {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--tl-orange);
    border-radius: 10px;
}
.tl-pin-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.tl-pin-info { flex: 1; min-width: 200px; }
.tl-pin-label {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--tl-orange); margin-bottom: 0.2rem;
}
.tl-pin-status { font-size: 0.95rem; }
.tl-pin-off { opacity: 0.5; }
.tl-pin-on code {
    background: rgba(245,166,35,0.2); color: var(--tl-orange);
    padding: 0.15rem 0.6rem; border-radius: 6px; font-weight: 700;
    letter-spacing: 0.2em;
}
.tl-pin-input-sm {
    width: 130px; padding: 0.55rem 0.75rem;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: var(--tl-white); font-family: 'Consolas', monospace;
    text-align: center; letter-spacing: 0.4em;
}
.tl-pin-msg {
    margin-top: 0.75rem; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.9rem;
}
.tl-pin-err { background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.4); color: #ff8a95; }
.tl-pin-ok  { background: rgba(40,167,69,0.15);  border: 1px solid rgba(40,167,69,0.4);  color: #7de895; }

/* Admin: extra columns */
.tl-col-title, .tl-col-story {
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Display: image stage with Ken Burns */
.tl-display-image-stage {
    flex: 1 1 60%;
    max-width: 65vw;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(245, 166, 35, 0.15);
    position: relative;
}
.tl-display-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Reveal animation */
.tl-display-result.active .tl-display-image { opacity: 1; transform: scale(1); }
.tl-display-result.revealing .tl-display-image { animation: kenBurns 20s ease-in-out infinite alternate; }

@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* Display side: salute/title/story */
.tl-display-side {
    flex: 1 1 35%;
    max-width: 35vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: rgba(26, 43, 74, 0.85);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
.tl-display-result.active .tl-display-side { opacity: 1; transform: translateY(0); }

.tl-display-salute {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    letter-spacing: 0.03em;
}
.tl-display-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--tl-orange);
    margin: 0;
    line-height: 1.15;
}
.tl-display-story {
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.tl-display-qr {
    margin-top: auto;
    align-self: flex-end;
    padding: 0.65rem;
    background: white;
    border-radius: 10px;
    text-align: center;
}
.tl-display-qr img { display: block; width: 110px; height: 110px; }
.tl-display-qr-label {
    color: var(--tl-navy-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Responsive display */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .tl-display-result {
        flex-direction: column;
        padding: 1rem;
        height: auto;
        min-height: 100vh;
    }
    .tl-display-image-stage { max-width: 100%; max-height: 55vh; flex: 0 0 auto; }
    .tl-display-side { max-width: 100%; min-width: 0; flex: 0 0 auto; padding: 1.25rem; }
    .tl-display-qr { align-self: center; }
}

/* ============================================
   BATCH-UPDATE ADDITIONS
   ============================================ */

/* Display name emphasis */
.tl-display-salute .tl-display-name {
    color: var(--tl-orange);
    font-weight: 900;
    font-size: 1.15em;
}
.tl-display-salute.has-name {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--tl-white);
    margin-bottom: 0.5rem;
}

/* Display branding bottom-left */
.tl-display-brand {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    z-index: 15;
    opacity: 0.7;
    pointer-events: none;
}
.tl-display-brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tl-white);
    letter-spacing: 0.04em;
}
/* Legacy rule kept for old Think<span>Lab</span> pattern only — scoped down so it
   does NOT hit the new .tl-brand-think / .tl-brand-lab spans. */
.tl-display-brand-text > span:only-child { color: var(--tl-orange); }
.tl-display-brand-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-top: -0.1rem;
}

/* Display contact QR (bottom-right, smaller than main) */
.tl-display-contact-qr {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    z-index: 15;
    padding: 0.35rem;
    background: white;
    border-radius: 6px;
    text-align: center;
}
.tl-display-contact-qr img { display: block; width: 60px; height: 60px; }
.tl-display-contact-qr-label {
    color: var(--tl-navy-dark);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* Live stats widget */
.tl-stats-live {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}
.tl-stats-live-item { display: flex; align-items: center; gap: 0.4rem; }
.tl-stats-live-item i { color: var(--tl-orange); }
.tl-stats-live-item strong { color: var(--tl-orange); font-weight: 800; }

/* Display variant: discreet at bottom-center */
.tl-stats-live-display {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    opacity: 0.6;
    pointer-events: none;
    margin-top: 0;
}

/* Showroom pills */
.tl-pills {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tl-pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.tl-pill-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-right: 0.5rem;
    min-width: 60px;
}
.tl-pill {
    padding: 0.35rem 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--tl-transition);
}
.tl-pill:hover {
    background: rgba(255,255,255,0.08);
    color: var(--tl-white);
}
.tl-pill.active {
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
    border-color: var(--tl-orange);
    font-weight: 700;
}

/* Showroom sub + spotlight + new badge + highlight */
.tl-showroom-sub {
    opacity: 0.55;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    letter-spacing: 0.03em;
}
.tl-showroom-spotlight {
    grid-column: span 2;
    grid-row: span 2;
    border: 2px solid var(--tl-orange) !important;
    box-shadow: 0 8px 30px rgba(245,166,35,0.25);
}
.tl-showroom-spotlight img {
    aspect-ratio: 1 / 1;
}
.tl-showroom-newbadge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    z-index: 5;
    animation: pulseNew 2s ease-in-out infinite;
}
@keyframes pulseNew {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,166,35,0.6); }
    50%      { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(245,166,35,0); }
}
.tl-showroom-highlighted {
    outline: 3px solid var(--tl-orange);
    outline-offset: 3px;
}

/* Showroom modal actions */
.tl-modal-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.tl-share-feedback {
    grid-column: 1 / -1;
    min-height: 1.3em;
    font-size: 0.85rem;
    color: var(--tl-orange);
    word-break: break-all;
}

/* Public footer */
.tl-public-footer {
    padding: 1.5rem 1rem;
    background: #0a1020;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.tl-public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.tl-public-footer a { color: var(--tl-orange); text-decoration: none; }
.tl-public-footer a:hover { text-decoration: underline; }
.tl-public-footer .tl-sep { opacity: 0.35; }

/* Cookie banner */
.tl-cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2500;
    background: var(--tl-navy);
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.tl-cookie-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.tl-cookie-banner-inner i { color: var(--tl-orange); font-size: 1.3rem; }
.tl-cookie-banner a { color: var(--tl-orange); }
.tl-cookie-btn {
    margin-left: auto;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.9rem !important;
}

/* Legal pages */
.tl-legal {
    min-height: 100vh;
    padding: 3rem 1.5rem;
    background: var(--tl-navy-dark);
    color: var(--tl-white);
}
.tl-legal-inner {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
.tl-legal h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--tl-orange);
}
.tl-legal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--tl-white);
}
.tl-legal p, .tl-legal ul { opacity: 0.85; }
.tl-legal ul { padding-left: 1.25rem; }
.tl-legal li { margin-bottom: 0.35rem; }
.tl-legal a { color: var(--tl-orange); }
.tl-legal-back { margin-top: 3rem; }

/* ============================================
   HOTFIX BATCH: Display + Station result polish
   ============================================ */

/* Side-panel: less dominant — smaller, more transparent, less padding */
.tl-display-side {
    padding: 1.25rem 1.5rem !important;
    background: rgba(26, 43, 74, 0.6) !important;
    gap: 0.75rem !important;
}

/* Info-grid on display: smaller and more muted */
.tl-display-side .tl-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    opacity: 0.85;
}
.tl-display-side .tl-info-item {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}
.tl-display-side .tl-info-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}
.tl-display-side .tl-info-value {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Display salute better hierarchy */
.tl-display-salute {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 700 !important;
    color: var(--tl-white) !important;
    letter-spacing: 0.01em;
    margin: 0 !important;
    line-height: 1.2;
}
.tl-display-salute .tl-display-name {
    color: var(--tl-orange);
    font-weight: 900;
    font-size: 1em;
}

/* Display branding — bigger and more visible */
.tl-display-brand {
    opacity: 0.85 !important;
    bottom: 1.25rem !important;
    left: 1.5rem !important;
}
.tl-display-brand-text {
    font-size: 1.45rem !important;
}
.tl-display-brand-text small {
    font-size: 0.85rem !important;
    margin-top: 0.1rem !important;
    opacity: 0.8 !important;
}

/* Station result salute — bigger and orange */
.tl-result-salute {
    font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
    font-weight: 800 !important;
    color: var(--tl-orange) !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
}

/* ============================================
   KONTAKT (Lead-Gen page)
   ============================================ */

.tl-kontakt {
    background: var(--tl-navy-dark);
    color: var(--tl-white);
    min-height: 100vh;
}

.tl-kontakt-hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--tl-navy-dark) 0%, var(--tl-navy) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tl-kontakt-hero-inner { max-width: 780px; margin: 0 auto; }

.tl-kontakt-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-bottom: 1rem;
}
.tl-kontakt-brand span { color: var(--tl-orange); }

.tl-kontakt-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.tl-kontakt-lead {
    font-size: 1.15rem;
    line-height: 1.55;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.tl-kontakt-cta {
    font-size: 1.15rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px rgba(245,166,35,0.3);
}

.tl-kontakt-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tl-kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tl-kontakt-card {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid var(--tl-orange);
    border-radius: 14px;
}
.tl-kontakt-icon { font-size: 2.5rem; color: var(--tl-orange); margin-bottom: 0.75rem; }
.tl-kontakt-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.tl-kontakt-card p { opacity: 0.8; line-height: 1.5; font-size: 0.95rem; }

/* Form section */
.tl-kontakt-form-section {
    background: var(--tl-navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tl-kontakt-form-wrap { max-width: 640px; margin: 0 auto; }
.tl-kontakt-form-wrap h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}
.tl-kontakt-form-intro {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.tl-kontakt-form { display: flex; flex-direction: column; gap: 1rem; }
.tl-kontakt-field { display: flex; flex-direction: column; gap: 0.3rem; }
.tl-kontakt-field label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
}
.tl-kontakt-field input,
.tl-kontakt-field textarea {
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--tl-white);
    font-size: 1rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    resize: vertical;
}
.tl-kontakt-field input:focus,
.tl-kontakt-field textarea:focus {
    outline: none;
    border-color: var(--tl-orange);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.tl-kontakt-error {
    color: #ff8a95;
    font-size: 0.85rem;
    min-height: 1em;
}
.tl-kontakt-submit { align-self: flex-start; margin-top: 0.5rem; }

.tl-kontakt-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(40,167,69,0.1);
    border: 1px solid rgba(40,167,69,0.4);
    border-radius: 12px;
    color: #7de895;
    font-size: 1rem;
    line-height: 1.5;
}
.tl-kontakt-success i { font-size: 2rem; }

.tl-kontakt-direct {
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.95rem;
}
.tl-kontakt-direct a { color: var(--tl-orange); }

/* Honeypot — hidden from humans & screen readers */
.tl-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tl-kontakt-footer-brand {
    padding: 2rem 1rem;
    text-align: center;
    background: #0a1020;
    font-size: 0.9rem;
    opacity: 0.6;
}
.tl-kontakt-footer-brand a { color: var(--tl-orange); }

/* ============================================
   BATCH 3: Station UX + Display Redesign + Admin Delete
   ============================================ */

/* Station: clickable breadcrumb (buttons) */
.tl-bc-item {
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer !important;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}
.tl-bc-item:hover.filled { filter: brightness(1.15); }
.tl-bc-item:not(.filled):hover { opacity: 0.75; }

/* Final step (keyword + name merged) */
.tl-final-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}
.tl-final-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.tl-final-field > label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
}
.tl-final-field .tl-opt {
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.4rem;
}

/* Generate button — prominent */
.tl-btn-generate {
    font-size: 1.25rem !important;
    padding: 1.1rem 2.5rem !important;
    box-shadow: 0 10px 30px rgba(245,166,35,0.3);
}

/* Button loading state */
.tl-btn-loading {
    opacity: 0.65;
    cursor: wait !important;
    pointer-events: none;
    position: relative;
}
.tl-btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Admin danger button */
.tl-btn-danger {
    border-color: rgba(220,53,69,0.4) !important;
    color: #ff8a95 !important;
    margin-left: 0.35rem;
}
.tl-btn-danger:hover {
    background: rgba(220,53,69,0.15) !important;
    border-color: #ff8a95 !important;
}

/* Showroom: admin delete X */
.tl-showroom-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(220,53,69,0.6);
    color: #ff8a95;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer !important;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tl-showroom-card:hover .tl-showroom-delete { opacity: 1; }
.tl-showroom-delete:hover { background: rgba(220,53,69,0.4); transform: scale(1.1); }

/* Kontakt submit centered */
.tl-kontakt-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.tl-kontakt-submit { align-self: auto !important; }

/* ============================================
   DISPLAY REDESIGN (centered vertical stack)
   ============================================ */

/* Split-screen: image 60% left, info 40% right */
.tl-display-result {
    display: none !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem 1.5rem 5rem !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: none !important;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.tl-display-result.active { display: flex !important; opacity: 1; }

.tl-display-salute {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: var(--tl-white) !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.2;
}
.tl-display-salute .tl-display-name {
    color: var(--tl-orange);
    font-weight: 900;
}

/* Image occupies ~60% width, max viewport height */
.tl-display-image-stage {
    flex: 0 0 58%;
    max-width: 58vw;
    max-height: calc(100vh - 6rem);
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 50px rgba(245,166,35,0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-display-image-stage .tl-display-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.tl-display-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 90vw;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.tl-display-result.active .tl-display-breadcrumb {
    opacity: 1;
    transform: translateY(0);
}
.tl-display-bc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.35);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tl-orange);
    white-space: nowrap;
}
.tl-display-bc-icon { font-size: 1.25rem; }
.tl-display-bc-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Collapsible prompt under breadcrumb */
.tl-display-prompt {
    max-width: 70vw;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    opacity: 0;
    transition: opacity 0.8s ease 0.75s;
}
.tl-display-result.active .tl-display-prompt { opacity: 1; }
.tl-display-prompt summary {
    cursor: pointer !important;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    font-style: italic;
    user-select: none;
    transition: var(--tl-transition);
}
.tl-display-prompt summary::-webkit-details-marker { display: none; }
.tl-display-prompt summary:hover {
    background: rgba(245,166,35,0.1);
    border-color: rgba(245,166,35,0.3);
    color: var(--tl-orange);
}
.tl-display-prompt[open] summary {
    margin-bottom: 0.5rem;
    background: rgba(245,166,35,0.1);
    border-color: rgba(245,166,35,0.3);
    color: var(--tl-orange);
}
.tl-display-prompt-text {
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    white-space: pre-wrap;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    max-height: 18vh;
    overflow-y: auto;
}

.tl-display-textblock {
    text-align: center;
    max-width: 70vw;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}
.tl-display-result.active .tl-display-textblock {
    opacity: 1;
    transform: translateY(0);
}
.tl-display-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    color: var(--tl-orange) !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.2;
}
.tl-display-story {
    font-size: clamp(1rem, 1.3vw, 1.2rem) !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 !important;
}

/* Bottom corners */
.tl-display-footer-left {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tl-display-footer-left .tl-display-brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tl-white);
    letter-spacing: 0.04em;
    opacity: 0.9;
}
/* NOTE: do NOT apply a blanket span color here — it would override
   .tl-brand-think / .tl-brand-lab due to higher specificity. */
.tl-display-footer-left .tl-display-brand-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.tl-display-footer-right {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    z-index: 15;
}
.tl-display-footer-right.visible { display: block !important; }

/* ============================================
   BATCH FINAL: split-panel, logo, toggle
   ============================================ */

/* Info panel on display (right 40%) */
.tl-display-side {
    flex: 0 0 38%;
    max-width: 38vw;
    max-height: calc(100vh - 3rem);
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem;
    background: rgba(26, 43, 74, 0.65);
    border: 1px solid rgba(245, 166, 35, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
/* Children in side panel must not shrink — otherwise QR collapses to 0 height */
.tl-display-side > * { flex-shrink: 0; }
.tl-display-result.active .tl-display-side {
    opacity: 1;
    transform: translateX(0);
}

/* Breadcrumb inside side panel — left-aligned, wraps */
.tl-display-side .tl-display-breadcrumb {
    justify-content: flex-start;
    max-width: none;
    margin-bottom: 0.25rem;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Title + story in side panel */
.tl-display-side .tl-display-textblock {
    text-align: left;
    max-width: none;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    margin-bottom: 0.25rem;
}
.tl-display-side .tl-display-title {
    font-size: 1.4rem !important;
    margin: 0 0 0.3rem !important;
    line-height: 1.2;
}
.tl-display-side .tl-display-story {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Raw-input + prompt sections */
.tl-display-section {
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--tl-orange);
    border-radius: 8px;
}
.tl-display-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tl-display-section-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
}

/* Collapsible prompt in side panel */
.tl-display-side .tl-display-prompt {
    max-width: none;
    opacity: 1 !important;
    font-size: 0.8rem;
}
.tl-display-side .tl-display-prompt summary {
    display: flex;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}
.tl-display-side .tl-display-prompt-text {
    max-height: 15vh;
    font-size: 0.8rem;
}

/* Takeaway QR — centered in side panel (full-width row, content centered) */
.tl-display-takeaway-wrap {
    display: none;                 /* switched to flex via JS when imageId present */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.6rem;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    /* Ensure it's always at least as tall as its content */
    flex-shrink: 0;
}
.tl-display-takeaway-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.tl-display-takeaway-qr img {
    display: block;
    width: 130px;
    height: 130px;
}
.tl-display-takeaway-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tl-orange);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Stats inside side panel — compact, in-flow (NO margin-top:auto so QR below stays visible) */
.tl-display-side .tl-stats-live {
    position: static !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    opacity: 0.8;
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: flex-start !important;
}
.tl-display-side .tl-stats-live-item { font-size: 0.8rem; }

/* Bottom-left footer: QR (outer left) + two-tone brand text (right) */
.tl-display-footer-left {
    position: absolute !important;
    bottom: 1.25rem !important;
    left: 1.5rem !important;
    z-index: 15 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.tl-brand-qr {
    padding: 0.35rem;
    background: white;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.tl-brand-qr img { display: block; width: 60px; height: 60px; }
.tl-brand-qr-label {
    color: var(--tl-navy-dark);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* Brand text: Think/Lab on ONE inline line, sub below */
.tl-display-brand-text {
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.tl-brand-line {
    display: block;
    white-space: nowrap;
}
.tl-brand-think,
.tl-brand-lab {
    display: inline;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: baseline;
}
.tl-display-footer-left .tl-brand-think,
.tl-brand-think { color: #ffffff !important; }
.tl-display-footer-left .tl-brand-lab,
.tl-brand-lab { color: #f5a623 !important; }
.tl-brand-sub {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
}

/* ============================================
   EVENT MODE: connection status, live dashboard
   ============================================ */

/* Connection status dot (display + station) */
.tl-conn-status {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    padding: 0.25rem;
    opacity: 0.7;
    pointer-events: none;
}
.tl-conn-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    box-shadow: 0 0 6px currentColor;
}
.tl-conn-ok { background: #4ade80 !important; }
.tl-conn-down { background: #ef4444 !important; animation: pulseConn 1s infinite; }
.tl-conn-unknown { background: #888 !important; }
@keyframes pulseConn {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Admin live dashboard */
.tl-live-dashboard {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(245,166,35,0.08) 0%, rgba(26,43,74,0.3) 100%);
    border: 1px solid rgba(245,166,35,0.25);
    border-radius: 14px;
}
.tl-live-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tl-orange);
}
.tl-live-header small {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
    color: var(--tl-white);
}
.tl-live-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseConn 1.5s infinite;
}
.tl-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tl-live-stat {
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    border-left: 3px solid var(--tl-orange);
}
.tl-live-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tl-orange);
    margin-bottom: 0.3rem;
}
.tl-live-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}
.tl-live-warn { color: #ff8a95; }

.tl-live-recent-wrap {
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
.tl-live-recent-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}
.tl-live-recent {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tl-live-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--tl-transition);
}
.tl-live-thumb:hover {
    border-color: var(--tl-orange);
    transform: scale(1.05);
}
.tl-live-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin: toggle switch */
.tl-settings-toggle-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.tl-settings-toggle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tl-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}
.tl-switch input { opacity: 0; width: 0; height: 0; }
.tl-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    cursor: pointer;
    transition: 0.3s;
}
.tl-switch-slider::before {
    content: '';
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.tl-switch input:checked + .tl-switch-slider { background: var(--tl-orange); }
.tl-switch input:checked + .tl-switch-slider::before { transform: translateX(22px); }

/* Responsive: stack vertically on portrait screens */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .tl-display-result {
        flex-direction: column !important;
        padding: 1rem 1rem 5rem !important;
    }
    .tl-display-image-stage {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 45vh;
    }
    .tl-display-side {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

.tl-display-mini-qr {
    padding: 0.4rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.tl-display-mini-qr img { display: block; width: 70px; height: 70px; }
.tl-display-mini-qr-label {
    color: var(--tl-navy-dark);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.tl-stats-live-display {
    bottom: 1.5rem !important;
    font-size: 0.75rem !important;
}

@media (max-width: 768px) {
    .tl-display-mini-qr img { width: 50px; height: 50px; }
    .tl-display-footer-left { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .tl-display-footer-left .tl-display-brand-text { font-size: 1rem; }
}

/* ==========================================================================
   Admin — Usage & Cost overview
   ========================================================================== */
.tl-admin-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.tl-stat-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--tl-orange, #ff8a3d);
    margin-top: 0.5rem;
    max-width: 100%;
}
.tl-stat-bar-ok { background: #3ecf8e; }
.tl-stat-bar-warn { background: #f5c518; }
.tl-stat-bar-danger { background: #e5484d; }

.tl-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tl-badge-ok { background: #d1f4e4; color: #0a6b3b; }
.tl-badge-err { background: #fadcdd; color: #842029; }

/* 14-day cost bar chart — CSS-only */
.tl-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 180px;
    padding: 0.5rem 0 0;
    margin-top: 0.75rem;
}
.tl-bar-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.tl-bar-track {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.tl-bar-fill {
    width: 100%;
    transition: height 0.3s ease;
}
.tl-bar-ok { background: #3ecf8e; }
.tl-bar-danger { background: #e5484d; }
.tl-bar-empty { background: transparent; }
.tl-bar-label {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    color: #666;
    white-space: nowrap;
}

/* ============================================
   PUBLIC EVENT PAGE (StationShowroom)
   ============================================ */

.tl-event-page {
    background: var(--tl-navy-dark);
    color: var(--tl-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page-level breadcrumb. Class name intentionally distinct from the
   pre-existing .tl-breadcrumb (station wizard step indicator) to keep
   the two contexts visually independent. */
.tl-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.tl-page-breadcrumb a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.tl-page-breadcrumb a:hover {
    color: var(--tl-orange);
    text-decoration: none;
}

.tl-page-breadcrumb-sep {
    opacity: 0.5;
}

.tl-page-breadcrumb-current {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

@media (max-width: 640px) {
    .tl-page-breadcrumb {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
    }
}

.tl-event-header {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
    text-align: center;
    width: 100%;
}

.tl-event-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.tl-event-meta {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tl-orange);
    opacity: 0.85;
}

.tl-event-description {
    margin: 1.5rem auto 0;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.78;
}

.tl-event-partners {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-event-partner-logo {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.tl-event-partner-logo:hover {
    opacity: 1;
}

.tl-event-stations {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    width: 100%;
}

.tl-event-stations-title {
    position: relative;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
}

.tl-event-stations-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--tl-orange);
    border-radius: 2px;
}

.tl-event-empty {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.tl-event-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.tl-event-empty p {
    margin: 0;
}

.tl-station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tl-station-card-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 340px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: tl-station-card-in 0.3s ease-out forwards;
}

.tl-station-card-wrapper:hover {
    border-color: var(--tl-orange);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

/* Stagger the cards in on first paint. nth-child caps at 8 so the last
   tiles in a large grid don't drift visibly. */
.tl-station-card-wrapper:nth-child(1) { animation-delay: 0ms; }
.tl-station-card-wrapper:nth-child(2) { animation-delay: 80ms; }
.tl-station-card-wrapper:nth-child(3) { animation-delay: 160ms; }
.tl-station-card-wrapper:nth-child(4) { animation-delay: 240ms; }
.tl-station-card-wrapper:nth-child(5) { animation-delay: 320ms; }
.tl-station-card-wrapper:nth-child(6) { animation-delay: 400ms; }
.tl-station-card-wrapper:nth-child(7) { animation-delay: 480ms; }
.tl-station-card-wrapper:nth-child(n+8) { animation-delay: 560ms; }

@keyframes tl-station-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-station-card-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.tl-station-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.tl-station-card:hover {
    color: inherit;
    text-decoration: none;
}

.tl-station-card-img {
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 30% 20%, rgba(245, 166, 35, 0.08), rgba(0, 0, 0, 0.45) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tl-station-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-station-card-placeholder {
    color: rgba(245, 166, 35, 0.45);
    font-size: 3rem;
}

.tl-station-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.tl-station-kind-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.15);
    color: var(--tl-orange);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.tl-station-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tl-white);
}

.tl-station-card-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.7;
}

.tl-station-card-cta {
    margin-top: auto;
    padding-top: 0.4rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--tl-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tl-station-admin-bar {
    border-top: 1px solid rgba(245, 166, 35, 0.35);
    background: transparent;
    padding: 0.45rem 0.75rem;
}

.tl-station-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(245, 166, 35, 0.75);
    text-decoration: none;
    padding: 0.25rem 0.4rem;
    border-radius: 5px;
    transition: var(--tl-transition);
}

.tl-station-admin-action i {
    font-size: 0.82rem;
}

.tl-station-admin-action:hover {
    background: rgba(245, 166, 35, 0.1);
    color: var(--tl-orange);
    text-decoration: none;
}

@media (max-width: 640px) {
    .tl-event-header { padding: 2rem 1rem 1.5rem; }
    .tl-event-stations { padding: 0.5rem 1rem 3rem; }
    .tl-station-grid { gap: 1rem; }
}

/* ============================================
   PUBLIC ORG PAGE (OrgPublicController)
   ============================================ */

.tl-org-page {
    background: var(--tl-navy-dark);
    color: var(--tl-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tl-org-header {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tl-org-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.tl-org-events {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.tl-org-events-title {
    position: relative;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    padding-bottom: 0.6rem;
}

.tl-org-events-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--tl-orange);
    border-radius: 2px;
}

.tl-org-event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-org-event-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-org-event-card:hover {
    border-color: var(--tl-orange);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.tl-org-event-logo {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.tl-org-event-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tl-org-event-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tl-org-event-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tl-white);
}

.tl-org-event-date {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tl-orange);
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tl-org-event-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.72;
}

.tl-org-event-actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tl-org-event-actions .tl-btn-primary {
    padding: 0.55rem 1.1rem;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tl-org-event-admin {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(245, 166, 35, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: var(--tl-transition);
}

.tl-org-event-admin:hover {
    background: rgba(245, 166, 35, 0.1);
    color: var(--tl-orange);
    text-decoration: none;
}

.tl-org-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.tl-org-empty i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.45;
}

.tl-org-empty p {
    margin: 0;
}

@media (max-width: 640px) {
    .tl-org-header {
        padding: 1.75rem 1rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .tl-org-events { padding: 0 1rem 3rem; }
    .tl-org-event-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .tl-org-event-logo {
        width: 72px;
        height: 72px;
    }
}
