.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.input-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.input-group small {
    display: block;
    color: #6b7280;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.reference-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.reference-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reference-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    transform: translateY(-2px);
}

.ratio-visual {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    margin: 0 auto 1rem auto;
    border: 2px solid #e2e8f0;
}

.reference-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.reference-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.examples {
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.use-ratio-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.use-ratio-btn:hover {
    background: #2563eb;
}

.reference-card.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.reference-card.active .ratio-visual {
    background: linear-gradient(135deg, #10b981, #059669);
}

.results-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.result-decimal {
    font-size: 0.9rem;
    color: #6b7280;
}

.result-detail div {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.common-uses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.use-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.scale-examples {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.scale-examples h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.scale-item {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: #475569;
}

.scale-item .size {
    font-weight: 600;
    color: #1e293b;
}