* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: #666;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.form-group input[type="text"],
.form-group select {
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 15px;
    height: 44px;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}

.helper-text {
    font-size: 12px;
    color: #888;
}

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

.feedback {
    min-height: 18px;
    font-size: 13px;
    color: #b42323;
    margin-top: 12px;
}

.feedback.success {
    color: #1a7f37;
}

.result-panel {
    border: 1px solid #eee;
    background: #fafafa;
    padding: 20px;
}

.result-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.result-value {
    font-size: 20px;
    font-weight: 600;
    word-break: break-all;
}

.result-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    border: 1px solid #eee;
    padding: 12px 14px;
    background: #fff;
}

.history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.history-value {
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .card {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-row .btn {
        width: 100%;
    }
}
