:root {
    --c: #2457d6;
    --c2: #6f9eff;
    --c-hover: #173f9e;
    --bg: #f7f8fa;
    --bg2: #ffffff;
    --bg3: #edf3ff;
    --card: #ffffff;
    --text: #172033;
    --text2: #5b6474;
    --text3: #697385;
    --sub: #5b6474;
    --border: #dce1e8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

:where(a, button, input, textarea, select, [role="button"]):focus-visible {
    outline: 3px solid #2457d6;
    outline-offset: 3px;
}

header.orth-app-header {
    background: #ffffff;
    color: #172033;
    border-bottom: 1px solid #dce1e8;
    box-shadow: none;
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.orth-app-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.orth-app-identity {
    flex: 1 1 120px;
    min-width: 0;
}

header.orth-app-header h1 {
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.orth-app-byline {
    display: block;
    margin-top: 2px;
    color: #5b6474;
    font-size: 0.8rem;
    text-decoration: none;
}

.orth-app-byline strong {
    color: #172033;
}

.orth-return-tools {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    color: #2457d6;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.orth-return-tools:hover {
    background: #edf3ff;
}

.orth-input-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-left: 3px solid #2457d6;
    border-radius: 0 8px 8px 0;
    color: var(--text2);
    background: var(--bg3);
    font-size: 0.85rem;
}

.orth-input-note strong {
    display: block;
    color: var(--text);
}

.orth-input-note a {
    color: var(--c);
    text-decoration: underline;
}

footer.orth-app-footer {
    border-top: 1px solid var(--border);
    padding: 28px 16px;
    color: var(--sub);
    font-size: 0.83rem;
    background: var(--card);
}

.orth-app-footer .orth-footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
}

.orth-app-footer .orth-footer-wordmark img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.orth-app-footer .links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.orth-app-footer p {
    max-width: 640px;
    margin: 8px auto;
}

.drop:hover,
.drop.over,
.preset-btn.active,
.format-btn.active,
.dropzone:hover,
.dropzone.drag {
    background: var(--bg3);
}

.orth-workflow-icon {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c: #8aafff;
        --c2: #a5c0ff;
        --c-hover: #b6cdff;
        --bg: #101827;
        --bg2: #172033;
        --bg3: #1e2c46;
        --card: #172033;
        --text: #f4f7ff;
        --text2: #bcc8dd;
        --text3: #a8b7cf;
        --sub: #bcc8dd;
        --border: #33415b;
    }
}

@media (max-width: 480px) {
    header.orth-app-header {
        padding: 12px 14px;
        gap: 9px;
    }
    .orth-app-identity {
        flex-basis: 102px;
    }
    header.orth-app-header h1 {
        font-size: 1.08rem;
    }
    .orth-return-tools {
        padding-inline: 9px;
    }
    header .pro-badge {
        padding-inline: 8px;
    }
}
