.teaser-upload-page {
    --tu-blue: #2454f3;
    --tu-blue-dark: #071746;
    --tu-blue-soft: #eef4ff;
    --tu-green: #0f7d4f;
    --tu-ink: #071746;
    --tu-muted: #56648a;
    --tu-soft: #f6f8fd;
    --tu-border: #dbe4f4;
    --tu-border-strong: #b8c8f6;
    --tu-shadow: 0 20px 60px rgba(18, 38, 91, 0.08);
    --tu-shell: 1240px;
    min-height: 100vh;
    overflow-x: hidden;
    background: #ffffff;
    color: var(--tu-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.teaser-upload-page *,
.teaser-upload-page *::before,
.teaser-upload-page *::after {
    box-sizing: border-box;
}

.teaser-upload-page a {
    color: inherit;
    text-decoration: none;
}

.teaser-upload-shell {
    width: min(calc(100% - 96px), var(--tu-shell));
    margin: 0 auto;
}

.teaser-upload-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--tu-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.teaser-upload-header__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.teaser-upload-brand {
    display: inline-flex;
    align-items: center;
}

.teaser-upload-brand img {
    width: auto;
    height: 42px;
    display: block;
}

.teaser-use-case {
    justify-self: center;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--tu-border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 71, 168, 0.05);
    color: var(--tu-ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.teaser-use-case__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tu-blue);
}

.teaser-use-case__icon svg {
    width: 22px;
    height: 22px;
}

.teaser-use-case__text {
    color: #293a69;
}

.teaser-use-case select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tu-ink);
    font: inherit;
    cursor: pointer;
    max-width: 230px;
}

.teaser-upload-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.teaser-upload-login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--tu-ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.teaser-upload-login:hover,
.teaser-upload-login:focus-visible {
    color: var(--tu-blue);
}

.teaser-upload-main {
    padding: 22px 0 0;
}

.teaser-upload-hero {
    text-align: center;
    padding: 14px 0 18px;
}

.teaser-upload-hero h1 {
    max-width: 860px;
    margin: 0 auto;
    color: var(--tu-ink);
    font-size: 3.15rem;
    line-height: 1.05;
    font-weight: 900;
}

.teaser-upload-hero p {
    max-width: 660px;
    margin: 12px auto 0;
    color: var(--tu-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
}

.teaser-upload-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}

.teaser-upload-card {
    min-width: 0;
    border: 1px solid var(--tu-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--tu-shadow);
}

.teaser-upload-card--drop {
    padding: 16px;
}

.teaser-dropzone {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    border: 1.5px dashed var(--tu-border-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 24%, rgba(36, 84, 243, 0.08), transparent 34%),
        #ffffff;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.teaser-dropzone:hover,
.teaser-dropzone:focus-visible,
.teaser-dropzone.is-dragover {
    border-color: var(--tu-blue);
    box-shadow: inset 0 0 0 1px rgba(36, 84, 243, 0.16);
}

.teaser-dropzone.is-disabled {
    cursor: not-allowed;
    background:
        radial-gradient(circle at 50% 24%, rgba(36, 84, 243, 0.04), transparent 34%),
        #f8faff;
    opacity: 0.78;
}

.teaser-dropzone.is-disabled:hover,
.teaser-dropzone.is-disabled:focus-visible {
    border-color: var(--tu-border-strong);
    box-shadow: none;
}

.teaser-dropzone__document {
    width: 48px;
    height: 60px;
    display: block;
    margin-bottom: -8px;
    border-radius: 8px 8px 14px 14px;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(188, 202, 234, 0.95) 73%),
        linear-gradient(180deg, #f1f5ff 0%, #dce6fb 100%);
    box-shadow: 0 20px 30px rgba(40, 74, 151, 0.14);
}

.teaser-dropzone__cloud {
    width: 100px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -12px;
    border-radius: 999px;
    color: var(--tu-blue);
    background: rgba(36, 84, 243, 0.08);
    box-shadow: 0 18px 36px rgba(36, 84, 243, 0.16);
}

.teaser-dropzone__cloud svg {
    width: 54px;
    height: 38px;
}

.teaser-dropzone strong {
    margin-top: 4px;
    color: var(--tu-ink);
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 900;
}

.teaser-dropzone span:not(.teaser-dropzone__document):not(.teaser-dropzone__cloud) {
    color: var(--tu-muted);
    font-size: 0.98rem;
    font-weight: 500;
}

.teaser-dropzone small {
    color: var(--tu-muted);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 600;
}

.teaser-upload-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--tu-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--tu-ink);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(18, 38, 91, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.teaser-upload-button:hover:not(:disabled):not([aria-disabled="true"]),
.teaser-upload-button:focus-visible:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(18, 38, 91, 0.12);
}

.teaser-upload-button:disabled,
.teaser-upload-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
}

.teaser-upload-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.teaser-upload-button--primary {
    border-color: #1f4dea;
    background: var(--tu-blue);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(36, 84, 243, 0.26);
}

.teaser-upload-button--primary:hover:not(:disabled):not([aria-disabled="true"]),
.teaser-upload-button--primary:focus-visible:not(:disabled):not([aria-disabled="true"]) {
    border-color: #173fd3;
    background: #173fd3;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(36, 84, 243, 0.34);
}

.teaser-upload-button--primary:active:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(0);
    border-color: #1233b0;
    background: #1233b0;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(36, 84, 243, 0.22);
}

.teaser-upload-button--primary[aria-disabled="true"],
.teaser-upload-button--primary:disabled {
    border-color: #9db2f8;
    background: #6f8af7;
    color: #ffffff;
}

.teaser-upload-button--primary:focus-visible:not(:disabled):not([aria-disabled="true"]) {
    outline: 3px solid rgba(36, 84, 243, 0.34);
    outline-offset: 3px;
}

.teaser-upload-button--small {
    min-height: 46px;
    padding: 0 18px;
}

.teaser-upload-button--large {
    min-height: 58px;
    min-width: 230px;
    padding: 0 24px;
    font-size: 1rem;
}

.teaser-file-summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid #edf2fb;
    border-radius: 14px;
    background: #f8faff;
}

.teaser-file-summary strong,
.teaser-file-summary span {
    display: block;
}

.teaser-file-summary strong {
    color: var(--tu-ink);
    font-size: 0.93rem;
    line-height: 1.25;
    font-weight: 900;
}

.teaser-file-summary span {
    margin-top: 3px;
    color: var(--tu-muted);
    font-size: 0.83rem;
    line-height: 1.35;
    font-weight: 500;
}

.teaser-link-button {
    border: 0;
    background: transparent;
    color: var(--tu-blue);
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.teaser-link-button:disabled {
    color: #a6b0c9;
    cursor: not-allowed;
}

.teaser-file-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.teaser-file-list:empty {
    display: none;
}

.teaser-file-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e8eefb;
    border-radius: 12px;
    background: #ffffff;
}

.teaser-file-name {
    min-width: 0;
    color: var(--tu-ink);
    font-size: 0.86rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teaser-file-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-end;
    min-width: 0;
}

.teaser-file-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2454f3;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.teaser-file-pill.is-ready {
    background: #f0f4fb;
    color: #516184;
}

.teaser-file-pill.is-queued,
.teaser-file-pill.is-analyzing {
    background: #eff5ff;
    color: #2454f3;
}

.teaser-file-pill.is-analyzed {
    background: #eefaf4;
    color: var(--tu-green);
}

.teaser-file-pill.is-failed {
    background: #fff2f1;
    color: #b42318;
}

.teaser-file-detail {
    color: var(--tu-muted);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.teaser-upload-note,
.teaser-analysis-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--tu-soft);
    color: var(--tu-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
}

.teaser-upload-note svg,
.teaser-analysis-note svg {
    width: 24px;
    height: 24px;
    color: var(--tu-blue);
}

.teaser-analysis-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
}

.teaser-analysis-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.teaser-analysis-card h2 {
    margin: 0;
    color: var(--tu-ink);
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
}

.teaser-analysis-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid #cde5da;
    border-radius: 999px;
    background: #eefaf4;
    color: var(--tu-green);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.teaser-analysis-card__body {
    display: grid;
    grid-template-columns: minmax(180px, 0.86fr) minmax(210px, 1fr);
    gap: 24px;
    align-items: center;
    flex: 1 1 auto;
    min-height: 210px;
    padding: 8px 0 2px;
}

.teaser-analysis-orb {
    position: relative;
    width: 200px;
    height: 200px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 84, 243, 0.10), rgba(36, 84, 243, 0.03) 58%, transparent 70%);
}

.teaser-analysis-orb span {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(36, 84, 243, 0.23);
}

.teaser-analysis-orb span:nth-child(1) {
    inset: 20px;
}

.teaser-analysis-orb span:nth-child(2) {
    inset: 50px;
    border-color: rgba(36, 84, 243, 0.44);
}

.teaser-analysis-orb span:nth-child(3) {
    inset: 82px;
    border-color: rgba(36, 84, 243, 0.64);
}

.teaser-analysis-orb i {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tu-blue);
    color: #ffffff;
    box-shadow: 0 20px 36px rgba(36, 84, 243, 0.34);
}

.teaser-analysis-orb i svg {
    width: 38px;
    height: 38px;
}

.teaser-analysis-card.is-waiting .teaser-analysis-chip {
    border-color: #dbe4f4;
    background: #f6f8fd;
    color: #56648a;
}

.teaser-analysis-card.is-active .teaser-analysis-chip {
    border-color: #cddaff;
    background: #eef4ff;
    color: var(--tu-blue);
}

.teaser-analysis-card.is-ready .teaser-analysis-chip {
    border-color: #cde5da;
    background: #eefaf4;
    color: var(--tu-green);
}

.teaser-analysis-card.is-failed .teaser-analysis-chip {
    border-color: #ffd8d2;
    background: #fff2f1;
    color: #b42318;
}

.teaser-analysis-orb.is-waiting span:nth-child(2) {
    animation: teaserPulse 4.8s ease-in-out infinite;
}

.teaser-analysis-orb.is-ready i {
    background: var(--tu-green);
    box-shadow: 0 18px 32px rgba(15, 125, 79, 0.24);
}

.teaser-analysis-orb.is-failed i {
    background: #b42318;
    box-shadow: 0 18px 32px rgba(180, 35, 24, 0.18);
}

.teaser-analysis-orb.is-active span:nth-child(1) {
    animation: teaserPulse 2.8s ease-in-out infinite;
}

.teaser-analysis-orb.is-active span:nth-child(2) {
    animation: teaserPulse 2.8s ease-in-out infinite 0.22s;
}

.teaser-analysis-orb.is-active span:nth-child(3) {
    animation: teaserRotate 5s linear infinite;
}

.teaser-analysis-orb.is-active i {
    animation: teaserGlow 2.4s ease-in-out infinite;
}

.teaser-analysis-status {
    position: relative;
    padding-left: 24px;
}

.teaser-analysis-status::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 3px;
    width: 1px;
    background: #d7e0f1;
}

.teaser-analysis-status div {
    position: relative;
    color: var(--tu-blue);
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 900;
}

.teaser-analysis-status div::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -28px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tu-blue);
    box-shadow: 0 0 0 6px rgba(36, 84, 243, 0.13);
}

.teaser-analysis-status p {
    margin: 6px 0 0;
    color: var(--tu-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
}

.teaser-result-hints {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teaser-result-hints:empty {
    display: none;
}

.teaser-result-hints li {
    padding: 10px 12px;
    border: 1px solid #e8eefb;
    border-radius: 12px;
    background: #fbfdff;
    color: #2d3b65;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 700;
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.teaser-continue-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 16px;
    padding: 18px 22px;
    border: 1px solid #bcd0ff;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(36, 84, 243, 0.08), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    box-shadow: 0 18px 38px rgba(36, 84, 243, 0.11);
}

.teaser-continue-panel[hidden] {
    display: none;
}

.teaser-continue-panel strong,
.teaser-continue-panel span {
    display: block;
}

.teaser-continue-panel strong {
    color: var(--tu-ink);
    font-size: 1rem;
    font-weight: 900;
}

.teaser-continue-panel span {
    margin-top: 4px;
    color: var(--tu-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
}

.teaser-continue-panel .teaser-upload-button {
    min-width: 210px;
    min-height: 50px;
    padding: 0 20px;
    font-size: 0.94rem;
}

.teaser-upload-action {
    display: grid;
    grid-template-columns: 44px minmax(80px, 1fr) auto minmax(80px, 1fr) 44px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 0 14px;
    text-align: center;
}

.teaser-upload-action[hidden] {
    display: none;
}

.teaser-action-dot {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--tu-border-strong);
    border-radius: 999px;
    color: var(--tu-blue);
    background: #ffffff;
}

.teaser-action-dot svg {
    width: 22px;
    height: 22px;
}

.teaser-action-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd8f4, transparent);
}

.teaser-upload-action p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--tu-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.teaser-upload-footer {
    margin-top: 0;
    border-top: 1px solid #edf2fb;
    background: #f7f9fe;
}

.teaser-upload-footer .teaser-upload-shell {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--tu-muted);
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
}

.teaser-upload-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.teaser-upload-page :focus-visible {
    outline: 3px solid rgba(36, 84, 243, 0.26);
    outline-offset: 3px;
}

@keyframes teaserPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes teaserRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes teaserGlow {
    0%, 100% {
        box-shadow: 0 20px 36px rgba(36, 84, 243, 0.34);
    }
    50% {
        box-shadow: 0 24px 46px rgba(36, 84, 243, 0.48);
    }
}

@media (prefers-reduced-motion: reduce) {
    .teaser-upload-page *,
    .teaser-upload-page *::before,
    .teaser-upload-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1100px) {
    .teaser-upload-shell {
        width: min(calc(100% - 48px), var(--tu-shell));
    }

    .teaser-upload-header__inner {
        grid-template-columns: auto auto;
    }

    .teaser-use-case {
        order: 3;
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
        margin-bottom: 14px;
    }

    .teaser-upload-workspace {
        grid-template-columns: 1fr;
    }

    .teaser-analysis-card__body {
        grid-template-columns: minmax(180px, 0.8fr) minmax(210px, 1fr);
    }
}

@media (max-width: 720px) {
    .teaser-upload-shell {
        width: min(calc(100% - 28px), var(--tu-shell));
    }

    .teaser-upload-header {
        position: relative;
    }

    .teaser-upload-header__inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .teaser-upload-brand,
    .teaser-upload-header__actions {
        justify-content: center;
    }

    .teaser-upload-header__actions {
        flex-wrap: wrap;
    }

    .teaser-use-case {
        order: initial;
        margin-bottom: 0;
        min-width: 0;
    }

    .teaser-use-case select {
        min-width: 0;
        max-width: 190px;
    }

    .teaser-upload-main {
        padding-top: 14px;
    }

    .teaser-upload-hero {
        padding: 18px 0;
    }

    .teaser-upload-hero h1 {
        font-size: 2.45rem;
    }

    .teaser-upload-hero p {
        font-size: 0.98rem;
    }

    .teaser-dropzone {
        min-height: 240px;
        padding: 24px 16px;
    }

    .teaser-file-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .teaser-file-list li {
        grid-template-columns: 1fr;
    }

    .teaser-file-list span {
        white-space: normal;
    }

    .teaser-analysis-card {
        padding: 20px 18px;
    }

    .teaser-analysis-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .teaser-analysis-card__body {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }

    .teaser-analysis-orb {
        width: 178px;
        height: 178px;
    }

    .teaser-analysis-orb i {
        width: 64px;
        height: 64px;
    }

    .teaser-continue-panel {
        grid-template-columns: 1fr;
    }

    .teaser-upload-action {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .teaser-action-dot,
    .teaser-action-line {
        display: none;
    }

    .teaser-upload-button--large {
        width: 100%;
        min-width: 0;
    }
}
