:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #eef2f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 48px 20px;
    background: radial-gradient(circle at top left, #dcecff, transparent 38%), #eef2f7;
}

.shell {
    width: min(860px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(36, 51, 77, .12);
    overflow: hidden;
}

.masthead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px 24px;
}

.eyebrow { margin: 0 0 5px; color: #2467d1; font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.limit { margin: 0; color: #5c6678; }

.tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid #e3e8ef; overflow-x: auto; }
.tab {
    appearance: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 14px 13px 12px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.tab:hover, .tab.is-active { color: #1f5fc4; border-bottom-color: #2c6fd6; }

.panel { padding: 34px 36px; }
.drop-zone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 250px;
    padding: 34px;
    border: 2px dashed #aebdd0;
    border-radius: 14px;
    background: #f8faff;
    text-align: center;
    transition: .15s ease;
}
.drop-zone.is-dragging { border-color: #2c6fd6; background: #edf5ff; transform: scale(1.01); }
.drop-zone span { color: #667085; }
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }

.button {
    margin-top: 12px;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    background: #2467d1;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button:hover { background: #1b55b2; }
.field-label { display: block; margin-bottom: 9px; font-weight: 700; }
input[type="file"], textarea { width: 100%; border: 1px solid #bdc7d5; border-radius: 9px; padding: 11px; font: inherit; }
textarea { resize: vertical; }

.results { display: grid; gap: 8px; margin-top: 20px; }
.result { padding: 11px 13px; border-radius: 8px; background: #edf2f8; overflow-wrap: anywhere; }
.result-success { color: #17643a; background: #e8f7ee; }
.result-error { color: #9d2828; background: #fff0f0; }
.result-progress { color: #254f88; background: #edf5ff; }
.formats { margin: 0; padding: 0 36px 28px; color: #727c8d; font-size: .9rem; }

@media (max-width: 620px) {
    body { padding: 16px 10px; }
    .masthead { align-items: start; flex-direction: column; }
    .masthead, .panel { padding: 24px 20px; }
    .tabs { padding-inline: 12px; }
    .formats { padding-inline: 20px; }
}
