.codon-grid {
            background: white;
            border-radius: 12px;
            overflow-x: auto;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .codon-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            min-width: 600px;
        }
        .codon-table th, .codon-table td {
            border: 1px solid #dee2e6;
            padding: 12px 8px;
            text-align: center;
            vertical-align: middle;
            transition: background 0.15s;
        }
        .codon-table th {
            background-color: #f1f9ff;
            font-weight: 700;
            color: #0a4b6e;
            font-size: 1rem;
        }
        .codon-table td {
            background-color: #ffffff;
            font-family: 'Courier New', 'SF Mono', monospace;
        }
        .codon-cell {
            cursor: pointer;
            transition: transform 0.1s, box-shadow 0.1s;
        }
        .codon-cell:hover {
            background-color: #e6f4ff;
            transform: scale(1.01);
            box-shadow: inset 0 0 0 2px #3b82f6;
        }
        .highlight-cell {
            background-color: #ffecb3 !important;
            box-shadow: inset 0 0 0 2px #ff9800;
        }
        .aa-badge {
            display: inline-block;
            background: #e9ecef;
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-top: 4px;
            font-family: sans-serif;
        }
        .codon-sequence {
            font-weight: 800;
            font-size: 1rem;
            letter-spacing: 1px;
            color: #0b5e7e;
        }
        .result-card {
            background: #f8fafc;
            border-left: 5px solid #2c7da0;
            border-radius: 12px;
        }
        .note-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
            justify-content: center;
        }
        .legend-badge {
            font-size: 0.8rem;
        }
        .codon-input-group {
            max-width: 320px;
            margin: 0 auto 1rem auto;
        }
        .genetic-map {
            background: #fef9e6;
            border-radius: 16px;
            padding: 1rem;
        }
        .tool-header h1 {
            font-size: 2.2rem;
        }
        @media (max-width: 768px) {
            .codon-table td, .codon-table th { padding: 6px 4px; font-size: 0.7rem; }
            .codon-sequence { font-size: 0.8rem; }
        }
        .authority-note a {
            text-decoration: none;
        }
        .codon-status {
            font-weight: 500;
        }