:root {
    --bg: #0f172a;
    --surface: #111827;
    --surface-2: #1f2937;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #374151;
    --accent: #38bdf8;
    --accent-strong: #0284c7;
    --warning: #facc15;
    --ok: #86efac;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e3a8a 0, var(--bg) 45%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.page-shell {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 2rem;
}

.hero {
    margin-bottom: 1.5rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

h1,
h2 {
    margin: 0;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

h2 {
    font-size: 1rem;
}

.lede {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.08rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: white;
    background: var(--accent-strong);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
}

button:hover,
button:focus-visible {
    filter: brightness(1.12);
}

button.secondary {
    background: var(--surface-2);
    box-shadow: none;
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.panel,
.report-card {
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0;
}

.badge {
    color: var(--muted);
    font-size: 0.85rem;
}

textarea {
    display: block;
    width: calc(100% - 2rem);
    min-height: 520px;
    margin: 1rem;
    padding: 1rem;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #020617;
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
}

textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

textarea::placeholder {
    color: #64748b;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.report-card {
    padding: 1rem;
}

.report-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.report-card li + li {
    margin-top: 0.35rem;
}

.warning-card li {
    color: var(--warning);
}

.site-footer {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
    color: var(--muted);
    text-align: center;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .converter-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    textarea {
        min-height: 380px;
    }
}
