* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
}

header { margin-bottom: 1.5rem; }
h1 { color: #58a6ff; margin-bottom: 0.25rem; font-size: 1.6rem; }
h2 { color: #8b949e; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
p { color: #8b949e; }
em { color: #6e7681; }

textarea {
    width: 100%;
    height: 240px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    padding: 0.85rem;
    background: #161b22;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    resize: vertical;
}
textarea:focus { outline: none; border-color: #58a6ff; }

.controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

button {
    padding: 0.5rem 1.25rem;
    background: #238636;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
button:hover { background: #2ea043; }
button:disabled { background: #21262d; color: #484f58; cursor: not-allowed; }
button.secondary { background: #21262d; color: #c9d1d9; }
button.secondary:hover { background: #30363d; }

label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #8b949e;
    cursor: pointer;
}

.output-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.panel {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.panel:nth-child(1) { grid-column: 1 / -1; }
.panel:nth-child(5) { grid-column: 1 / -1; }

pre {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 60px;
    max-height: 380px;
    overflow-y: auto;
}

#output { color: #7ee787; }
#bytecodeOutput { color: #d2a8ff; font-size: 11.5px; word-break: break-all; }
#decompiledOutput { color: #ffa657; }
#analysisOutput { color: #79c0ff; }

.saved-list {
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
}
.saved-list .saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #21262d;
}
.saved-list .saved-item:last-child { border-bottom: none; }
.saved-list .saved-item button {
    padding: 0.2rem 0.6rem;
    font-size: 11px;
}

@media (max-width: 700px) {
    .output-section { grid-template-columns: 1fr; }
}