body {
    font-family: system-ui, sans-serif;
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 1rem;
}
h1 { font-size: 20px; font-weight: 500; margin-bottom: 1.5rem; }
label { font-size: 13px; color: #666; display: block; margin-bottom: 6px; }
#presets {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
#presets button {
    padding: 6px 14px;
    font-size: 13px;
    background: white;
    color: #1a1a1a;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
}
#presets button:hover { background: #f5f5f5; }
textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    resize: vertical;
}
input {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
#btn {
    padding: 8px 20px;
    font-size: 15px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
#btn:disabled { background: #999; cursor: not-allowed; }
#result {
    margin-top: 1.5rem;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    color: #333;
}
#error {
    margin-top: 1rem;
    font-size: 14px;
    color: #c0392b;
}

table {
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 300px;
}
table td {
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
}
table td:first-child {
    color: #666;
    font-size: 13px;
    width: 80px;
}
table td:last-child {
    font-weight: 500;
}