/* Codon Usage Analyser */
.cu-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.cu-header { margin-bottom: 1.5rem; }
.cu-header-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: #e6edf3; }
.cu-header-sub { font-size: .78rem; color: #8b949e; margin-top: .2rem; }
.cu-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; }
.cu-input-panel { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 1rem; margin-bottom: .75rem; }
.cu-input-label { font-size: .72rem; color: #8b949e; font-weight: 600; margin-bottom: .4rem; }
.cu-textarea { width: 100%; min-height: 180px; padding: .65rem; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; font-size: .8rem; font-family: 'Cascadia Code','Fira Mono',monospace; line-height: 1.6; resize: vertical; outline: none; box-sizing: border-box; transition: border-color .15s; }
.cu-textarea:focus { border-color: #3fb950; }
.cu-input-controls { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.cu-ref-select { padding: .35rem .5rem; background: #21262d; border: 1px solid #30363d; border-radius: 5px; color: #c9d1d9; font-size: .75rem; font-family: inherit; outline: none; flex: 1; min-width: 0; }
.cu-run-btn { padding: .38rem .85rem; background: #238636; color: #fff; border: none; border-radius: 5px; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; }
.cu-run-btn:hover { background: #2ea043; }
.cu-ex-btn { padding: .38rem .7rem; background: #21262d; border: 1px solid #30363d; border-radius: 5px; color: #8b949e; font-size: .75rem; cursor: pointer; font-family: inherit; white-space: nowrap; transition: color .15s; }
.cu-ex-btn:hover { color: #e6edf3; }
.cu-info-box { background: #0d1117; border: 1px solid #21262d; border-radius: 8px; padding: .75rem; }
.cu-info-title { font-size: .75rem; font-weight: 700; color: #e6edf3; margin-bottom: .3rem; }
.cu-info-text { font-size: .73rem; color: #8b949e; line-height: 1.6; }
.cu-empty { padding: 3rem 1rem; text-align: center; color: #484f58; font-size: .85rem; }
.cu-error { padding: 1rem; background: rgba(255,107,107,.06); border: 1px solid rgba(255,107,107,.2); border-radius: 6px; color: #ff6b6b; font-size: .82rem; }
.cu-summary-strip { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; padding: .65rem .9rem; background: #161b22; border: 1px solid #21262d; border-radius: 8px; }
.cu-stat { display: flex; flex-direction: column; gap: .1rem; }
.cu-stat-val { font-size: .95rem; font-weight: 700; color: #e6edf3; }
.cu-stat-lbl { font-size: .65rem; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; }
.cu-export-btn { margin-left: auto; padding: .3rem .7rem; background: #21262d; border: 1px solid #30363d; border-radius: 5px; color: #8b949e; font-size: .72rem; cursor: pointer; font-family: inherit; transition: color .15s; }
.cu-export-btn:hover { color: #e6edf3; }
.cu-table-wrap { overflow-x: auto; }
.cu-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.cu-table th { padding: .4rem .6rem; background: #21262d; color: #8b949e; font-weight: 600; text-align: left; border-bottom: 1px solid #30363d; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.cu-table td { padding: .3rem .6rem; border-bottom: 1px solid #161b22; color: #c9d1d9; }
.cu-table tr:hover td { background: rgba(255,255,255,.02); }
.cu-codon { font-family: 'Cascadia Code','Fira Mono',monospace; color: #58a6ff; font-size: .8rem; }
.cu-aa { color: #3fb950; font-weight: 600; }
.cu-count { text-align: right; }
.cu-freq { text-align: right; color: #8b949e; }
.cu-rscu-cell { display: flex; align-items: center; gap: .4rem; }
.cu-rscu-bar-wrap { width: 60px; height: 6px; background: #21262d; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.cu-rscu-bar { height: 100%; border-radius: 3px; transition: width .3s; }
.cu-rscu-val { color: #c9d1d9; min-width: 2rem; font-size: .75rem; }
@media (max-width: 720px) { .cu-layout { grid-template-columns: 1fr; } }
