.linked-sites-bar {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.linked-sites-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.linked-sites-inner .fa-link {
    color: var(--color-primary);
    font-size: 14px;
}

.linked-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.linked-count {
    font-size: 12px;
    color: #888;
    background: #e8f4fd;
    padding: 2px 8px;
    border-radius: 10px;
}

#linked-sites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.linked-site-tag {
    display: inline-block;
    background: #e8f4fd;
    color: var(--color-primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.linked-site-tag:hover {
    background: var(--color-primary);
    color: #fff;
}

.section-body {
    padding: 16px 20px;
    position: relative;
}

tr.row-selected td {
    background-color: #e3f0fb !important;
}

tr.row-highlight td {
    background-color: #fff8e1 !important;
}

tr.row-highlight.row-selected td {
    background-color: #d4e9f7 !important;
}

.seq-compare {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seq-column {
    flex: 1;
    width: 100%; 
}

.seq-col-header {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pre-edit-header {
    background: #e8f4fd;
    color: #2471a3;
}

.post-edit-header {
    background: #fef9e7;
    color: #b7950b;
}

.pre-edit-header .fa-circle {
    font-size: 8px;
    color: #2471a3;
}

.post-edit-header .fa-circle {
    font-size: 8px;
    color: #b7950b;
}

.seq-display {
    font-family: 'Courier New', Consolas, 'Liberation Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #ebeef5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    overflow-x: auto;
}

.seq-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.seq-pos-label {
    display: inline-block;
    width: 60px;
    min-width: 60px;
    font-size: 11px;
    color: #aaa;
    text-align: right;
    padding-right: 8px;
    user-select: none;
    letter-spacing: 0;
}

.seq-bases {
    letter-spacing: 1px;
}

.base-normal {
    color: #333;
}

.base-highlight {
    background: #e74c3c;
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 700;
}

.base-diff {
    background: #f39c12;
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 700;
}

.seq-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.struct-compare {
    display: flex;
    gap: 20px;
}

.struct-column {
    flex: 1;
    min-width: 0;
}

.struct-col-header {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.struct-col-header.pre-edit-header {
    background: #e8f4fd;
    color: #2471a3;
}

.struct-col-header.post-edit-header {
    background: #fef9e7;
    color: #b7950b;
}

.forna-wrapper {
    min-height: 320px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.forna-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
}

.struct-energy {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    padding: 4px 10px;
}

.struct-db-toggle {
    margin-top: 6px;
}

.struct-dot-bracket {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #ebeef5;
    border-top: 1px dashed #ebeef5;
    word-break: break-all;
    letter-spacing: 2px;
    font-weight: 700;
    max-height: 120px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
}

.changed-info {
    margin-top: 14px;
    padding: 10px 16px;
    background: #fef5e7;
    border: 1px solid #f9e79f;
    border-radius: 6px;
    font-size: 13px;
    color: #b7950b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changed-info .fa-circle-exclamation {
    font-size: 15px;
}

@media (max-width: 900px) {
    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        flex: none;
    }

    .seq-compare,
    .struct-compare {
        flex-direction: column;
    }
}

.module-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 10px 16px;
    background: #f0f4f8;
    border-left: 3px solid #5b7db5;
    border-radius: 0 6px 6px 0;
}