* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #1a1d23;
    color: #e8eaed;
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

header h1 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    color: #9aa0a6;
    font-size: 0.875rem;
}

.description {
    margin-top: 20px;
    padding: 16px;
    background: #252830;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #bdc1c6;
}

.description p {
    margin: 0 0 8px;
}

.description p:last-child {
    margin-bottom: 0;
}

.description code {
    background: #1a1d23;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.repo a {
    color: #8ab4f8;
    text-decoration: none;
}

.repo a:hover {
    text-decoration: underline;
}

.controls {
    margin-top: 20px;
    padding: 16px;
    background: #252830;
    border-radius: 8px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.row:last-of-type {
    margin-bottom: 0;
}

label {
    font-size: 0.875rem;
    color: #9aa0a6;
    white-space: nowrap;
}

input[type="text"],
input[type="number"],
select {
    padding: 8px 10px;
    border: 1px solid #3c4043;
    border-radius: 6px;
    background: #1a1d23;
    color: #e8eaed;
    font-size: 0.875rem;
}

input.short {
    width: 72px;
}

#eaid {
    width: 140px;
}

#hash {
    width: 100px;
}

#prefix {
    width: 72px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

button.primary {
    background: #1a73e8;
    color: #fff;
}

button.primary:hover:not(:disabled) {
    background: #1967d2;
}

button.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.danger {
    background: #5f6368;
    color: #fff;
}

button.danger:hover:not(:disabled) {
    background: #80868b;
}

button.danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: #9aa0a6;
}

.output {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 720px) {
    .output {
        grid-template-columns: 1fr;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel label {
    font-weight: 500;
    color: #e8eaed;
}

textarea {
    width: 100%;
    height: 320px;
    padding: 12px;
    border: 1px solid #3c4043;
    border-radius: 8px;
    background: #1a1d23;
    color: #e8eaed;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.75rem;
    resize: vertical;
}

textarea:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 0;
}
